outroll / vesta

VESTA Control Panel
http://vestacp.com
GNU General Public License v3.0
2.95k stars 1.03k forks source link

ubuntu 14.04 - nginx - can't restart php-fpm as the service is called php5-fpm #1042

Open kamil7732 opened 7 years ago

kamil7732 commented 7 years ago

When the vesta tries to restart php-fpm I constantly get emails "php-fpm restart failed". When I try to restart php-fpm only "service php5-fpm" works.

Operating System (OS/VERSION):

ubuntu 14.04

VestaCP Version:

0.9.8

Installed Software (what you got with the installer):

bash vst-install.sh --nginx yes --phpfpm yes --apache no --vsftpd yes --proftpd no --exim yes --dovecot yes --spamassassin yes --clamav yes --named yes --iptables yes --fail2ban yes --mysql yes --postgresql no --remi yes --quota yes

Steps to Reproduce:

use it with nginx and php-fpm

Pleskan commented 7 years ago

I guess that it is Ubuntu 14.04 bug. Command service php5-fpm restart doesn't work as expected. This cause subject error.

kamil7732 commented 7 years ago

I migrated to ubuntu 16.04 as it was easier also trying to get php7 on vesta with ubuntu 14.04 was a nightmare everything collapsed.

From: Anton Pleskanovskyy notifications@github.com notifications@github.com Reply: serghey-rodin/vesta reply@reply.github.com reply@reply.github.com Date: 1 February 2017 at 10:09:48 To: serghey-rodin/vesta vesta@noreply.github.com vesta@noreply.github.com Cc: Kamil rymoholiko@gmail.com rymoholiko@gmail.com, Author author@noreply.github.com author@noreply.github.com Subject: Re: [serghey-rodin/vesta] ubuntu 14.04 - nginx - can't restart php-fpm as the service is called php5-fpm (#1042)

I guess that it is Ubuntu 14.04 bug. Command service php5-fpm restart doesn't work as expected. This cause subject error.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/serghey-rodin/vesta/issues/1042#issuecomment-276607194, or mute the thread https://github.com/notifications/unsubscribe-auth/AAsQzAppBuhufkyfpjdebl1xlel704Tpks5rYEvagaJpZM4Lpfg3 .

Pleskan commented 7 years ago

I will test just /etc/init.d/php5-fpm restart in the install script. If I it will be successful try, I'll mail you, OK?

kamil7732 commented 7 years ago

Sure but still I migrated to ubuntu 16.04 as nextcloud needs something grater then php 5.5.9. And the owncloud/nextcloud is another problem to solve. The template is broken I’ve made push request with proper solution but now the caldav sync doesn’t work with most popular android app to sync it. When and if I have a solution I will try to incorporate it into vestacp.

-- Pozdrawiam Kamil

From: Anton Pleskanovskyy notifications@github.com notifications@github.com Reply: serghey-rodin/vesta reply@reply.github.com reply@reply.github.com Date: 1 February 2017 at 10:14:29 To: serghey-rodin/vesta vesta@noreply.github.com vesta@noreply.github.com Cc: Kamil rymoholiko@gmail.com rymoholiko@gmail.com, Author author@noreply.github.com author@noreply.github.com Subject: Re: [serghey-rodin/vesta] ubuntu 14.04 - nginx - can't restart php-fpm as the service is called php5-fpm (#1042)

I will test just /etc/init.d/php5-fpm restart in the install script. If I it will be successful try, I'll mail you, OK?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/serghey-rodin/vesta/issues/1042#issuecomment-276608133, or mute the thread https://github.com/notifications/unsubscribe-auth/AAsQzMv4oONfH7dR4xQM6aKeS6QcQTimks5rYEz0gaJpZM4Lpfg3 .

Pleskan commented 7 years ago

This issue caused by symlink /etc/init.d/php-fpm it doesn't work at all Here is the code if [ "$phpfpm" = 'yes' ]; then pool=$(find /etc/php -type d ( -name "pool.d" -o -name "fpm.d" )) wget $vestacp/php-fpm/www.conf -O $pool/www.conf php_fpm=$(ls /etc/init.d/php-fpm |cut -f 4 -d /) ln -s /etc/init.d/$php_fpm /etc/init.d/php-fpm > /dev/null 2>&1 update-rc.d $php_fpm defaults service $php_fpm start check_result $? "php-fpm start failed" fi But I have no idea how to fix the bug for now.

Pleskan commented 7 years ago

I would like to add strace dump for developers of Vesta http://pastebin.com/6uJcfiAg

SysVoid commented 7 years ago

Thank you for the report.

Pleskan commented 7 years ago

You are welcome! ;-)