Plesk not actually usable any more... 10.3 how to disable open_basedir - FOREVER!!!!
Hi.
It seems the latest version of Plesk overrides safemode and open_basedir settings by writing to
/var/www/vhosts/domain.name/etc/php.ini
It completely ignores open_basedir settings in
/etc/php.ini, etc
And any settings relating to open_base dir in a vhost.conf file as outlined in Plesk's own knowledgebase article
http://kb.odin.com/432
-- This NO LONGER WORKS !!!! As the settings in /var/www/vhosts/domain.name/etc/php.ini override the settings in the vhost.conf file.
If I edit
/var/www/vhosts/domain.name/etc/php.ini
Then do changes in Plesk it overwrites my changes (and breaks domains) by re-writing to
/var/www/vhosts/domain.name/etc/php.ini
The only way I can actually control the server is by using a cron job to delete
/var/www/vhosts/*/etc/php.ini every 5 mins.... (not the best solution .................)
- then it follows what is in the standard php.ini file - and my domains work.
I know there are security implications regarding disabling it - that is not the point - I used to be able to disable it
Now I can only disable it if no one touches hosting settings in Plesk....
Does anyone have a solution that doesn't involve deleting files on a cron job ?
Edit:-
This applies to adding a directory to open_basedir as well as disabling it completely....
From another post I saw you can create
/var/www/vhosts/.skel/0/conf/php.ini
- this does work for new domain - not the 100's that already exist..
How do I disable open_basedir for domains that existed before I created
/var/www/vhosts/.skel/0/conf/php.ini ?
ANy help would be good
Not happy with Plesk's changes...
Hi.
It seems the latest version of Plesk overrides safemode and open_basedir settings by writing to
/var/www/vhosts/domain.name/etc/php.ini
It completely ignores open_basedir settings in
/etc/php.ini, etc
And any settings relating to open_base dir in a vhost.conf file as outlined in Plesk's own knowledgebase article
http://kb.odin.com/432
-- This NO LONGER WORKS !!!! As the settings in /var/www/vhosts/domain.name/etc/php.ini override the settings in the vhost.conf file.
If I edit
/var/www/vhosts/domain.name/etc/php.ini
Then do changes in Plesk it overwrites my changes (and breaks domains) by re-writing to
/var/www/vhosts/domain.name/etc/php.ini
The only way I can actually control the server is by using a cron job to delete
/var/www/vhosts/*/etc/php.ini every 5 mins.... (not the best solution .................)
- then it follows what is in the standard php.ini file - and my domains work.
I know there are security implications regarding disabling it - that is not the point - I used to be able to disable it
Now I can only disable it if no one touches hosting settings in Plesk....
Does anyone have a solution that doesn't involve deleting files on a cron job ?
Edit:-
This applies to adding a directory to open_basedir as well as disabling it completely....
From another post I saw you can create
/var/www/vhosts/.skel/0/conf/php.ini
- this does work for new domain - not the 100's that already exist..
How do I disable open_basedir for domains that existed before I created
/var/www/vhosts/.skel/0/conf/php.ini ?
ANy help would be good
Not happy with Plesk's changes...
Last edited: