mysql5.7安装后,服务启动有问题,排查后,自己解决了。
php 7 以上的版本没问题。
php7 以下的版本(试了5.4 5.6) 运行php代码能echo 'aaa'; 但是 phpinfo()空白,开启错误提示也没报错信息。之前能在ubuntu16.04上运行的项目,放到ubuntu 18.04上 空白。
希望修复下ubuntu 18.04上的问题。
php 7 以上的版本没问题。
php7 以下的版本(试了5.4 5.6) 运行php代码能echo 'aaa'; 但是 phpinfo()空白,开启错误提示也没报错信息。之前能在ubuntu16.04上运行的项目,放到ubuntu 18.04上 空白。
希望修复下ubuntu 18.04上的问题。
2 Answers
@oneinstack 求助大神。 php5 出现上面的问题。php7没问题。 全部卸载了,只装php5也是同样的问题。
$ sudo service php5-fpm status
● php5-fpm.service - LSB: starts php-fpm
Loaded: loaded (/etc/init.d/php5-fpm; generated)
Active: active (running) since Thu 2018-05-03 09:39:50 CST; 7h ago
Docs: man:systemd-sysv-generator(8)
Process: 4890 ExecStop=/etc/init.d/php5-fpm stop (code=exited, status=0/SUCCESS)
Process: 4931 ExecStart=/etc/init.d/php5-fpm start (code=exited, status=0/SUCCESS)
Tasks: 9 (limit: 3994)
CGroup: /system.slice/php5-fpm.service
├─4933 php-fpm: master process (/usr/local/php5/etc/php-fpm.conf)
├─4934 php-fpm: pool www
├─4935 php-fpm: pool www
├─4936 php-fpm: pool www
├─4937 php-fpm: pool www
├─4938 php-fpm: pool www
├─4939 php-fpm: pool www
├─4940 php-fpm: pool www
└─4941 php-fpm: pool www
May 03 09:39:50 EYE systemd[1]: Starting LSB: starts php-fpm...
May 03 09:39:50 EYE php5-fpm[4931]: Starting php-fpm done
May 03 09:39:50 EYE systemd[1]: Started LSB: starts php-fpm.
$ sudo service php-fpm status
● php-fpm.service - LSB: starts php-fpm
Loaded: loaded (/etc/init.d/php-fpm; generated)
Active: active (running) since Thu 2018-05-03 16:55:07 CST; 3s ago
Docs: man:systemd-sysv-generator(8)
Process: 4508 ExecStop=/etc/init.d/php-fpm stop (code=exited, status=0/SUCCESS)
Process: 24395 ExecStart=/etc/init.d/php-fpm start (code=exited, status=0/SUCCESS)
Tasks: 9 (limit: 3994)
CGroup: /system.slice/php-fpm.service
├─24397 php-fpm: master process (/usr/local/php/etc/php-fpm.conf)
├─24398 php-fpm: pool www
├─24399 php-fpm: pool www
├─24400 php-fpm: pool www
├─24401 php-fpm: pool www
├─24402 php-fpm: pool www
├─24403 php-fpm: pool www
├─24404 php-fpm: pool www
└─24405 php-fpm: pool www
May 03 16:55:07 EYE systemd[1]: Starting LSB: starts php-fpm...
May 03 16:55:07 EYE php-fpm[24395]: Starting php-fpm done
May 03 16:55:07 EYE systemd[1]: Started LSB: starts php-fpm.
$ sudo service php5-fpm status
● php5-fpm.service - LSB: starts php-fpm
Loaded: loaded (/etc/init.d/php5-fpm; generated)
Active: active (running) since Thu 2018-05-03 09:39:50 CST; 7h ago
Docs: man:systemd-sysv-generator(8)
Process: 4890 ExecStop=/etc/init.d/php5-fpm stop (code=exited, status=0/SUCCESS)
Process: 4931 ExecStart=/etc/init.d/php5-fpm start (code=exited, status=0/SUCCESS)
Tasks: 9 (limit: 3994)
CGroup: /system.slice/php5-fpm.service
├─4933 php-fpm: master process (/usr/local/php5/etc/php-fpm.conf)
├─4934 php-fpm: pool www
├─4935 php-fpm: pool www
├─4936 php-fpm: pool www
├─4937 php-fpm: pool www
├─4938 php-fpm: pool www
├─4939 php-fpm: pool www
├─4940 php-fpm: pool www
└─4941 php-fpm: pool www
May 03 09:39:50 EYE systemd[1]: Starting LSB: starts php-fpm...
May 03 09:39:50 EYE php5-fpm[4931]: Starting php-fpm done
May 03 09:39:50 EYE systemd[1]: Started LSB: starts php-fpm.
$ sudo service php-fpm status
● php-fpm.service - LSB: starts php-fpm
Loaded: loaded (/etc/init.d/php-fpm; generated)
Active: active (running) since Thu 2018-05-03 16:55:07 CST; 3s ago
Docs: man:systemd-sysv-generator(8)
Process: 4508 ExecStop=/etc/init.d/php-fpm stop (code=exited, status=0/SUCCESS)
Process: 24395 ExecStart=/etc/init.d/php-fpm start (code=exited, status=0/SUCCESS)
Tasks: 9 (limit: 3994)
CGroup: /system.slice/php-fpm.service
├─24397 php-fpm: master process (/usr/local/php/etc/php-fpm.conf)
├─24398 php-fpm: pool www
├─24399 php-fpm: pool www
├─24400 php-fpm: pool www
├─24401 php-fpm: pool www
├─24402 php-fpm: pool www
├─24403 php-fpm: pool www
├─24404 php-fpm: pool www
└─24405 php-fpm: pool www
May 03 16:55:07 EYE systemd[1]: Starting LSB: starts php-fpm...
May 03 16:55:07 EYE php-fpm[24395]: Starting php-fpm done
May 03 16:55:07 EYE systemd[1]: Started LSB: starts php-fpm.
Please login or Register to submit your answer