maicong / LNMP

Support: Nginx 1.12/1.13 + MySQL 5.5/5.6/5.7/8.0(MariaDB 5.5/10.0/10.1/10.2/10.3) + PHP 5.4/5.5/5.6/7.0/7.1/7.2 + phpMyAdmin(Adminer)
MIT License
256 stars 92 forks source link

Start up bug #24

Closed mrl22 closed 6 years ago

mrl22 commented 6 years ago

Great set of scripts.

I have installed on Centos 7 and when I reboot I get "502 Bad Gateway" when visiting PHP pages.

I think this is the error: [12-Apr-2018 16:11:26] ERROR: Unable to create the PID file (/run/php-fpm/php-fpm-index.pid).: No such file or directory (2)

To get around this I have added the following to /etc/rc.local

mkdir /run/php-fpm service vhost stop service vhost start

mrl22 commented 6 years ago

If I do not run service vhost stop then I get the following error: [ERROR] index host maybe running or not exist

maicong commented 6 years ago

OK, I will check it right now.

mrl22 commented 6 years ago

I am happy to give you access to a virtual machine for you to play around with that has this issue if you like.

maicong commented 6 years ago

I'm sorry to have kept you waiting for a long time. I think i fixed it, please try again.