Re: weird apache issue

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



On 03/03/2014 05:01 PM, Johnny Hughes wrote:
> On 03/03/2014 03:28 PM, Tim Dunphy wrote:
>> Hey all,
>>
>> I'm having a little bit of a weird issue on my web host. I was just
>> wondering if anyone's seen anything like this before.
>>
>> The problem is that you can't seem to restart apache via the stock init
>> script that comes with apache:
>>
>> [root@beta:~] #service httpd restart
>> Stopping httpd:                                            [FAILED]
>> Starting httpd: [Mon Mar 03 11:21:14 2014] [warn] module php5_module is
>> already loaded, skipping
>> (98)Address already in use: make_sock: could not bind to address [::]:80
>> (98)Address already in use: make_sock: could not bind to address
>> 0.0.0.0:80<http://0.0.0.0/>
>> no listening sockets available, shutting down
>> Unable to open logs
>>                                                            [FAILED]
>> [root@beta:~] #
>>
>> IT complains that apache can't restart because apache is already listening.
>>
>> So what you have to do in this case is kill it like so:
>>
>> [root@beta:~] #pgrep httpd
>> 12322
>> 22405
>> 22505
>> 22506
>> 22507
>> 22508
>> 22509
>> 22510
>> 22511
>> 22512
>> [root@beta:~] #
>>
>> [root@beta:~] #pkill httpd
>>
>>
>> And repeat as necessary until you can achieve this:
>>
>> [root@beta:~] #pgrep httpd
>> [root@beta:~] #
>>
>>
>> It's a real pain with it being the way it is, because this makes it
>> impossible for puppet to manage this service. I'm mainly just tired of
>> seeing errors in the reports about this! :)
>>
>> So whaddya think? Have you ever seen this problem before and do you know
>> how to solve this issue?
>>
>> Thanks,
>> Tim
>>
> Are you sure all the instances were started by the stock initscript
> initially ... it sounds like something is killing or creating apache
> instances that are in /var/run/httpd/

I meant something else is starting httpd and NOT putting the info in
/var/run/httpd/

>
> That normally happens if httpd is started manually by another script or
> user process rather than the one in /etc/init.d/
>



Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux