Enable Custom PHP Version On Plesk#
- Log into server
- cd /var/www/vhosts/DOMAIN/conf/
- vi vhost.conf
- Press i for insert mode
- cut and paste the following into vhost.conf, replace DOMAIN
<Directory /var/www/vhosts/DOMAIN/httpdocs>
<IfModule sapi_apache2.c>
php_admin_flag engine on
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
</IfModule>
</Directory>
- Press escape
- type wq then enter to save and close vi
- run the command to enable the changes:
/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=DOMAIN
- run the command and check in the output that the vhost include is added
cat /var/www/vhosts/DOMAIN/conf/httpd.include
Back to Linux
Add new attachment
Only authorized users are allowed to upload new attachments.
«
This page (revision-1) was last changed on 08-Feb-2010 10:37 by Hyve Support