Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi all,
I've just installed SuSE Linux 7.2 (Pro) and I can't seem to get Apache up and running. Ideally, I'd like it to start at bootup
The configuration file seems fine (the relevant line saying
START_HTTPD="yes").
But when I type "rcapache status"
I get "Checking for httpd: unused", and I still get this message even after doing "rcapache start".
Putting localhost into my web browser doesn't access htdocs/index.htm, and when shutting down Linux I notice that it says 'Shutting down httpd failed'.
What happens when you just try to start apache from the command line? You can just try running httpd AFAIK, or use apachectl start instead, however you might need to find Apache's sbin directory for this one (so on my machine it is /var/lib/apache/sbin/apachectl start). That might give you some hints. Once you have found the Apache dir, then have a look at your httpd.conf file in the conf/ directory and see where the logs are kept (normaly /var/log/access and /var/log/error) and have a look through those files for more clues about why its not starting.
I've found, and looked at the Apache log files, and theres nothing in any of them, even after running "httpd" from the command line. Even after using this, and even typing in apachectl start, still nothing in the logs. In fact, all I get when I query the status is "unused".
When I try apachetcl status, I get:
Looking up localhost
Making HTTP connection to localhost
Alert! Unable to connect to remote host. lynx: can't file http://localhost/server_status
which is bemusing to say the least. The slightly worrying thing in the httpd.conf file is that a lot of the settings are encased in quotes, such as
START_HTTPD="yes" and DocumentRoot "/usr/local/httpd/htdocs"
- I don't suppose this makes a difference, does it?
But you don't get any errors on the command line when you try to start apache?? I'd expect some sorta message if it doesn't start. As for apachectl status, this just make a connection to the server so if it isn't running then it just fails. And there is definately not mention of httpd when you do a ps -ef?
Right... well if httpd isn't starting, and there's no errors on the command line and no errors in your logs then I'm almost out of ideas! The only thing I can say is double check everything in your httpd.conf.
I had a look at the document on the httpd website, but I don't know if it applies in this case. Looking at the config file, the mod_status module is specified, and it should work (I'm running Apache in standalone mode anyway). It just looks like Apache isn't running, but goodness knows why!
For your information, I got Apache up and running. According to SuSE, auth_ldap and mod_php4 were in conflict. I simply have to remove the authldap package and run SuSEconfig ... and Apache lives.
Shame the same can't be said about my MicroModem. Bl**dy PCtel
Paul,
I ran into the same issue with Redhat 7.1. Could please you tell me exactly how you fix the issue? I know you saying something about removing auth_ldap, it is not clear to me how you do that and what sort of conflict is that?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.