Support

Admin Tools

#38123 where to install joomla

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 dhillock on Friday, 02 December 2022 11:21 CST

dhillock

In one of my previous support request (34387), Nicholas said this:

---------------------

Another side note.

Where is your subdomain root folder? If it's inside your main site's public_html your subdomain site won't work correctly. The .htaccess from the main site will be applied, causing problems accessing the subdomain. The subdomain root folder needs to be above public_html (possibly next to it, i.e. under your hosting account's root folder) to prevent any issues. You can select the subdomain root folder when creating the subdomain in your hosting control panel.

---------------------

I subsequently found a support article where Nicholas laid out - in detail -- why you should be installing your sub-domains in the root folder instead of in the public_html folder. Unfortunately, I can no longer find that post. Your help finding the post is appreciated, as I need some of the details for our hosting company.

Thank you.

David

nicholas
Akeeba Staff
Manager

Oh, I can tell you exactly where I have documented this: https://www.akeeba.com/documentation/akeeba-backup-joomla/restoring-backups.html#general-guidelines under “Do not restore in a subdirectory of your main site.” Let me copy & paste the pertinent two paragraphs (they apply for new site installations as well as restored sites): 

Do not restore in a subdirectory of your main site. For example, if your site's root is in public_html do not restore to public_html/dev. The reason is that the .htaccessfiles, which tell Apache (your web server) how to server your site, cascade. That is, Apache will read all .htaccess files in all folders leading to the one hosting your site'sindex.php file. This will cause problems with the restored site which you will experience as 404, 403 and 500 error messages or blank pages. These have nothing to do with our software and / or the restoration. It's how your web server works. Use a subdomain instead.

If you are restoring on a subdomain, make sure that the subdomain's root directory is NOT a subdirectory of your main site. This is the same as the previous paragraph, really. Most hosting control panel software default to using a subdirectory of your site's root when creating a subdomain. For example, if your site is www.example.com and its root is public_html if you create the subdomain dev.example.com your hosting control panel will put its root in public_html/dev. Therefore you will have the problem we described above. In this case ask your host what is the best way to create a root folder for the subdomain next to public_html, not inside it.

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!

dhillock

Bingo! And I can see why I could not find this in the documentation as I was look in the Akeeba Tools documentation.

Consider the matter closed and thank you for the quick response.

David

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!