• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

php4 and php5 at the same time

T

Tony79

Guest
hi,
its my firt post here. My english its no good bu i try to explain the problem.

in my plesk server i have:
php4 module
php5 cgi

for set php5, i have to do this:
1)go to"/var/www/vhost/dominio.com/conf"

2)write"vhost.conf"

with this content:

ScriptAlias /php5-cgi-custom /home/httpd/vhosts/dominio.com/httpdocs

Action application/x-httpd-php5-custom "/php5-cgi-custom/php5"

3)run this command"/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=dominio.com"

4)edit this file "var/www/vhosts/dominio.com/conf/httpd.include"

5)put the comment to "SuexecUserGroup" es: # SuexecUserGroup php5 psacln

6)go to "/var/www/vhosts/dominio.com/httpdocs"

7)create ".htaccess"

with this content:

"AddType application/x-httpd-php5 .php"

8)go to "/var/www/vhosts/dominio.com/bin"

9)run the command "cp /usr/local/php5/bin/php5 ./php5"

10)run the command "service httpd restart"

now PHP5 work fine. i set on file httpd.include this attribute "-r--r--r--" but avery time that the client modify the ftp password on PLESK, PLESK overwrite the file httpd.include and reset the php4.

there are a definitely solution for this problem?
 
Back
Top