• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.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