Jump to content

Connecting to own http


MadKAT
 Share

Recommended Posts

On fresh installed MDK 10, I have apache2 installed, and also webmin. MCC indicates that http is running. I can even stop and start it from there. But how come I cannot connect to it?

 

Pointing the browser to http://127.0.0.1 yields the error:

 

An error occurred while loading http://127.0.0.1:

Could not connect to host 127.0.0.1

:help:

 

/var/www/html exists and are readable.

 

However, doing https://127.0.0.1:10000 actually brings up webmin. It also works even if I substitute 127.0.0.1 with the IP address I get from DHCP.

 

So why not localhost? Is there any configuration that I need to set-up? When I had MDK 9.2, it brings up the default page. :wall:

 

Thanks in advance!

 

[moved from Software by spinynorman]

Edited by MadKAT
Link to comment
Share on other sites

Starting it through MCC is a hit and miss affair. Open a consol and su to root, then type:

service httpd status

If that doesn't work type:

/etc/rc.d/init.d/httpd status

If it isn't running

type

 /etc/rc.d/init.d/httpd start

If it starts but you still get access refused, have a look at the logs for error messages. You will find those in /var/log/httpd

Link to comment
Share on other sites

Thank You, anon! You've been a great help!

 

I did:

[root@xilke root]#  /etc/rc.d/init.d/httpd start
Starting httpd2:                                                [  OK  ]

[root@xilke root]# service httpd status

Apache is *not* running.

Use /etc/init.d/httpd extendedstatus for more information.

 

So, as you suggested I looked at /var/log/httpd, and in the error log I found:

Sun Aug 15 23:46:26 2004] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/apache2-suexec)
[Sun Aug 15 23:46:27 2004] [notice] Digest: generating secret for digest authentication ...
[Sun Aug 15 23:46:27 2004] [notice] Digest: done
[Sun Aug 15 23:46:28 2004] [error] Cannot allocate shared memory: (17)File exists

 

And so I googled for the error message, and learned that apache may have lefet some ssl lock files. Sure enough, there were several ssl-* files in/var/log/httpd. So I renamed these files and restarted apache. And it worked. I can access the site now.

 

Thanks!!!

:cheesy:

Link to comment
Share on other sites

Hello madKAT,

 

I have also a fresh installed MDK 10, I have apache2 installed, and also webmin. MCC indicates that http is not running. Can you tell me what version of kernel is running on your system ?

The httpd2 does not work and the error_log file says " Function not implemented: mod_rewrite: could not create rewrite_log_lock Configuration Failed "

 

Any help will be appreciated.

 

 

Thanks

 

 

KJ

Link to comment
Share on other sites

Hi MadKAT,

 

I read some place that the problem might be related to kernel (2.6.3-7mdk) which came with MDK 10.0. Please, please tell me the procedure how-to get apache version 2.0.48. I tried urpmi update but with no luck. I will really appreciate your help here.

 

Thanks

 

KJ

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

Loading...
 Share

×
×
  • Create New...