Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Hi, I upgraded PHP on my Centos 6 box, but now Apache is not running. I think one or more process is locked, but I don't know what to do about it. Please advise. Thank you
- check what packages got upgraded and if configs where merged or not,
- run apachectl and validate your configuration,
- check Apaches error log.
Thanks unSpawn,
I went through the config files, and think they are all good. apachectl checks out.
Should have checked the error log before crying wolf. Looks like it might not be a locked process as I first thought, but a memory issue. Agree? Does the memory reports below shed any light?
EDIT. By the way, it is a virtual server. I did the same upgrade on a physical machine, and don't have any issues.
Thank you
Code:
[root@vps httpd]# apachectl configtest
Syntax OK
[root@vps httpd]# tail error_log
[Sun Sep 04 07:36:17 2016] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun Sep 04 07:36:17 2016] [warn] RSA server certificate wildcard CommonName (CN) `*.example.com' does NOT match server name!?
[Sun Sep 04 07:36:17 2016] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Sun Sep 04 07:36:17 2016] [notice] Digest: generating secret for digest authentication ...
[Sun Sep 04 07:36:17 2016] [notice] Digest: done
Sun Sep 4 07:36:17 2016 (13844): Fatal Error Unable to allocate shared memory segment of 134217728 bytes: mmap: No space left on device (28)
[root@vps httpd]#
As root try 'sysctl -w kernel.shmmax=$[134217728+(134217728/2)]'? (If that works you also need to fixate in /etc/sysctl.conf.) The other way could be to check and lower memory_limit in php.ini. IIRC that could affect zend / opcache so you have to assess if it's worth it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.