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: PHP page not loading without HTML tags |
|
Author |
|
Marden
Joined: 23 Jul 2007 Posts: 3
|
Posted: Mon 23 Jul '07 21:22 Post subject: PHP page not loading without HTML tags |
|
|
Ok, this is probably a really simple deal, but my brain is fried at this point, and I can't figure it out. I just installed apache 2.2.4 on my windows 32 system, and also installed php 5.2.3. After installing php, I ran the phpinfo() test page and it works fine. great. Then I try to open one of my php pages and it gives me a 404 Page not found error. If I look in the apache error log, I see:
Quote: | script 'C;/Program Files/Apache2.2/htdocs/tester.php' not found or unable to stat |
Any ideas? I've gone throught the php.ini and httpd.conf files to double check and make sure everything is configured correctly with the php module. Is there something else I'm missing? Any help would be greatly appreciated! Thanx! |
|
Back to top |
|
Marden
Joined: 23 Jul 2007 Posts: 3
|
Posted: Mon 23 Jul '07 21:25 Post subject: |
|
|
Oh, almost forgot, I also noticed that if I started the file with HTML then imbedded the php into it, everything works fine. But if I start the file with php first, then I get the error. |
|
Back to top |
|
tdonovan Moderator
Joined: 17 Dec 2005 Posts: 611 Location: Milford, MA, USA
|
Posted: Mon 23 Jul '07 22:52 Post subject: |
|
|
Your log entry Quote: | script 'C;/Program Files/Apache2.2/htdocs/tester.php' not found or unable to stat | shows a semicolon instead of a colon after the drive letter C.
Maybe a typo in your httpd.conf file?
-tom- |
|
Back to top |
|
Marden
Joined: 23 Jul 2007 Posts: 3
|
Posted: Mon 23 Jul '07 23:07 Post subject: |
|
|
tdonovan wrote: | Your log entry Quote: | script 'C;/Program Files/Apache2.2/htdocs/tester.php' not found or unable to stat | shows a semicolon instead of a colon after the drive letter C.
Maybe a typo in your httpd.conf file?
-tom- |
Sorry, that was a typo entering it into the forum. The error message actually shows it as a colon. Thanx for the reply tho!
Here's the section from my httpd.conf file that loads up PHP (copy/pasted ) as was added by the php msi installer, and slightly modified by me:
Code: | #BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll"
PHPIniDir "C:/Program Files/PHP/"
AddType application/x-httpd-php .php .inc
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
|
Everything looks ok to me. |
|
Back to top |
|
|
|
|
|
|