Support

Admin Tools

#24872 AddHandler for htaccess & PHP 7

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by gsmela on Tuesday, 05 April 2016 09:59 CDT

gsmela
 I've been using the AddHandler application/x-httpd-php55 statement in the htaccess generator to prevent my php version from reverting to the host's (Siteground) default. Ever since Joomla 3.5 & PHP 7 became available the issue has come back. The PHP version is reverting to 5.x which is their new default. I tried adding an AddHandler statement to include PHP 7 but it isn't working most likely because I've got it wrong. Siteground's 1st tier of support isn't very helpful so I thought it might be faster to ask here what the correct replacement for "AddHandler application/x-httpd-php55 .php .php5 .php4 .php3" would be? Thanks!

tampe125
Akeeba Staff
Hello Greg,

I can only give you a generic answer, since every hosting has its own format and method. If I remember correctly, under Siteground you can achieve this by following these steps:
  1. Go to cPanel -> PHP Versions
  2. Select your PHP version for the public_html directory
  3. Open the .htaccess in the public_html directory
  4. Go to the bottom
  5. There you can see the AddHandler

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

gsmela
That found it for me (and identified my error).

The correct line is: AddHandler application/x-httpd-php70 .php .php5 .php4 .php3
I had typed php7 rather than php70

Thanks for jogging my memory Davide!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!