gspillane
Starting Member
Australia
9 Posts |
Posted - 01/09/2025 : 15:34:28
Hi All, My hosting company has migrated my sites from my previous VPS to a new VPS, with one of the differences being that the old VPS was using PHP version 7.3 and the new VPS is using PHP version 8.3.14. My PHP templates now do not work at all. If I click on a PHP page it displays "Service Unavailable" page with the following info: The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. Additionally, a 503 Service Unavailable error was encountered while trying to use an ErrorDocument to handle the request.
I need to update my Ecommerce PHP template version any way so I've purchased the updater, but before I try to do the update is there something I should do to perhaps get the site working?
Best Regards, Geoff
|
dbdave
ECT Moderator
USA
10455 Posts |
Posted - 01/09/2025 : 16:13:00
If you were on 7.3, I don't think there should be any issue, but check this thread and be sure you have these changes in place https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=107737The "service unavailable" might be this.. "If you're seeing 503 Service Unavailable errors, this means PHP processes are crashing while executing a script. As a result, Apache is not getting a valid response from PHP and considers the PHP-FPM service to be unavailable." Your host should be able to sort that out. Looking around on a search, there are a number of things that can cause this problem. Just be sure to ignore any that blame the scripts as we know those are fine. That is unless you are on wordpress and have some plugin(s) causing the problem. Thanks, David
Edited by - dbdave on 01/09/2025 16:16:52
|
gspillane
Starting Member
Australia
9 Posts |
Posted - 01/09/2025 : 16:58:33
Hi David, Thank you. My includes.php and db_conn_open.php files are of the correct syntax but it did remind me that $db_host was pointing to the old server. I had previously needed to put the IP address of the server for it to work. I changed this to the IP address of the new server but I still get the error. I'll try localhost, and see whatever else I can find.
Best Regards, Geoff
|
gspillane
Starting Member
Australia
9 Posts |
Posted - 01/09/2025 : 18:05:10
Hi again David,
Unfortunately that doesn't seem to be the problem. I tried localhost, the IP address, and the domain, but none of that works. Annoyingly I can use MySQL Workbench to access the MySQL database on the new server so I can't pick the source of the issue.
Any ideas?
Best Regards, Geoff
|
dbdave
ECT Moderator
USA
10455 Posts |
Posted - 01/09/2025 : 19:24:37
Hi, I would go to my host and ask them, unless you are stuck managing the server yourself. Have you checked the server logs to see if there is a more detailed error there? It seems something as simple as file permissions can cause this.
If you perform an internet search for "PHP 503 Service Unavailable error" you will see this is not uncommon. However, it seems to me, by looking at the search results for that, there are many things that can cause this.
If your host cannot help, I would start with the server logs.
Thanks, David
|
gspillane
Starting Member
Australia
9 Posts |
Posted - 01/09/2025 : 20:01:10
Hi David,
Thank you for your feedback.
I have emailed my host as this is a recent migration and in fact they were supposed to tell me when it was complete but I haven't heard from them yet.
It is a managed hosting so I should be able to get some decent help from them.
The only thing they said to me before the migration was that the previous server was only using PHP version 7.3 but the new server required a minimum of version 8 and they were concerned that my PHP pages might break if it was dependent on the earlier version. I was confident that the EC templates were sophisticated enough to handle the current versions so I told them to go ahead.
From memory I think the db_conn_open.php file would be the only one that needed any change to parameters, and that was specifically the $db_host parameter. Please let me know if there was any others I should check.
Best Regards, Geoff
|
dbdave
ECT Moderator
USA
10455 Posts |
Posted - 01/09/2025 : 20:48:41
Right, I think the database connection is all you should need to change. Plenty of folks here using the cart on PHP8+ However, I do want to ask what version of the cart are you using?
Thanks, David
|
gspillane
Starting Member
Australia
9 Posts |
Posted - 01/09/2025 : 21:39:48
Hi David, I can see that I had downloaded updaters 7.2 (7.2.3, and 7.2.6) but I can't tell if I actually got around to doing the update and may have a slightly earlier version installed. Is there a file I can check?
Best Regards, Geoff
|
gspillane
Starting Member
Australia
9 Posts |
Posted - 01/09/2025 : 23:16:19
Hi David,
It turned out that when they migrated my site to the new server it automatically included that it was using PHP version 7.3. I have now changed that to 8.3 via MultiPHP manager in cPanel. The site loads but there are a couple of invalid scripts so I just need to install the latest updater and I should be fine.
Thank you very much for your help.
Best Regards, Geoff
|
dbdave
ECT Moderator
USA
10455 Posts |
Posted - 01/10/2025 : 07:08:57
good news! Please post up if you are having more trouble.
Thanks, David
|
|
|