I ran into the problem of having to suspend an a customers account and then noticed that after suspension it showed the default new site page from server doc root. Next I noticed there was no way to set a default page for suspended domains so I wrote a script that can be run and will edit the .htaccess file for the root htdoc of the server and add rewrite rules to point to suspended.htm. This will also query the PSA DB and create rewrite rules for any domain aliases for that domain as well. Just run this script after...
Continue reading...Changing the world ... one line of code at a time
How to upgrade to php53u with Plesk
I was pointed to a thread by parallels as a solution for “plesk not recognizing my upgrade to php53 from the IUS Repository (php53u)” … this was NOT helpful at all so I’m posting my workaround and temporary fix until parallels can come up with something better. Their solution was to DOWNGRADE php on my production server which left a large number of my customers with broken sites! However – here is the workaround for installing/upgrading php to the IUS Repository version php53u: *Prerequisite: make sure you have enable php53 support and upgraded php to 5.3 in plesk 1) remove...
Continue reading...