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: Configuration problems |
|
Author |
|
hjf
Joined: 11 May 2008 Posts: 1
|
Posted: Sun 11 May '08 4:33 Post subject: Configuration problems |
|
|
I have spent hours and hours and hours trying to figure this out. I'm slowly going insane.
I'm using a book to learn PHP, MySQL and Apache. I've downloaded the latest versions of these 3 applications. I'm working on a PC with Vista Premium Home.
Something is wrong with the configuration of PHP or Apache and I haven't figured out what it is. Apache won't find a phpinfo.php file in the htdocs folder. (but when I type "http://localhost", I get the "It works!" page.)
I read the site admin's April 12 post about setting up Apache and PHP.
I had already installed Apache and edited the php.ini and http.conf files but there were a few edits I hadn't made until I read the admin's post.
(note: LoadModule php5_module C:/php5/php5apache2_2.dll had to be changed to ...C:/php/....in order to work when I restarted Apache.)
Also, per the PHP manual, I edited the php.ini file to set the doc root as follows:
doc_root = c:\apache\htdocs
To test the PHP installation, I created a file named phpinfo.php to execute phpinfo() and saved it to the Apache htdocs folder.
Then, to access the php info, in my browser, I typed "http://localhost/phpinfo.php."
I get the 404 "file not found on this server" error message even though the file is in the Apache htdocs folder.
How do I troubleshoot this problem?
Any help is appreciated. Thanks.
(One other point, when I restarted Apache, a "black" window (is that a command line window?) flashed and had a statement about not being able to reliably determine the server's something. It flashes so quickly, I can't read it.) |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 13 May '08 9:33 Post subject: Re: Configuration problems |
|
|
hjf wrote: | I get the 404 "file not found on this server" error message even though the file is in the Apache htdocs folder.
How do I troubleshoot this problem? |
What is in your error.log about that? are you sure that your file name realy is phpinfo.php and not something like phpinfo.php.txt ?
Please view http://www.apachelounge.com/viewtopic.php?t=2395
if you still have a question please ask again.
----
edit:
How do you restart your server? Is it installed as a service? |
|
Back to top |
|
|
|
|
|
|