Hi Guys, I've encountered and error with ISPconfig when updating a site from the default PHP version to another version. When revisiting the website entry t in ISPconfig I note the version has reverted to default and my site will return a 503 error as the default version is deprecated. Hoping for some clarity.
Were you logged in as admin when doing this? If not, then it might be that the administrator of the server has set this website to be protected which disallows changes of the PHP version. So if you are not the administrator of the server and you were not logged in as admin user, then contact the admin of that system.
Hi Till Thank you for your prompt feedback. Yes I was logged in as admin. To further elaborate the error presents as follows: -> Update PHP version to 8.1 -> Confirming the update via phpinfo file -> At any given time a return the website settings in ISP config not even changing the PHP settings i.e prehaps just looking at the backups section -> The site will then immediately return 503 -> I can bring the site back by reupdating the PHP version to 8.1 ( I note at this time the PHP version is set back to default) Hope this might abit more detail, thank you for your help.
Which ISPConfig version do you use and which operating system? Have you manually altered any ISPConfig code?
Hi Till, My version is ISPConfig 3.1.15p3. I have 4 sub-servers link to my primary instance but the primary server runs Ubuntu 20. No manual alterations to my knowledge, this a server setup that was hand over to me.
Please do this: https://forum.howtoforge.com/threads/please-read-before-posting.58408/ Notice the default PHP must remain what is provided by the OS. Additional php versions can be installed for use in websites.
And please also check https://www.howtoforge.com/ispconfig-php-ubuntu/ to ensure that you had installed multiple php correctly and to fix your server with default php. I noted that Ubuntu server did have such behaviour of changing default php upon certain php updates so I did share some script to fix such change, if it happened, automatically. Do read about it here: https://forum.howtoforge.com/threads/monitor-os-default-php-and-restore-if-changed.83288/
The ISPConfig version you use is several years old, the system has probably not been updated since its initial installation. You should consider updating the systems. But always take care to make backups first as you have not set up the systems yourself and who knows if the original admin tweaked things in the code or made an unusual setup that is not update safe.