• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

php execution in domain only show fastcgi (not module).

EveMauta

Basic Pleskian
Hi,
Have the same case for 4 servers (web and pro), the menu in plesk could not show another choice, only fastcgi.

Handlers look like ok:
root@serveur:~# /usr/local/psa/admin/sbin/php_handlers_control --list
id: display name: version: type: cgi-bin: cli-bin: php.ini:
module 5.4.4 5.4.4 module /usr/bin/php5-cgi /etc/php5/cgi/php.ini
fastcgi 5.4.4 5.4.4 fastcgi /usr/bin/php5-cgi /etc/php5/cgi/php.ini
cgi 5.4.4 5.4.4 cgi /usr/bin/php5-cgi /etc/php5/cgi/php.ini

/usr/local/psa/bin/php_handler --list
id: display name: full version: version: type: cgi-bin: php-cli: php.ini: custom:
cgi 5.3.10 5.3.10 5.3 cgi /usr/bin/php5-cgi /etc/php5/cgi/php.ini false
fastcgi 5.3.10 5.3.10 5.3 fastcgi /usr/bin/php5-cgi /etc/php5/cgi/php.ini false
module 5.3.10 5.3.10 5.3 module /usr/bin/php5-cgi /etc/php5/cgi/php.ini false

I try to select it by ssh:
root@serveur:~# /usr/local/psa/bin/domain --update DOMAIN.TLD -php_handler_type module
Wrong value of php_handler_type, it can take only FastCGI application

After some test can't remenber all, last command worked
I done this at least:
/usr/local/psa/bin/domain --update DOMAIN.TLD -nginx-serve-php false

Anyway do you have an idea how to force to display php module ?

Best regards
Eve
 
Dear UFHH01,

This thread could not help me because in my case fastcgi is selected for both domains.

In this server I installed another php manually:

mysql> use psa;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> select section,name from ServiceNodeEnvironment where section='phphandlers';
+-------------+------------------------------------------+
| section | name |
+-------------+------------------------------------------+
| phphandlers | 6875cbcf9113ad52b1687724cadae3b2902d751f |
| phphandlers | cgi |
| phphandlers | fastcgi |
| phphandlers | module |
| phphandlers | synced |
+-------------+------------------------------------------+
5 rows in set (0.01 sec)

mysql> select dom_id,php,php_handler_id from hosting where php='true';
+--------+------+----------------+
| dom_id | php | php_handler_id |
+--------+------+----------------+
| 2 | true | fastcgi |
| 3 | true | fastcgi |
+--------+------+----------------+
2 rows in set (0.00 sec)



/usr/local/psa/bin/domain --update titi.fr -php_handler_type fastcgi
SUCCESS: Update of domain 'velovelo.com' completed.

usr/local/psa/bin/domain --update titi.fr -nginx-serve-php false
SUCCESS: Update of domain 'velovelo.com' completed.

/usr/local/psa/bin/domain --update titi.fr -php_handler_type module
Wrong value of php_handler_type, it can take only FastCGI application
 
Make sure that VPS optimized mode is turned off:

# /usr/local/psa/bin/vps_optimized --status

Also problem with vhosts directory permissions can be there. Fix it with

# /usr/local/psa/bin/repair --restore-vhosts-permissions
 
Back
Top