[users@httpd] FW: Unable to use apachectl to start

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Have tried shutting down and restarting but apache still won't start, but I
do start it on boot.

Trying both 'apachectl -k start' and 'apache2ctl -k start' gives the
following messages
"no listening sockets available, shutting down"
"Unable to open logs"

Have looked for the pid files but none are there, looking in the place where
the .conf file says they should be.

When I try and stop with apachectl it gives the message...
PID xxxxx not running

Don't have many ideas myself and want to avoid deleting everything and find
it is an OS problem. Was wondering what particular file or other it might
check to determine the port is already being used, or whether that is
relevant? Can't see any processes running (httpd or apache2)



Thanks

> -----Original Message-----
> From: Gordon Low [mailto:glow2797@xxxxxxxxxxxxxx]
> Sent: Monday, August 07, 2006 2:19 PM
> To: users@xxxxxxxxxxxxxxxx
> Subject: [users@httpd] Unable to use apachectl to start
>
>
>
> Hoping that I can get some help with what may be a straight
> forward problem
> to some of you.
>
> Have a fairly simple home setup on a PC running Debian Sarge
> with a Linux
> 2.4 kernel and noticed I couldn't access the website at the
> home directory
> /home/~
>
> Went to recompile Apache with --suexec-userdir which I
> thought was missing.
> Haven't done this before (went easy from 2.0.3.. to 2.0.59)
> and finally used
> ./configure to include what I thought I would need. At this
> point I changed
> the name to apache2 as the installation which loaded with Debian was
> installed with apache2.conf, used apache2ctl etc.
>
> To get to the point, I saved off the apache2.conf files and
> done a 'make
> install'.
>
> At this point I then tried to stop apache but couldn't as it
> started looking
> for httpd and said it couldn't find the pid. Finally got
> impatient and done
> a  'kill' on all the processes. Now find I can't start apache
> and it says
> there is something using the port and that it can't write to
> the logs. There
> are no httpd or apache2 processes running.
>
> Hoping there is some way I can recover from this by manually clearing
> whatever apache seems to be getting blocked on. Had a problem
> before where
> it couldn't find port 80 but fixed that by making sure it was
> getting to the
> .conf file so have both apache2.conf and httpd.conf
> configured the same now,
> still won't start.
> Have tried finding out what apachectl does so I can follow it
> through but
> not having much luck.
> Can see the pid files in /var/run but don't know what to do here.

The simplest thing would be to reboot. That will clear any zombie
processes and get rid of stale filehandles. Then try to start apache
with your new setup.

BTW, I'm assuming you don't start apache on boot (ie, in /etc/rc3.d or
/etc/rc.local or whatever).

It's always a nuisance to upgrade a vendor apache - it's usually best to
clear it out and make a fresh install in a canonical location (eg,
/usr/local/apache2).

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored.
>
> Help!!!!
>
> Thanks
>
> Gordon Low
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux