Re: First PHP program not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Richard Quadling wrote:
2009/4/29 Vinay Nagrik <vnagrik@xxxxxxxxx>:
Hello Group,

Till yesteday, the .html file under htdocs were working fine under

http://localhost/index.html

but today the same URL

http://localhost/index.html gives 404 error.

My guess is that my apache web server is not working.

Can someone tell me

"How do I make sure that I am running Apache httpd server."

Besides, yesterday when my .html files were working under
http://localhost/URL, and .php files were not working the log says the
following.

#################
Apr 28 07:43:01 2009] [notice] Apache/2.2.11 (Win32) configured -- resuming
normal operations
[Tue Apr 28 07:43:01 2009] [notice] Server built: Dec 10 2008 00:10:06
[Tue Apr 28 07:43:01 2009] [notice] Parent: Created child process 1296
[Tue Apr 28 07:43:01 2009] [notice] Child 1296: Child process is running
[Tue Apr 28 07:43:01 2009] [notice] Child 1296: Acquired the start mutex.
[Tue Apr 28 07:43:01 2009] [notice] Child 1296: Starting 64 worker threads.
[Tue Apr 28 07:43:01 2009] [notice] Child 1296: Starting thread to listen on
port 80.
[Tue Apr 28 13:53:17 2009] [error] [client 192.168.1.104] File does not
exist: C:/Program Files/Apache Software
Foundation/Apache2.2/htdocs/crossdomain.xml
[Tue Apr 28 14:47:45 2009] [error] [client 127.0.0.1] File does not exist:
C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/favicon.ico
#####################################

Can someone tell me what these two files are, what do they do, why are they
important, and why no liteature mentions about them.

Any help will be appreciated.

nagrik.

On Wed, Apr 29, 2009 at 4:32 AM, James Crow <james@xxxxxxxxxxxxx> wrote:

<snip>
--
Thanks

Nagrik


favicon.ico http://en.wikipedia.org/wiki/Favicon.ico
crossdomain.xml http://en.wikipedia.org/wiki/Cross-site_request_forgery

On windows you can check the status of a service by running:

sc query apache2

from a command prompt. The process name may be apache22. There is also the Services MSC SnapIn that can be opened from Control Panel->Administrative Tools->Services icon. It will list the status of all installed services.

You seem to have two problems:
1) Apache serving up 404 errors vice web pages
2) PHP scripts not executing

Fix Apache first before you worry about PHP. If there is an error in the php.ini file it can cause Apache not to start. The error.log file I mentioned earlier will show these types of errors though.

Cheers,
James

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux