Jump to content

[SOLVED] Trouble With Apache


spiderdan

Recommended Posts

I am very new to this and have tried several times to get apache working. I have installed apache and it is running, however when I type in http://localhost/, 127.0.0.1, or my ip address in takes me to a page saying internet explorer cannot display this page. If I type in http://localhost:8080/ (localhost + the port apache is running on) it takes me to a 403 Forbidden page. Any suggestions are greatly appreciated.

Link to comment
Share on other sites

Apache is probably set to listen on port 8080.  This can be reconfigured in the httpd file.  As for the forbidden message, there must be a "deny all" in the same config file.

 

Note:  If you are new to this, the httpd file can be found in the directory "conf"

 

Edit:  I would also appreciate if you would post the error log.

Link to comment
Share on other sites

Alright, I chaged the deny from all to allow from all and know it works when I type in http://localhost:8080/ or 127.0.0.1:8080, or my computers ip address on my network with :8080 after it (I am working behind a router), however it still does not work when I type in http://localhost, 127.0.0.1, or my ip address on the network or my routers ip on the internet. I will copy and paste my error log below. Thanks for the tip!

[Mon Jul 16 13:55:34 2007] [notice] Apache/2.2.4 (Win32) configured -- resuming normal operations

[Mon Jul 16 13:55:34 2007] [notice] Server built: Jan  9 2007 23:17:20

[Mon Jul 16 13:55:34 2007] [notice] Parent: Created child process 3832

[Mon Jul 16 13:55:34 2007] [notice] Child 3832: Child process is running

[Mon Jul 16 13:55:34 2007] [notice] Child 3832: Acquired the start mutex.

[Mon Jul 16 13:55:34 2007] [notice] Child 3832: Starting 250 worker threads.

[Mon Jul 16 13:55:34 2007] [notice] Child 3832: Starting thread to listen on port 8080.

[Mon Jul 16 13:56:10 2007] [notice] Parent: Received shutdown signal -- Shutting down the server.

[Mon Jul 16 13:56:10 2007] [notice] Child 3832: Exit event signaled. Child process is ending.

[Mon Jul 16 13:56:11 2007] [notice] Child 3832: Released the start mutex

[Mon Jul 16 13:56:12 2007] [notice] Child 3832: Waiting for 250 worker threads to exit.

[Mon Jul 16 13:56:12 2007] [notice] Child 3832: All worker threads have exited.

[Mon Jul 16 13:56:12 2007] [notice] Child 3832: Child process is exiting

[Mon Jul 16 13:56:12 2007] [notice] Parent: Child process exited successfully.

[Mon Jul 16 14:36:42 2007] [notice] Apache/2.2.4 (Win32) configured -- resuming normal operations

[Mon Jul 16 14:36:42 2007] [notice] Server built: Jan  9 2007 23:17:20

[Mon Jul 16 14:36:42 2007] [notice] Parent: Created child process 4684

[Mon Jul 16 14:36:42 2007] [notice] Child 4684: Child process is running

[Mon Jul 16 14:36:42 2007] [notice] Child 4684: Acquired the start mutex.

[Mon Jul 16 14:36:42 2007] [notice] Child 4684: Starting 250 worker threads.

[Mon Jul 16 14:36:42 2007] [notice] Child 4684: Starting thread to listen on port 8080.

[Mon Jul 16 14:36:59 2007] [notice] Parent: Received shutdown signal -- Shutting down the server.

[Mon Jul 16 14:36:59 2007] [notice] Child 4684: Exit event signaled. Child process is ending.

[Mon Jul 16 14:37:00 2007] [notice] Child 4684: Released the start mutex

[Mon Jul 16 14:37:01 2007] [notice] Child 4684: Waiting for 250 worker threads to exit.

[Mon Jul 16 14:37:01 2007] [notice] Child 4684: All worker threads have exited.

[Mon Jul 16 14:37:01 2007] [notice] Child 4684: Child process is exiting

[Mon Jul 16 14:37:01 2007] [notice] Parent: Child process exited successfully.

[Mon Jul 16 23:01:19 2007] [notice] Apache/2.2.4 (Win32) configured -- resuming normal operations

[Mon Jul 16 23:01:19 2007] [notice] Server built: Jan  9 2007 23:17:20

[Mon Jul 16 23:01:19 2007] [notice] Parent: Created child process 5100

[Mon Jul 16 23:01:19 2007] [notice] Child 5100: Child process is running

[Mon Jul 16 23:01:19 2007] [notice] Child 5100: Acquired the start mutex.

[Mon Jul 16 23:01:19 2007] [notice] Child 5100: Starting 250 worker threads.

[Mon Jul 16 23:01:19 2007] [notice] Child 5100: Starting thread to listen on port 8080.

