apache cannot start


 
Thread Tools Search this Thread
Operating Systems Solaris apache cannot start
# 8  
Old 07-05-2009
Quote:
Originally Posted by Neo
Good job, glad it is working now. Those pesky httpd.pid files can cause problems.

Regarding apache process ownership, you might be OK already.

Did you check the config file?

Normally, there is a line in the httpd.conf (apache.conf or apache2.conf) file where you specify the process owner, something like:

Code:
Port 80
User apache
Group apache

It is unusual for apache, as I recall, to have a default configuration file with User root.

Can you post yours?
here is the config located in
Code:
/usr/local/apache2/conf/httpd.conf

Code:
User nobody
Group nobody
</Ifmodule>
</IfModule>
Listen 80

# 9  
Old 07-05-2009
And after you deleted the pid file (httpd.pid) and restarted apache who owns that file now?

Also, when you do a ps <whatever> who owns the processes that are running apache now?

Please post. Thanks.

---------- Post updated at 16:47 ---------- Previous update was at 16:43 ----------

Also, does your machine actually have a User nobody and Group nobody?
# 10  
Old 07-05-2009
Quote:
Originally Posted by Neo
Also, does your machine actually have a User nobody and Group nobody?
If it's Solaris, it does.
# 11  
Old 07-05-2009
Quote:
Originally Posted by reborg
If it's Solaris, it does.
Understood.

I tend to like to confirm they exist (or do not exist), since they can be easily removed, especially when we don't fully know the history of the machine.
# 12  
Old 07-05-2009
as reborg said If it's Solaris, it does.
Code:
-bash-3.00$ grep nobody /etc/passwd

reveals an output like the following
Code:
nobody:x:60001:60001:NFS Anonymous Access User:/:
nobody4:x:65534:65534:SunOS 4.x NFS Anonymous Access User:/:

Code:
-bash-3.00$ grep nobody /etc/group

reveals an output like this
Code:
nobody::60001:

Code:
ps -eaf

reveals the following
Code:
bash-3.00$ ps -eaf | grep httpd | grep -v grep
  nobody  1916  1911   0 22:39:17 ?           0:00 /usr/local/apache2/bin/httpd -k start
    root  1911     1   0 22:39:16 ?           0:00 /usr/local/apache2/bin/httpd -k start
  nobody  1913  1911   0 22:39:17 ?           0:00 /usr/local/apache2/bin/httpd -k start
  nobody  1915  1911   0 22:39:17 ?           0:00 /usr/local/apache2/bin/httpd -k start
  nobody  1914  1911   0 22:39:17 ?           0:00 /usr/local/apache2/bin/httpd -k start
  nobody  1912  1911   0 22:39:17 ?           0:00 /usr/local/apache2/bin/httpd -k start

ls -l httpd.pid reveals the following

Code:
bash-3.00$ ls -l /usr/local/apache2/logs/
total 433464
-rw-r--r--   1 root     root           0 Mar 11 12:42 access_log
-rw-r--r--   1 root     root     3489021 Sep  3  2007 access_log.gz
-rw-r--r--   1 root     root     100272126 Jul  5 22:36 dummy-host.example.com-access_log
-rw-r--r--   1 root     root     87096852 Mar  5 23:11 dummy-host.example.com-access_log.gz
-rw-r--r--   1 root     root     13221154 Jul  5 14:16 dummy-host.example.com-error_log
-rw-r--r--   1 root     root     9175989 Mar  5 23:10 dummy-host.example.com-error_log.gz
-rw-r--r--   1 root     root     5909800 Jul  5 22:39 error_log
-rw-r--r--   1 root     root     2522824 Mar  5 23:09 error_log.gz
-rw-r--r--   1 root     other          5 Jul  5 22:39 httpd.pid
-rw-r--r--   1 root     root       67584 Jul  5 22:39 jk-runtime-status
-rw-r--r--   1 root     root           1 Jul  5 22:39 jk-runtime-status.lock

