Support

Admin Tools

#35665 HTTP ERROR 500 after .htaccess maker regeneration

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 on Friday, 17 September 2021 20:17 CDT

kai.koskinen

Hi,

In order to install Joomla 4 test site in my site's subdirectory I added the subdirectory into "Allow direct access to this directories (including .php files)" and regenerated the .htaccess. After that both the front-end and back-end give HTTP ERROR 500.

I restored the site with kickstart and the problem remains. I renamed .htaccess and .htaccess.admintools files in public_html directory. I also renamed the .htaccess file in administrator subdirectory. Non of these worked.

I also restored the standard Joomla .htaccess file. That didn't help either.

Also I renamed the main.php to main-disable.php in plugins/system/admintools/admintools directory but that didn't solve the issue.

So, I've followed the instructions at https://www.akeeba.com/documentation/troubleshooter/athtaccess500.html

and also at https://www.akeeba.com/documentation/troubleshooter/atwafissues.html without success.

What to do to restore access to site's front and back end?

Warm regards,

Kai

nicholas
Akeeba Staff
Manager

You cannot install a site in a subdirectory when you are using the frontend and backend protection features of .htaccess Maker. This is already documented.

You need to use a subdomain whose web root is OUTSIDE your main site's web root (.htaccess files cascade based on the filesystem structure, not based on subdomains structure).

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

kai.koskinen

OK, thanks. How to restore access to the site in this case?

I restored the site to the previous configuration with kickstart but that didn't restore the access.

Warm regards,

Kai

nicholas
Akeeba Staff
Manager

Replace the .htaccess file's content in your site's root with the contents of Joomla's htaccess.txt. Depending on your host this change might take effect right away (most hosts) or it may take several minutes.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

kai.koskinen

Hi and thanks again.

Unfortunately that didn't help. When I have error reporting on it gives me the following:

"Parse error: syntax error, unexpected ':', expecting ';' or '{' in /home/int27824/public_html/libraries/allediaframework/Framework/Joomla/Extension/Licensed.php on line 82"

However, that does not make any sense to me, because that line has just a normal type declaration:

public function isPro(): bool

Could I just remove error producing components and restore then with kickstart?

Regards,

Kai

nicholas
Akeeba Staff
Manager

The default PHP version on your server is older than PHP 7.2. Removing the .htaccess reverted to the default PHP version for your server. Go to your hosting control panel and re-apply the newer PHP version (you were using PHP 7.3 per your submitted ticket information).

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

kai.koskinen

Hi,

Thanks. That helped, it works. Can you finally point me to the documentation regarding the installation of Joomla test site into subdomain?

Warm regards,

Kai

nicholas
Akeeba Staff
Manager

https://www.akeeba.com/documentation/admin-tools/atsubdomains.html explains how .htaccess files work. It also tells you that you will end up with no SEF URLs if you try to pursue this method.

Subdomains instead of subdirectories are explained in the Akeeba Backup documentation.

None of that actually belongs in our documentation. The way Apache works is something you should know when building sites.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

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!