LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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

Reply
 
Search this Thread
Old 05-27-2004, 02:35 PM   #1
mrgeoff
LQ Newbie
 
Registered: Nov 2003
Posts: 3

Rep: Reputation: 0
apache wont start


i have compiled apache 2.0.49 into /usr/local/apache2. After "make install" i try to start apache w/ "./apachectl -k start ".... nothing happens. I try to connect and the client is refused. I also tried looking and the error_log and nothing is in there... its as if the program isn't being run. Can anyone help me out?
 
Old 05-27-2004, 02:51 PM   #2
subzero80
LQ Newbie
 
Registered: Jan 2003
Posts: 28

Rep: Reputation: 15
httpd -k start for apache 2.0
 
Old 05-27-2004, 02:51 PM   #3
mrgeoff
LQ Newbie
 
Registered: Nov 2003
Posts: 3

Original Poster
Rep: Reputation: 0
ive done that also... still no output in the logs
 
Old 05-31-2004, 02:25 AM   #4
mrgeoff
LQ Newbie
 
Registered: Nov 2003
Posts: 3

Original Poster
Rep: Reputation: 0
ive installed webmin on the computer and im running it using that..... when i try to start apache from webmin i get

Quote:
Failed to start apache :

[Sun May 30 22:19:34 2004] [warn] pid file /usr/local/apache2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun May 30 22:19:34 2004] [emerg] (22)Invalid argument: Couldn't set permissions on cross-process lock; check User and Group directives
[Sun May 30 22:20:16 2004] [emerg] (22)Invalid argument: Couldn't set permissions on cross-process lock; check User and Group directives
[Sun May 30 22:21:06 2004] [warn] pid file /usr/local/apache2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun May 30 22:21:06 2004] [emerg] (22)Invalid argument: Couldn't set permissions on cross-process lock; check User and Group directives
ive played w/ the permissions and it doesnt help... what should i do?
 
Old 06-17-2004, 11:38 PM   #5
whatupab
LQ Newbie
 
Registered: Jun 2004
Distribution: Debian 3.0
Posts: 2

Rep: Reputation: 0
Apache won't start

I installed Apache 2.0.49 from downloaded installation file httpd_2.0.49.tar.gz on i386 machine running Debian 3.0r2. The installation appeared to be successfull, but I get the same error as previously reported by user "mrgeoff" - when trying to start Apache:

[Thu Jun 17 22:21:06 2004] [emerg] (22)Invalid argument: Couldn't set permissions on cross-process lock; check User and Group directives

Any ideas?
 
Old 06-18-2004, 01:05 AM   #6
linuxmarc
Member
 
Registered: Jun 2004
Posts: 44

Rep: Reputation: 15
Question

What user is Apache attempting to use when starting? I believe by default it switches to nobody if you use a listen port below 1024. You should check your httpd.conf file for user/group settings.
 
Old 06-18-2004, 02:28 PM   #7
whatupab
LQ Newbie
 
Registered: Jun 2004
Distribution: Debian 3.0
Posts: 2

Rep: Reputation: 0
Thumbs up apache won't start - problem fixed

I changed the ownership of all the apache files to a new user and group that I created (apache:apache) and changed httpd.conf accordingly, and now it works. Thanks.
 
Old 06-25-2004, 06:40 PM   #8
Jtrick
LQ Newbie
 
Registered: Jun 2004
Location: OH
Distribution: Debian currently
Posts: 20

Rep: Reputation: 0
Adding user and group for apache to use

Hello,

I found this thread while searching for a solution to the same problem. I am a relative newbie and have a possibly silly question: If I am creating a user and group called apache for Apache to use, what kinds of security issues do I need to consider? In my http.conf file I added

User apache
Group apache

in the <IfModule> section. To create a linux user on my system called apache, how should I set up the password, and how does Apache itself use this password when it launches? I know these may be very elementary questions but that's where I'm at here :-) I appreciate any help you all are willing to offer.

tia
 
Old 10-27-2004, 03:46 PM   #9
Maritimo
LQ Newbie
 
Registered: Oct 2004
Distribution: Debian Woody
Posts: 1

Rep: Reputation: 0
Re: Adding user and group for apache to use

Quote:
Originally posted by Jtrick
Hello,

I found this thread while searching for a solution to the same problem. I am a relative newbie and have a possibly silly question: If I am creating a user and group called apache for Apache to use, what kinds of security issues do I need to consider? In my http.conf file I added

User apache
Group apache

in the <IfModule> section. To create a linux user on my system called apache, how should I set up the password, and how does Apache itself use this password when it launches? I know these may be very elementary questions but that's where I'm at here :-) I appreciate any help you all are willing to offer.

tia
You don't need to create a new user and grup just add in your http.conf file :

User www-date
Group www-date

it works with apache 1.3 and 2.0
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache wont start stlyz3 Linux - Software 14 05-30-2005 02:25 PM
apache service wont start tenmiles Linux - General 3 11-26-2004 01:45 AM
apache 1.3 wont start on redhat 7.3 buddamonk Linux - Software 3 03-03-2004 11:31 PM
Apache wont start in Gentoo netquest1 Linux - Software 2 02-17-2004 10:13 PM
apache wont start... any ideas... Gear_freak2000 Linux - Software 6 06-02-2003 02:12 PM


All times are GMT -5. The time now is 07:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration