PHP and upgrade via ftp

Need help with the Administration of your Joomla! 3.x site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
Kvan-Tech
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Tue Feb 22, 2022 9:47 am

PHP and upgrade via ftp

Post by Kvan-Tech » Tue Mar 21, 2023 10:58 am

Hello

My webhost has diabled my webpage running Joomla 3.x-something, , since it has not been updated latest time, and therefor were running PHP 7.4, and webhost does not support php version lower than 8.0 anymore. :'(

So first problem is that Im not able to do any maintenance on the webpage at the moment
I know backup solution is to upgrade via ftp.
But Im not sure if that will help me? is there any logic if Im upgrading to Joomla 4.x something, it will automaitcly run php 8.x something?
Othervise the webpage will not be back online...

Thank you on advance for all your help ;)

User avatar
AMurray
Joomla! Exemplar
Joomla! Exemplar
Posts: 8762
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: PHP and upgrade via ftp

Post by AMurray » Tue Mar 21, 2023 10:21 pm

Although I don't know what exact version of Joomla 3 you're running you will need Joomla 3.10 to migrate to Joomla 4. Joomla 3.10 is a current version (until September 2023), so there shouldn't be any reason for your host to ban your site from using it.

The issue is probably with PHP 7.4 which is now EOL, and your web host rightly blocked it although it's perhaps unfortunate if your site runs less than 3.10, or only runs on PHP 7.4 or has extensions that only run on PHP 7.4 or earlier.

Joomla 3.10 works on PHP 8.0.x and is the migration 'pathway' to Joomla 4. You don't do any updates via FTP, you have to use the Update component within Joomla 3.10.

Can you use the FPA utility (red box, top of page) and post the report results so we can get a better idea of your hosting environment, and identify the Joomla version you're using?

If your host won't let you use PHP 7.4, one solution would be to set up a local web server on your own PC. Restore a backup of your site to it, and then do the update to Joomla 3.10 there (from whatever version you're running as you stated you don't really know what it is). You can also run whatever PHP version you need to such as 7.4.x (your local server is independent of your web host). You can copy your site, using the methods described here: https://docs.joomla.org/Copying_a_Joomla_website (you need to export the database, and import it to a new db on your local server, and download all the Joomla system files). If you happen to use Akeeba Backup, then this method is the easiest, as described in the aforementioned documentation.

I'd recommend WAMPServer as you can install additional modules - various PHP versions amongst other things. So you can get your site running on PHP 7.4 or PHP 8.0.x

See this: https://wampserver.aviatechno.net/ for the main Wampserver applications, and its accompanying add-on modules.
Regards - A Murray

Kvan-Tech
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Tue Feb 22, 2022 9:47 am

Re: PHP and upgrade via ftp

Post by Kvan-Tech » Wed Mar 22, 2023 7:59 am

Hi Sir!

Thank you very much for your extensive and detailed answer. Really appreciate it.
(The situation stresses me alot, since I run this webpage for a nonprofit organization of 100+ people rellaying on it... :-O)

I have no access to anything on the web-host, as the web-host has closed all use of PHP. lower than 8.0. Meaning, I will not be able to do any management to it.

I have however activated php-debug, so I get the following error message when trying to enter:

Fatal error: Array and string offset access syntax with curly braces is no longer supported in /home/1/b/bomlosjomann/www/libraries/vendor/joomla/string/src/phputf8/ord.php on line 28

I have actually thought about your suggestion, to set it up locally, so have copied all content to my local Synology (running nginx/php 7.x), but I think I need to do it another way than have done so far.
Do you suggest that I set it up with box-fresh version of 3.10, then copy all the files from the original website to it and it will work so I can upgrade? You see I have no other backup of the old site than all the files/folders from it..

Thanks again for your highly appreciated assistance

Kvan-Tech
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Tue Feb 22, 2022 9:47 am

Re: PHP and upgrade via ftp

Post by Kvan-Tech » Sat Mar 25, 2023 7:58 am

AMurray wrote:
Tue Mar 21, 2023 10:21 pm
Although I don't know what exact version of Joomla 3 you're running you will need Joomla 3.10 to migrate to Joomla 4. Joomla 3.10 is a current version (until September 2023), so there shouldn't be any reason for your host to ban your site from using it.

