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: Help with setup for PHP for Apache 2.2.4 |
|
Author |
|
bkofi
Joined: 13 Aug 2007 Posts: 2
|
Posted: Mon 13 Aug '07 7:17 Post subject: Help with setup for PHP for Apache 2.2.4 |
|
|
I installed Apache 2.2.4 and PHP5 on Windows 2000 professional. Localhost does not display index unless I specify port 8080 ie localhost:8080. Is something wrong? Php scripts I typed and saved with extention php does not do anything either.
The section of the error log is:
[Sun Aug 12 07:01:10 2007] [notice] Apache/2.2.4 (Win32) PHP/5.2.3 configured -- resuming normal operations
[Sun Aug 12 07:01:10 2007] [notice] Server built: Jan 9 2007 23:17:20
[Sun Aug 12 07:01:10 2007] [notice] Parent: Created child process 1016
[Sun Aug 12 07:01:11 2007] [notice] Child 1016: Child process is running
[Sun Aug 12 07:01:11 2007] [notice] Child 1016: Acquired the start mutex.
[Sun Aug 12 07:01:11 2007] [notice] Child 1016: Starting 50 worker threads.
[Sun Aug 12 07:01:11 2007] [notice] Child 1016: Starting thread to listen on port 8080.
[Sun Aug 12 07:03:32 2007] [error] [client 0.0.0.0] script 'C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/test.php' not found or unable to stat
What could I be doing wrong?
PATH:
C:\php\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\Symantec\pcAnywhere\;C:\PROGRA~1\IBM\CLIENT~1;C:\PROGRA~1\IBM\CLIENT~1\Shared;C:\PROGRA~1\IBM\CLIENT~1\Emulator;C:\Program Files\MySQL\MySQL Server 5.0\bin
PHPRC C:\php\
PART OF httppd config
LoadModule php5_module "c:/php/php5apache2_2.dll"
PHPIniDir "c:/php"
ServerName localhost:8080
DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"
Any suggestions would be appreciated. I used windows installer versions for both php and apache for installation. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 13 Aug '07 13:37 Post subject: |
|
|
Making localhost run without specify the port change
Listen 8080
to
Listen 80
and
ServerName localhost:8080
to
ServerName localhost
For the PHP problem: Make sure that your file extension is not test.php.txt
because windows does not show known file extensions by default. |
|
Back to top |
|
bkofi
Joined: 13 Aug 2007 Posts: 2
|
Posted: Wed 22 Aug '07 9:42 Post subject: Installation ... |
|
|
Thanks !!
It worked. my test page was test.php.txt !!! |
|
Back to top |
|
|
|
|
|
|