My old Joomla site is using a rule in the htaccess code that is forcing it to run at a non-supported PHP version 5.4. My host just quit supporting this version of php. Does anyone know what version of php Joomla 1.5.22 will support? How do I add it to my website and how to change my htaccess file (currently the line in htaccess is: 'AddType application/x-httpd-php .php').
Any assistance would be much appreciated, website is down with 500 error.
Related
I am working on migrating a Joomla website over to GCP. Everything is migrated to GCP, however, the original site is working under a lower PHP version 5.7 (I forced it running at this low version PHP through .htaccess). I see the PHP version on GCP (Bitnami Joomla) is 7.3.12.
I tried to do the PHP lower version through .htaccess in GCP.
I created the .htaccess in Joomla location /opt/bitnami/apps/joomla/htdocs
The .htaccess is as below:
When I opened the site, I received a theme related error, if I go to administrator, I received the following error:
Clicking on the Return to Control Panel doesn't change the error.
I will reach out to the theme vendor and Joomla community and see if there is a way to bypass the theme error and log into the admin to do some upgrades, but if you know there is a way in GCP to force running a lower (or specify) PHP version, it would really help the troubleshooting.
Thank you very much in advance.
Thanks for everyone's suggestions, I decided I should really upgrade my Joomla site, maybe rebuild it, and then migrate it to GCP - this would be a lengthy process, and definitely would incur some cost due to the theme I used was a commercial theme from Rocket.
There is nothing related with .htaccess and the php version. Compute engine is IAS (Infrastructure as Platform) which means you can install whatever version you need.
Just login to your machine(VM) and install a particular version of PHP (in your case 5.7) and deploy your Joomla website to the Compute Engine.
My website is currently due an update to Wordpress, as well as a number of plugins. I am hosted with Krystal, and I have PHP V7.3 selected, and Wordpress is telling me that I am on PHP 5.5, and as such, will not let me update the website nor it's plugins.
I am definitely running PHP V7.3, could this be because I previously switched host, where I was running PHP 7.1 (highest they allowed)?
I believe the same issue existed with my other host, where I was on PHP 7.1.
Any ideas? I have googled this question a lot but nothing seems to do it?
Thank you!
"Use PHP55"
AddHandler application/x-httpd-php55 .php
<IfModule mod_suphp.c>
suPHP_ConfigPath /opt/php55/lib
This was the problem code that was causing the issue. It was in the .htaccess file.
Simply remove this code and the problem resolves itself!
I just want to ask what is the possible solution for this kind of error. I'm using Laravel 5.2 but the Cpanel PHP version is not suitable for this framework, the Cpanel PHP version is 5.3. So I have to add a code in htaccess to change the PHP version of the server, however it causes an index.php download.
This is the code I inserted in htaccess:
AddHandler application/x-httpd-php55 .php
Thanks!
I am trying to upgrade from an earlier version of sagepay php integration to the new v3.0. First step is to get the demo working. I downloaded VspPHPkit from the site and installed it under localhost/sagepay on my Ubuntu development environment.
I have setup the MYSQL and have checked that the mod_rewrite on Apache is enabled. All good. I have also copied the htaccess file to my web root.
My problem is that when I load localhost/sagepay/demo, the page renders ok but the links to the Form Protocol example points to localhost/sagepay/demo/form. This is not a directory which is in the installed example and neither is it specified in the htaccess as a redirect.
I must be missing something.
I had the same problem. It turned out that I had version 7.0 of PHP active rather than version 5.6. Once I switched to 5.6, it all worked fine.
I'am getting this:
Your host needs to use PHP 5.3.1 or higher to run this version of Joomla!
when trying to run Joomla 3.1.1 on PHP 5.2...
My webspace provider could not make any php(5.3) upgrade at the moment.
I add
# Use PHP 5.3
AddType application/x-httpd-php53 .php
to my htacess.txt file but nothing
How can i run joomla 3 on php 5.2?
You can't run it on PHP 5.2.
But what you can do it find a better host that keeps PHP updated.
Joomla 3.x requires PHP 5.3.1 or higher to work properly but if your host offers an updated version of PHP, you can easily override the default PHP version with an htaccess rule.
The filename should be .htaccess.
Connect to your site with FTP or File Manager
Create a file named htaccess.txt
Paste the following line into it:
Code:
AddType application/x-httpd-php53 .php
Rename it to .htaccess.
If it doesn't work, you might want to change register_globals in your php.ini to off.
I hope this helps.
You cant, it most likely uses 5.3 specific features so what you are asking is impossible. YOu need to upgrade to 5.3
Joomla requires 5.3 or higher because it's accessing features not found in older versions of PHP. It's not an issue of merely trying to pretend you have 5.3 or lying to Joomla.
Some webhosts might actually have a newer PHP installed, but it's not using it by default. If you search the help there might be a trick to enable 5.3 or newer on your site. If your host isn't offering 5.3 at all, it's time to find a new host. And while you are looking for a new host, get one that's running a recent build of 5.4.x because even 5.3 is now considered old.
Your htaccess file name should be .htaccess not htaccess.txt
Secondly, your host has to have that application type registered.