The issue is probably with PHP 7.4 which is now EOL, and your web host rightly blocked it although it's perhaps unfortunate if your site runs less than 3.10, or only runs on PHP 7.4 or has extensions that only run on PHP 7.4 or earlier.

Joomla 3.10 works on PHP 8.0.x and is the migration 'pathway' to Joomla 4. You don't do any updates via FTP, you have to use the Update component within Joomla 3.10.

Can you use the FPA utility (red box, top of page) and post the report results so we can get a better idea of your hosting environment, and identify the Joomla version you're using?

If your host won't let you use PHP 7.4, one solution would be to set up a local web server on your own PC. Restore a backup of your site to it, and then do the update to Joomla 3.10 there (from whatever version you're running as you stated you don't really know what it is). You can also run whatever PHP version you need to such as 7.4.x (your local server is independent of your web host). You can copy your site, using the methods described here: https://docs.joomla.org/Copying_a_Joomla_website (you need to export the database, and import it to a new db on your local server, and download all the Joomla system files). If you happen to use Akeeba Backup, then this method is the easiest, as described in the aforementioned documentation.

I'd recommend WAMPServer as you can install additional modules - various PHP versions amongst other things. So you can get your site running on PHP 7.4 or PHP 8.0.x

See this: https://wampserver.aviatechno.net/ for the main Wampserver applications, and its accompanying add-on modules.


Sorry to nag, but did you saw my follow-up-question to your reply?

Thx again

User avatar
Pavel-ww
Joomla! Ace
Joomla! Ace
Posts: 1126
Joined: Tue Jun 30, 2020 12:17 pm

Re: PHP and upgrade via ftp

Post by Pavel-ww » Sat Mar 25, 2023 10:05 am

Hi Kvan-Tech.

Just thoughts. This is nonsense that hosting turns off the older versions of PHP. At all the hosting that I use, I can use the entire version of the versions from PHP 5.4 to PHP 8.2. For 20 years of practice, I have not met hosting who turn it off. I think you should contact to hosting support or move to another hosting that takes care of their clients

Kvan-Tech
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Tue Feb 22, 2022 9:47 am

Re: PHP and upgrade via ftp

Post by Kvan-Tech » Sat Mar 25, 2023 2:26 pm

Pavel-ww wrote:
Sat Mar 25, 2023 10:05 am
Hi Kvan-Tech.

Just thoughts. This is nonsense that hosting turns off the older versions of PHP. At all the hosting that I use, I can use the entire version of the versions from PHP 5.4 to PHP 8.2. For 20 years of practice, I have not met hosting who turn it off. I think you should contact to hosting support or move to another hosting that takes care of their clients
Hi Pavel

I agree. Have asked them to activate it again, at least for a short periode of time, but they claim it has been disabled for all future due to safety issues. So I think I’m left with the option to install locally, upgrade and then upload again. Might be to another host though.

User avatar
AMurray
Joomla! Exemplar
Joomla! Exemplar
Posts: 8762
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: PHP and upgrade via ftp

Post by AMurray » Sat Mar 25, 2023 9:31 pm

transfer your site using Akeeba Backup, and Kickstart. Far the easiest method.
already posted this link for you in my earlier reply: https://docs.joomla.org/Copying_a_Joomla_website

Or you can export your database from cPanel, and import it into the local server (e.g. Wampserer), then download the current site's files to Wampserver (this is more 'manual' method is also documented in the above link).
Regards - A Murray

Kvan-Tech
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Tue Feb 22, 2022 9:47 am

Re: PHP and upgrade via ftp

Post by Kvan-Tech » Sat Apr 08, 2023 6:37 am

AMurray wrote:
Sat Mar 25, 2023 9:31 pm
transfer your site using Akeeba Backup, and Kickstart. Far the easiest method.
already posted this link for you in my earlier reply: https://docs.joomla.org/Copying_a_Joomla_website

Or you can export your database from cPanel, and import it into the local server (e.g. Wampserer), then download the current site's files to Wampserver (this is more 'manual' method is also documented in the above link).
Hi again AMurray

Could you post me a pm if interested to take a paid job of assisting me with the restore of the page on a local server, upgrade it, then install it on my web host?

Thanks


Post Reply

Return to “Administration Joomla! 3.x”