• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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