[Mon Jul 16 23:01:33 2007] [notice] Parent: Received shutdown signal -- Shutting down the server.

[Mon Jul 16 23:01:33 2007] [notice] Child 5100: Exit event signaled. Child process is ending.

[Mon Jul 16 23:01:34 2007] [notice] Child 5100: Released the start mutex

[Mon Jul 16 23:01:35 2007] [notice] Child 5100: Waiting for 250 worker threads to exit.

[Mon Jul 16 23:01:35 2007] [notice] Child 5100: All worker threads have exited.

[Mon Jul 16 23:01:35 2007] [notice] Child 5100: Child process is exiting

[Mon Jul 16 23:01:35 2007] [notice] Parent: Child process exited successfully.

[Mon Jul 16 23:16:54 2007] [notice] Apache/2.2.4 (Win32) configured -- resuming normal operations

[Mon Jul 16 23:16:54 2007] [notice] Server built: Jan  9 2007 23:17:20

[Mon Jul 16 23:16:54 2007] [notice] Parent: Created child process 5356

[Mon Jul 16 23:16:54 2007] [notice] Child 5356: Child process is running

[Mon Jul 16 23:16:54 2007] [notice] Child 5356: Acquired the start mutex.

[Mon Jul 16 23:16:54 2007] [notice] Child 5356: Starting 250 worker threads.

[Mon Jul 16 23:16:54 2007] [notice] Child 5356: Starting thread to listen on port 8080.

[Mon Jul 16 23:19:24 2007] [notice] Parent: Received restart signal -- Restarting the server.

[Mon Jul 16 23:19:24 2007] [notice] Child 5356: Exit event signaled. Child process is ending.

[Mon Jul 16 23:19:24 2007] [notice] Apache/2.2.4 (Win32) configured -- resuming normal operations

[Mon Jul 16 23:19:24 2007] [notice] Server built: Jan  9 2007 23:17:20

[Mon Jul 16 23:19:24 2007] [notice] Parent: Created child process 5812

[Mon Jul 16 23:19:24 2007] [notice] Child 5812: Child process is running

[Mon Jul 16 23:19:25 2007] [notice] Child 5356: Released the start mutex

[Mon Jul 16 23:19:25 2007] [notice] Child 5812: Acquired the start mutex.

[Mon Jul 16 23:19:25 2007] [notice] Child 5812: Starting 250 worker threads.

[Mon Jul 16 23:19:26 2007] [notice] Child 5356: Waiting for 250 worker threads to exit.

[Mon Jul 16 23:19:26 2007] [notice] Child 5356: All worker threads have exited.

[Mon Jul 16 23:19:26 2007] [notice] Child 5356: Child process is exiting

[Mon Jul 16 23:19:26 2007] [notice] Child 5812: Starting thread to listen on port 8080.

[Mon Jul 16 23:26:00 2007] [notice] Parent: Received restart signal -- Restarting the server.

[Mon Jul 16 23:26:00 2007] [notice] Child 5812: Exit event signaled. Child process is ending.

[Mon Jul 16 23:26:00 2007] [notice] Apache/2.2.4 (Win32) configured -- resuming normal operations

[Mon Jul 16 23:26:00 2007] [notice] Server built: Jan  9 2007 23:17:20

[Mon Jul 16 23:26:00 2007] [notice] Parent: Created child process 5040

[Mon Jul 16 23:26:00 2007] [notice] Child 5040: Child process is running

[Mon Jul 16 23:26:01 2007] [notice] Child 5040: Acquired the start mutex.

[Mon Jul 16 23:26:01 2007] [notice] Child 5040: Starting 250 worker threads.

[Mon Jul 16 23:26:01 2007] [notice] Child 5812: Released the start mutex

[Mon Jul 16 23:26:02 2007] [notice] Child 5812: Waiting for 250 worker threads to exit.

[Mon Jul 16 23:26:02 2007] [notice] Child 5812: All worker threads have exited.

[Mon Jul 16 23:26:02 2007] [notice] Child 5812: Child process is exiting

[Mon Jul 16 23:26:02 2007] [notice] Child 5040: Starting thread to listen on port 8080.

[Mon Jul 16 23:27:41 2007] [notice] Parent: Received shutdown signal -- Shutting down the server.

[Mon Jul 16 23:27:41 2007] [notice] Child 5040: Exit event signaled. Child process is ending.

[Mon Jul 16 23:27:42 2007] [notice] Child 5040: Released the start mutex

[Mon Jul 16 23:27:43 2007] [notice] Child 5040: Waiting for 250 worker threads to exit.

[Mon Jul 16 23:27:43 2007] [notice] Child 5040: All worker threads have exited.

[Mon Jul 16 23:27:43 2007] [notice] Child 5040: Child process is exiting

[Mon Jul 16 23:27:43 2007] [notice] Parent: Child process exited successfully.

[Tue Jul 17 16:37:16 2007] [notice] Apache/2.2.4 (Win32) configured -- resuming normal operations

[Tue Jul 17 16:37:16 2007] [notice] Server built: Jan  9 2007 23:17:20

[Tue Jul 17 16:37:16 2007] [notice] Parent: Created child process 2320

[Tue Jul 17 16:37:16 2007] [notice] Child 2320: Child process is running

[Tue Jul 17 16:37:16 2007] [notice] Child 2320: Acquired the start mutex.

[Tue Jul 17 16:37:16 2007] [notice] Child 2320: Starting 250 worker threads.

[Tue Jul 17 16:37:17 2007] [notice] Child 2320: Starting thread to listen on port 8080.

[Tue Jul 17 16:37:29 2007] [notice] Parent: Received shutdown signal -- Shutting down the server.

[Tue Jul 17 16:37:29 2007] [notice] Child 2320: Exit event signaled. Child process is ending.

[Tue Jul 17 16:37:30 2007] [notice] Child 2320: Released the start mutex

[Tue Jul 17 16:37:31 2007] [notice] Child 2320: Waiting for 250 worker threads to exit.

[Tue Jul 17 16:37:32 2007] [notice] Child 2320: All worker threads have exited.

[Tue Jul 17 16:37:32 2007] [notice] Child 2320: Child process is exiting

[Tue Jul 17 16:37:32 2007] [notice] Parent: Child process exited successfully.

[Tue Jul 17 18:23:00 2007] [notice] Apache/2.2.4 (Win32) configured -- resuming normal operations

[Tue Jul 17 18:23:00 2007] [notice] Server built: Jan  9 2007 23:17:20

[Tue Jul 17 18:23:00 2007] [notice] Parent: Created child process 2088

[Tue Jul 17 18:23:00 2007] [notice] Child 2088: Child process is running

[Tue Jul 17 18:23:00 2007] [notice] Child 2088: Acquired the start mutex.

[Tue Jul 17 18:23:00 2007] [notice] Child 2088: Starting 250 worker threads.

[Tue Jul 17 18:23:00 2007] [notice] Child 2088: Starting thread to listen on port 8080.

[Tue Jul 17 18:36:17 2007] [notice] Parent: Received shutdown signal -- Shutting down the server.

[Tue Jul 17 18:36:17 2007] [notice] Child 2088: Exit event signaled. Child process is ending.

[Tue Jul 17 18:36:18 2007] [notice] Child 2088: Released the start mutex

[Tue Jul 17 18:36:19 2007] [notice] Child 2088: Waiting for 250 worker threads to exit.

[Tue Jul 17 18:36:19 2007] [notice] Child 2088: All worker threads have exited.

[Tue Jul 17 18:36:19 2007] [notice] Child 2088: Child process is exiting

[Tue Jul 17 18:36:19 2007] [notice] Parent: Child process exited successfully.

[Tue Jul 17 18:42:30 2007] [notice] Apache/2.2.4 (Win32) configured -- resuming normal operations

[Tue Jul 17 18:42:30 2007] [notice] Server built: Jan  9 2007 23:17:20

[Tue Jul 17 18:42:30 2007] [notice] Parent: Created child process 5744

[Tue Jul 17 18:42:30 2007] [notice] Child 5744: Child process is running

[Tue Jul 17 18:42:30 2007] [notice] Child 5744: Acquired the start mutex.

[Tue Jul 17 18:42:30 2007] [notice] Child 5744: Starting 250 worker threads.

[Tue Jul 17 18:42:30 2007] [notice] Child 5744: Starting thread to listen on port 8080.

[Tue Jul 17 19:19:22 2007] [error] [client 127.0.0.1] client denied by server configuration: C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/

[Tue Jul 17 19:19:54 2007] [error] [client 127.0.0.1] client denied by server configuration: C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/index.html

[Tue Jul 17 19:25:04 2007] [error] [client 127.0.0.1] client denied by server configuration: C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/index.html

[Tue Jul 17 19:25:04 2007] [error] [client 127.0.0.1] client denied by server configuration: C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/favicon.ico

[Tue Jul 17 19:27:23 2007] [notice] Parent: Received restart signal -- Restarting the server.

[Tue Jul 17 19:27:23 2007] [notice] Child 5744: Exit event signaled. Child process is ending.

[Tue Jul 17 19:27:23 2007] [notice] Apache/2.2.4 (Win32) configured -- resuming normal operations

[Tue Jul 17 19:27:23 2007] [notice] Server built: Jan  9 2007 23:17:20

[Tue Jul 17 19:27:23 2007] [notice] Parent: Created child process 4916

[Tue Jul 17 19:27:23 2007] [notice] Child 4916: Child process is running

[Tue Jul 17 19:27:24 2007] [notice] Child 5744: Released the start mutex

[Tue Jul 17 19:27:24 2007] [notice] Child 4916: Acquired the start mutex.

[Tue Jul 17 19:27:24 2007] [notice] Child 4916: Starting 250 worker threads.

[Tue Jul 17 19:27:25 2007] [notice] Child 5744: Waiting for 250 worker threads to exit.

[Tue Jul 17 19:27:25 2007] [notice] Child 5744: All worker threads have exited.

[Tue Jul 17 19:27:25 2007] [notice] Child 5744: Child process is exiting

[Tue Jul 17 19:27:25 2007] [notice] Child 4916: Starting thread to listen on port 8080.

[Tue Jul 17 19:27:28 2007] [error] [client 127.0.0.1] client denied by server configuration: C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/index.html

[Tue Jul 17 19:27:37 2007] [error] [client 127.0.0.1] client denied by server configuration: C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/index.xml

[Tue Jul 17 19:27:41 2007] [error] [client 127.0.0.1] client denied by server configuration: C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/

[Tue Jul 17 19:39:26 2007] [error] [client 127.0.0.1] client denied by server configuration: C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/

[Tue Jul 17 21:44:44 2007] [notice] Parent: Received shutdown signal -- Shutting down the server.

[Tue Jul 17 21:44:44 2007] [notice] Child 4916: Exit event signaled. Child process is ending.

[Tue Jul 17 21:44:45 2007] [notice] Child 4916: Released the start mutex

[Tue Jul 17 21:44:46 2007] [notice] Child 4916: Waiting for 250 worker threads to exit.

[Tue Jul 17 21:44:46 2007] [notice] Child 4916: All worker threads have exited.

[Tue Jul 17 21:44:46 2007] [notice] Child 4916: Child process is exiting

[Tue Jul 17 21:44:46 2007] [notice] Parent: Child process exited successfully.

[Tue Jul 17 21:59:14 2007] [notice] Apache/2.2.4 (Win32) configured -- resuming normal operations

[Tue Jul 17 21:59:14 2007] [notice] Server built: Jan  9 2007 23:17:20

[Tue Jul 17 21:59:14 2007] [notice] Parent: Created child process 468

[Tue Jul 17 21:59:14 2007] [notice] Child 468: Child process is running

[Tue Jul 17 21:59:14 2007] [notice] Child 468: Acquired the start mutex.

[Tue Jul 17 21:59:14 2007] [notice] Child 468: Starting 250 worker threads.

[Tue Jul 17 21:59:14 2007] [notice] Child 468: Starting thread to listen on port 8080.

Link to comment
Share on other sites

This is what I am talking about:

 

Starting thread to listen on port 8080

 

That was in your error log.  What this means is that in the same httpd file there is a note saying "Listen 8080".  Use CTRL+F (find) to locate this in the document.  Replace it with "Listen 80".  Once that has been completed, restart the apache service.  You should be good to go.  ;)

 

Note:  The periods were placed outside of the quotes just to avoid confusion.

Link to comment
Share on other sites

Hi, I'm even newer to all this than spiderdan, so please excuse me if what I ask seems all too obvious.

Like spiderdan I have installed Apache (using XAMPP) and like him I can't get localhost to recognise the Apache system.

 

I have looked in the httpd.conf file and I can see that it is listening to port 80. As far as I can tell this port is being used by other systems: probably my home network that links to the internet through a router.

 

I presume this means I need to change the gate number that Apache is listening on from "80" to something else ("79"? "90"?). Is that correct or does it have to be gate 80?

 

Alternatively, can I leave it listening to gate 80 as long as the address is different from any being used by my network?

 

Assuming that I do need to change the gate, how do I do this? Will a simple instruction "Listen xx" in the appropriate place in the conf file be all that is needed or does something else have to change too?

 

Thanking you in advance, I do hope that you can help with this as I want to get on with learning PHP! :'( 

Link to comment
Share on other sites

First of all, it may be helpful if you could post the error log.

 

Apache can listen to other ports, but I would not jump to this solution immediately.  That is because everytime you go to the site you will have to enter the port after the address (ie localhost:81) not to mention the people on the outside trying to access the site.  Instead, I would suggest using TCPView by system internals located here:

 

http://www.microsoft.com/technet/sysinternals/Utilities/TcpView.mspx

 

Find the application that is using the port and terminate it (if it is safe to do so).  Start up apache and, it should start without any errors.

 

Will a simple instruction "Listen xx" in the appropriate place in the conf file be all that is needed

 

Yes, you have the right idea.  Listen followed by the port number will do the trick.

 

Note:  Next time try to start a new thread rather than asking in an existing one.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.