ukc
New Pleskian
Hello,
We have a number of Plesk 12 servers where clients have created a mix of domains that run PHP as FastCGI and Apache. We no longer allow clients to create new domains that run PHP as Apache.
For all the existing domains, we need to convert all domains to run PHP as FastCGI and then we need to update all the file permissions so that we do not run into issues for accounts that have files created/owned by Apache in the vhosts folders.
I *think* i've found a way to do this, but before I run it, I want to find if you think this will work!
Step 1) Change all domains to use FastCGI PHP Handler
# mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa
# UPDATE `hosting` SET php_handler_id = 'fastcgi';
# /usr/local/psa/admin/bin/httpdmng --reconfigure-all
Step 2) Update file permissions for all domains to resolve potential Apache file permission issues
# /usr/local/psa/bin/repair --restore-vhosts-permissions
In your estimation, will this work? It's Step 2 that I am not 100% sure can be used in this way.
Thanks in advance!
UPDATE: Unfortunately Step 2 does not fix the file permissions, only the folder permissions. So I still seek a one-liner that will help fix all the file permissions!
We have a number of Plesk 12 servers where clients have created a mix of domains that run PHP as FastCGI and Apache. We no longer allow clients to create new domains that run PHP as Apache.
For all the existing domains, we need to convert all domains to run PHP as FastCGI and then we need to update all the file permissions so that we do not run into issues for accounts that have files created/owned by Apache in the vhosts folders.
I *think* i've found a way to do this, but before I run it, I want to find if you think this will work!
Step 1) Change all domains to use FastCGI PHP Handler
# mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa
# UPDATE `hosting` SET php_handler_id = 'fastcgi';
# /usr/local/psa/admin/bin/httpdmng --reconfigure-all
Step 2) Update file permissions for all domains to resolve potential Apache file permission issues
# /usr/local/psa/bin/repair --restore-vhosts-permissions
In your estimation, will this work? It's Step 2 that I am not 100% sure can be used in this way.
Thanks in advance!
UPDATE: Unfortunately Step 2 does not fix the file permissions, only the folder permissions. So I still seek a one-liner that will help fix all the file permissions!
Last edited: