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 file will not load in browser |
|
Author |
|
tvette
Joined: 12 Jul 2008 Posts: 7
|
Posted: Sat 19 Jul '08 20:16 Post subject: Php file will not load in browser |
|
|
I've done the following
1)loaded php to conf and apache is running;
2.) added AddType application/x-http-php .php to conf;
3.) added test.php to htdocs;
Apache is listening to port 8081 on local c drive
Can't load test.php in browser
Below is view source
<p id="errorExplanation">This error (HTTP 404 Not Found) means that Internet Explorer was able to connect to the website, but the page you wanted was not found. It's possible that the webpage is temporarily unavailable. Alternatively, the website might have changed or removed the webpage.</p>
All help would be greatly appreciated. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
|
Back to top |
|
tvette
Joined: 12 Jul 2008 Posts: 7
|
Posted: Sun 20 Jul '08 0:01 Post subject: |
|
|
James thanks for your reply.
attempting to load http://127.0.0.1:8081/phpinfo.php with the following script:
<?php
phpinfo();
?>
returns:
<p id="errorExplanation">This error (HTTP 404 Not Found) means that Internet Explorer was able to connect to the website, but the page you wanted was not found. It's possible that the webpage is temporarily unavailable. Alternatively, the website might have changed or removed the webpage.</p>
fyi:
1. windows xp;
2. i added to control panel/system/advaced/enviroment variables: c:\php5 to 'PATH', and new "PHPRC' with a value of c:\php5;
3. http://127.0.0.1:8081 returns 'It Works'
4. Copied and renamed 'php.ini-recommended' as php.ini in c:\php5
not sure what i'm doing wrong? |
|
Back to top |
|
tvette
Joined: 12 Jul 2008 Posts: 7
|
Posted: Mon 21 Jul '08 0:41 Post subject: |
|
|
I think I may have solved. I added " " around file name("phpinfo.php"), which allowed the file to contain only .php extension. The file then loaded in browser window. |
|
Back to top |
|
|
|
|
|
|