Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Installed Apache Apache2 and Php5, now PHP files won't work. |
|
Author |
|
rabidjade
Joined: 12 Oct 2006 Posts: 25
|
Posted: Tue 14 Nov '06 11:58 Post subject: Installed Apache Apache2 and Php5, now PHP files won't work. |
|
|
Installed Apache 2.2.3, PHP 5.2.4, MySQL 5.0.27, now I'm having a problems with PHP. Everytime I load the PHP test script, it shows the actual script in plain text.
I used this guide although it was a little dated:
http://www.apachelounge.com/viewtopic.php?t=374
Only change I made in httpd.conf was:
Loadmodule php5_module d:/php520/php5apache2.dll
to
Loadmodule php5_module d:/php520/php5apache2_2.dll
Now when I load apache2, it load fines, no errors in the logs and even the status box at the bottom even shows "Apache/2.2.3(Win32) PHP/5.2.0"
Is this guide wrong? My server is down until this is fixed. Thanks for any help! |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Tue 14 Nov '06 12:18 Post subject: |
|
|
Did you add this in httpd.conf?
AddHandler application/x-httpd-php .php
PHPIniDir "c:/php5"
Sure that the extension of that file is file.php and not file.php.txt ?
For a full guide http://www.apachelounge.com/viewtopic.php?t=570 |
|
Back to top |
|
rabidjade
Joined: 12 Oct 2006 Posts: 25
|
Posted: Tue 14 Nov '06 13:07 Post subject: |
|
|
James Blond wrote: | Did you add this in httpd.conf?
AddHandler application/x-httpd-php .php
PHPIniDir "c:/php5"
Sure that the extension of that file is file.php and not file.php.txt ?
For a full guide http://www.apachelounge.com/viewtopic.php?t=570 |
I added those lines with no change. I took a look at that guide and would rather stick with stock files/programs.
edit: I will also revert back to PHP4 if it is easier to get up and running. |
|
Back to top |
|
|
|
|
|
|