virtualmin / virtualmin-gpl

Virtualmin web hosting control panel for Webmin
https://www.virtualmin.com
GNU General Public License v3.0
331 stars 102 forks source link

Can't change execution mode from php-fpm to fcgid (after upgrade?) #41

Open kintaro1981 opened 6 years ago

kintaro1981 commented 6 years ago

Debian 8 php 5.6.33 phpfpm Virtualmin 6 (upgraded from 5.99)

If I try to change the php execution mode from PHPFPM to FCGId I got a:

Changing PHP execution mode to FCGId (run as virtual server owner) ..
Failed to save website options : No PHP command found!

I suspect that the problem came up after the upgrade from 5.99 to 6. (I've done it updating the ATP repository).

kintaro1981 commented 6 years ago

it is related to this: https://www.virtualmin.com/node/53457

I temporarily solved downgrading from 2.3 to 2.2: apt-get install webmin-virtualmin-nginx=2.2

alabamaster commented 6 years ago

I have the same problem. We will wait for the answer

jcameron commented 6 years ago

Does the php or php5 command exist on your system? If you didn't install the php-cgi package, it may not.

kintaro1981 commented 6 years ago

In my case php and php5 command exist.


:~$ php5 -v
PHP 5.6.33-0+deb8u1 (cli) (built: Jan  5 2018 15:46:26) 
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
jcameron commented 6 years ago

Just tested this on a fully updated CentOS 6 system, with no problems.

Is everyone who's seeing this bug using Debian or Ubuntu?

kintaro1981 commented 6 years ago

I’m on Debian 8 (with nginx 1.10.3)

Take a look here too: https://www.virtualmin.com/node/53457

alabamaster commented 6 years ago

:~$ php -v PHP 5.6.30-0+deb8u1 (cli) (built: Feb 8 2017 08:50:21) Copyright (c) 1997-2016 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies


Debian Linux 8 Linux 3.16.0-4-amd64 on x86_64 Intel(R) Xeon(R) CPU E5620 @ 2.40GHz, 2 cores Webmin version | 1.870 Virtualmin version | 6.02 Nginx version 1.6.2

jcameron commented 6 years ago

I just tested on a freshly installed and fully update Debian 8 system with PHP 7.1, and was able to switch to and from FPM mode just fine.

Which PHP version is everyone using?

kintaro1981 commented 6 years ago

As said in the OP of this issue I have php 5.6.33

Take a look also at the link to the VM forum I provided.

jcameron commented 6 years ago

Also tested this with just PHP 5.6.33 installed, and I was able to switch PHP modes just fine.

kintaro1981 commented 6 years ago

other people have the same problem (see the forum link), maybe they can give you more info about this

downgrading from webmin-virtualmin-nginx=2.3 to webmin-virtualmin-nginx=2.2 solved my problem

I didn't check differences between 2.2 and 2.3 (here on github there's no 2.3, right?).

pzamanis commented 6 years ago

Same problem Ubuntu 14.04 LTS, Package name webmin-virtualmin-nginx Update system APT Package description Webmin module for 'Nginx Webserver' Current state Running latest 2.3 Installed version 2.3 Available version 2.3

after creating new domain zamanis.gr

Creating administration group myzamanisgrus3r- .. .. done Creating administration user myzamanisgrus3r- .. .. done

Creating aliases for administration user .. .. done

Adding administration user to groups .. .. done

Creating home directory .. .. done

Creating mailbox for administration user .. .. done

Creating Nginx virtual host .. .. done

Starting PHP FastCGI server .. .. Nginx website failed! : virtualmin-nginx::feature_setup failed : virtualmin-nginx::feature_save_web_php_mode failed : No PHP command found! at ../web-lib-funcs.pl line 1445.

Setting up log file rotation .. .. no logging directive found in webserver configuration!

Creating MySQL login .. .. done

Creating MySQL database myzamanisgrus3r_ .. .. done

Creating Webmin user .. .. done

Applying Nginx configuration .. .. done

Re-loading Webmin .. .. done

Saving server details .. .. done

in site enabled and available directories the conf files are zamanis.gr.conf Nginx version 1.4.6

jcameron commented 6 years ago

@pzamanis - does the command php or php5 exist anywhere on your system?

kintaro1981 commented 6 years ago

@jcameron do you need more info from me? I would like to help to fix that. It seams that all the other people are not very active here on GitHub and on VM's forum.

jcameron commented 6 years ago

@kintaro1981 - any chance I could login to your system to see what's going on here?

pzamanis commented 6 years ago

@jcameron i am sorry for the delay ,

i do not understand the question, where should i look (if you need credentials to my server i ll be happy to give you)

jcameron commented 6 years ago

You can send me login credentials at jcameron@virtualmin.com , and I'll take a look.

PauloBoaventura commented 5 years ago

I have an inverse problem ... After some third party installations, or rather, almost installations since I canceled when I looked it was going to uninstall Virtualmin ... And I started having problems with my servers ...

Like I said, my problem is the opposite. The CGI option appears but others like php-FPM and others do not appear ... I uninstalled PHP 5.6, 7.0, 7.1, 7.2 and 7.3 all of them ... CLI, FPM CGI and their extensions ... And I installed again ... I did Reboot on services and server ... Several times, but did not get results.

I tried apt-get install webmin-virtualmin-nginx = 2.2 but says it's in version 2.5

@jcameron I do not understand, you want the server login, for you to verify?

Any solution?