Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
When I try to start Apache2 (apachectl start) the command prompt returns right away. But when I check the processes (ps ax) I can't find httpd. And when I try to hit the server from a browser I get "the page cannot be displayed" error. How can I figure out whats wrong and fix it?
Depending on your distribution, the process can be called apache too. And try
sudo /etc/init.d/apache start
or
sudo /etc/init.d/httpd start
or
service apache start
Now that that's in the clear, I don't have any experience with Suse and/or OpenSuse, but I imagine there are logs in there also. Maybe even in the same location as most of the distros, nl. /var/log.
Can you have a look in there and check if there's a directory called apache or apache2, or httpd? Maybe there's even a httpd.log in the /var/log/ directory. Can you check what, if any, errors it contains? Also check /var/log/messages and /var/log/syslog for errors in regard to the httpd/apache process. Post any relevant information here please.
Thank you for the help. I was able to find the error_log file in /var/log/apache2 directory. And there was an error that indicated it was not able to create the httpd.pid file in /usr/local/apache2/logs directory because that directory didn't exist. So created the directory and everything seems to work fine now.
You're welcome. Sorry for the late reply but my internet has the hick-up and fails on me like every 5 minutes. Glad you solved it, have fun using Linux.
If you consider the problem solved then please mark this thread as such using the Thread Tools.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.