# 13  
Old 07-07-2009
hey reborg and Neo
i posted
Code:
ls -l /usr/local/apache2/logs/httpd.pid

Code:
-bash-3.00$ grep nobody /etc/passwd

and so on
what's next any idea
# 14  
Old 07-07-2009
What's the exact problem? apache is up and running, as you said. What is the issue?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Display status of instances in apache - Where to start

Hello, I know this is not a simple question so I just need to know where to start for below project: I am running under Ubuntu 18.04 What I'd like to see in apache page is to display status of particular process pids. ps aux | grep keywords.txt keywords.txt word1 word2 word3 word4... (9 Replies)
Discussion started by: baris35
9 Replies

2. Web Development

Unable to start the apache web server

Hi All, I'm getting this below error bash-4.1$ ./apachectl -k start (98)Address already in use: make_sock: could not bind to address hostname:18000 no listening sockets available, shutting down Unable to open logs I tried to change the port number, still same error: ... (5 Replies)
Discussion started by: raghur77
5 Replies

3. Red Hat

Apache start error

I have a new server, installed everything and tried to get it all up and running. Got the following issue: # /usr/local/apache/bin/apachectl start httpd: Syntax error on line 54 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/libphp5.so into server:... (0 Replies)
Discussion started by: Tommyk
0 Replies

4. UNIX for Advanced & Expert Users

Apache does not start

After i added this line to my apache httpd.conf it does not start. AuthUserFile /apps/apache22/conf/httpd.passwd and i see the below error. Syntax error on line 876 of /apps/apache22/conf/httpd.conf: AuthUserFile not allowed here Kindly help. (4 Replies)
Discussion started by: mohtashims
4 Replies

5. Solaris

Apache start issue

Hi group, I need help to start apache in following scenario: 1) Say apache is installed on solaris OS by user 'root'. 2) An entry is there in httpd.conf that says to start apache process as user: #User <RUN_AS_USER> is edited as User user1 2) Now say user2 has logged and tries to start... (6 Replies)
Discussion started by: rs266
6 Replies

6. Solaris

help me........... my apache can't start

help me please.................bro i was install apache2 and i have been configure httpd.conf on my solaris 10 machine n i already running my httd service but why my webserver couldn't run on my browser? some buddy help me.............:confused::confused::confused::confused::confused: (5 Replies)
Discussion started by: yatmianto
5 Replies

7. Solaris

Apache start problem

Hi, I have installed apache webserver on my solaris 10(x86). When I tried to start the server it gives following error, ld.so.1: /usr/local/apache2/bin/httpd: fatal: libssl.so.0.9.8: open failed: No such file or directory Killedld.so.1:: Too many arguments Can somebody please guide me how... (1 Reply)
Discussion started by: maheshsri
1 Replies

8. AIX

Start Stop Apache

I am in the process of reorging my Lawson db. I need to turn off the RMI server...not a problem. However my instructions also state that I must also shutdown my Servlet Container....I believe it is Apache. I have looked in /usr/apache/bin/apachectl What is the command for stopping and... (2 Replies)
Discussion started by: MILLERJ62
2 Replies

9. UNIX for Dummies Questions & Answers

Apache start (Was in:how can i?) [Split by LF]

I need to know, which script starts the apache web server on start up? If anyone could help me that would be great. I'm in deep trouble if I can't find the script. thanks very much dan donohd If you know my e-mail is donohd@sage.edu thanks:( (1 Reply)
Discussion started by: donohd
1 Replies

10. UNIX for Dummies Questions & Answers

Apache wont start

Hi, like a lot of people that post here, I am new at UNIX. The only UNIX I have ever messed with is my iBook running MacOSX (10.1). I have a grasp of the basic commands and understanding of the system but only to a point. I searched the archive and FreeBSD.org and apache.org but I couldn't find... (4 Replies)
Discussion started by: Alpha_Harblo
4 Replies
Login or Register to Ask a Question