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.
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.
Distribution: FreeBSD 5.1, Debian 3.0, Damn Small 0.4.2
Posts: 46
Rep:
apache2 not starting :(
I just installed apache 2 here on one of my machines. I'm a faithful 1.3 user but decided to try version 2. Anyways, I cannot get it to start. I run the apachectl script as root, it seems like i has started ok, but it doesnt actually start. Running apachectl start followed immediately by apachectl stop gives the output 'httpd (no pid file) not running'. Any ideas whats happening here?
Try running the httpd binary with the -X flag this will keep it attached to the console (Ctrl+C to kill) See if it starts or if it gives errors - post the output if there is any.
Distribution: FreeBSD 5.1, Debian 3.0, Damn Small 0.4.2
Posts: 46
Original Poster
Rep:
Quote:
Originally posted by david_ross Try running the httpd binary with the -X flag this will keep it attached to the console (Ctrl+C to kill) See if it starts or if it gives errors - post the output if there is any.
Running it with the -X flag gives no output. It simply looks the same (runs the command for a second, returns command prompt).
Distribution: FreeBSD 5.1, Debian 3.0, Damn Small 0.4.2
Posts: 46
Original Poster
Rep:
Quote:
Originally posted by solspin Make sure in the httpd.conf file that you have the lines under
the section:
### Section 2: 'Main' server configuration
User nobody
Group nobody
Don't know if you already did this.
the httpd.conf currently says
User nobody
Group nogroup
I don't think that is the problem. If I tell it to run as root (I know it can't), It does give me an error message, meaning it gets at least this far when processing the .conf file. I still don't know where the problem is though.....
This won't be of much use for your problem, but I once had the same situation with Apache 2, and did enough forum searches and readings about this to convince me to go back to 1.3.xx
It's been some time ago, so I can't recall exactly what was said about it other than it seems Apache 2 has serious differences from the 1.3.xx
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.