hobbes006 (User)
Posts: 15
|
| debian etch, apache 2.2.8 start problem 2008/05/06 17:39 |
|
|
Hi guys,
Having some problem with start apache 2.2.8 from webmin's "Apache Webserver" Interface.
If I click on the "start apache" link at the top right corner, I will always get an error message stating "Failed to start apache : Apache does not appear to be running :
Starting web server: apache2"
This does not happen if I log in via ssh and restart my apache using /etc/init.d/apache2 restart or /etc/init.d/apache2 start or /etc/init.d/apache2 stop
Any idea why this might be so?
Regards, Calvin
|
|
|
|
The administrator has disabled public write access. |
hobbes006 (User)
Posts: 15
|
| Re:debian etch, apache 2.2.8 start problem 2008/05/06 17:41 |
|
|
This additional information might be helpful to whoever is kind enough to give me a hint... In /etc/webmin/apache/config file, it reads:-
k_dir=/etc/apache2/sites-enabled test_manual=0 show_list=0 mime_types=/etc/apache2/mime.types access_conf=/etc/apache2/access.conf auto_mods=1 stop_cmd=/etc/init.d/apache2 stop virt_file=/etc/apache2/sites-available test_apachectl=1 max_servers=100 srm_conf=/etc/apache2/srm.conf httpd_dir=/etc/apache2 start_cmd=/etc/init.d/apache2 start show_order=0 test_always=0 httpd_conf=/etc/apache2/apache2.conf test_config=1 httpd_path=/usr/sbin/apache2
Something wrong with one of the configuration variables???
Thanks for any advice. Calvin
|
|
|
|
The administrator has disabled public write access. |
Joe (Admin)
Posts: 3602
|
| Re:debian etch, apache 2.2.8 start problem 2008/05/06 18:06 |
|
|
Yes, there is no such configuration directive as "k_dir". It should be link_dir
But I'm not sure that would prevent things from working. Are the configuration paths actually correct? Is the Apache pid file in the normal location for Debian?
|
|
|
|
The administrator has disabled public write access. |
hobbes006 (User)
Posts: 15
|
| Re:debian etch, apache 2.2.8 start problem 2008/05/06 18:13 |
|
|
Hi Joe,
Super fast reply. Thank you. :) Sorry. typo on my part. It's link_dir in my config file.
Yes. /var/run/apache2.pid exists and is where it should be on debian.
Is there any other issues I need to check? Permissions issue?
Regards, Calvin
|
|
|
|
The administrator has disabled public write access. |
hobbes006 (User)
Posts: 15
|
| Re:debian etch, apache 2.2.8 start problem 2008/05/06 18:16 |
|
|
Something to note is that it was the webmin "Start Apache" and "Restart Apache" links were working perfectly fine before I upgraded Apache to 2.2.8. It was working well when I was running Apache 2.2.6.
Could that be an indicator of some issue with webmin running Apache 2.2.8?
|
|
|
|
The administrator has disabled public write access. |
hobbes006 (User)
Posts: 15
|
| Re:debian etch, apache 2.2.8 start problem 2008/05/08 12:35 |
|
|
Anyone? Any idea on what could be preventing webmin from reading Apache 2.2.8's status while on the other hand, when I manually run /etc/init.d/apache2 restart or start or force-reload or stop commands, everything works perfectly at command line?
|
|
|
|
The administrator has disabled public write access. |
Joe (Admin)
Posts: 3602
|
| Re:debian etch, apache 2.2.8 start problem 2008/05/08 12:45 |
|
|
It's gotta be the pid file. That's how Webmin knows whether Apache is running or not. Make sure it points to the right place. Presumably it moved in the more recent version of Apache.
|
|
|
|
The administrator has disabled public write access. |
hobbes006 (User)
Posts: 15
|
| Re:debian etch, apache 2.2.8 start problem 2008/05/08 12:49 |
|
|
Hi Joe,
Thanks for your support again. I ran "find / -name apache2.pid" and it is revealed that the apache2.pid file exists in "/var/run/apache2.pid"
How can I instruct webmin to know that apache2.pid exists in that location? The /etc/webmin/apache/config file does not seem to have such a setting.
|
|
|
|
The administrator has disabled public write access. |
Joe (Admin)
Posts: 3602
|
| Re:debian etch, apache 2.2.8 start problem 2008/05/08 12:50 |
|
|
Click "Module Config" in the Apache module.
|
|
|
|
The administrator has disabled public write access. |
hobbes006 (User)
Posts: 15
|
| Re:debian etch, apache 2.2.8 start problem 2008/05/08 12:52 |
|
|
Got it! :)
Thanks for your help! Webmin reads the pid file now and all is good.
|
|
|
|
The administrator has disabled public write access. |
|