Click to See Complete Forum and Search --> : PHP5 Installation Problem


susannah
05-28-2008, 03:47 AM
Hi,

I recently did a clean install of PHP5 and Apache 2.2. However, I cannot view the parsed PHP scripts in my browser. Ny browser just displays a dialogue box back to me asking me if I would like to download or open the file. When I do either of those, I only see the script files. I am typing the right URL http://localhost/filename.php[/url]. The PHP seems to be working-I tested this from the command line using p -i. I could view all the html files there. I also do not get an error from Apache and I do not see an error message in the error log files.

I did change the root from the default to C:\htdocs instead of C:\program files \apache software foundation \apache 2.2\htdocs

So, I am at a loss. All information or replies will be greatly appreciated.:)

Thanx,

Susannah

laserlight
05-28-2008, 03:53 AM
Did you set in httpd.conf:
AddType application/x-httpd-php .php

susannah
05-28-2008, 12:29 PM
Hi There,

Thanx for responding. Yes, I just checked to ensure that this had been done. See below. Hmmmm.....perhaps, I should reinstall?

AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType appplication/x-httpd-php .php

Let me know if you have a different suggestion or have more info.

Thanx Again,

Susannah

bradgrafelman
05-30-2008, 04:26 PM
Did you also add the appropriate LoadModule line (if installing as an Apache Module) or Action line (if installing as a CGI binary)?

More information can be found here: install.windows.apache2 and install.windows.manual. Also make sure that you restarted Apache after making any changes to its httpd.conf file.