Support

Admin Tools

#35404 Running Multiple Joomla websites inside a Test environment questions ?

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 Chacapamac on Friday, 18 June 2021 18:01 CDT

Chacapamac

I like to use admintools on multiple Joomla websites inside a Test live environment and I’m not sure how to proceed ?

— To protect the websites

— To be able to use mode rewrite properly

— To be able to test https ( optional )

Note: on real live websites I always use the Admintools htaccess Maker 

 

About the test environment —————————————

— The test environment server is under a specific domain name —> e.g. mydomain.com

— multiple websites are in sub-folders in the public_html root of that domain (mydomain.com) and reach by using the url

e.g. —> mydomain.com/siteonefolder

 

—>  public_html (Root)

— —> siteonefolder

——> sitetwofolder

——> sitethreefolder

 

they all have Admintools pro install but deactivated by renaming —> main.ph

— Also in the root, I have a simple index.html and a disallow robot text to be sure that Search engines doesn't crawl the contents

— I will probably add a php password to the entire public_html (if possible) or the individuals websites main folders to insure privacy

nicholas
Akeeba Staff
Manager

Don't use subdirectories. The .htaccess files are inherited based on the filesystem placement of the directories. This means that all of your sub-sites would inherit the .htaccess from the main site which would make it a nightmare to test SEF URLs.

Instead, use subdomains. If your main site is www.example.com create a subdomain test1.example.com. Make sure that the subdomain's document root is outside the root of your main site. If your main site's root is public_html do NOT place the subdomain root inside the public_html folder (default behaviour of cPanel) because you'll have the same .htaccess inheritance problem. Instead, place it into a directory alongside public_html. I've found that the convention subdomain_html works best. So, for test1.example.com you'd create a folder named test1_html next to your public_html folder and use it as the subdomain's root.

Testing HTTPS with subdomains is fairly straightforward. Most if not all hosting providers nowadays offer integration with the free of charge Let's Encrypt certificate authority. You just need to tell your hosting control panel to use Let's Encrypt to issue and install free of charge TLS certificates for your subdomain. It takes about a minute and you have valid HTTPS. As you can see, we are even using Let's Encrypt for our site. We found it to be much easier than purchasing and installing "commercial" certificates without having any kind of compromise in security. If nothing else, Let's Encrypt is actually more secure since the certificates are issued after validating ownership of the domain whereas with commercial certificate authorities there was barely any validation (they were happy to take our money and be done with 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!

Chacapamac

How can I thank you?

Not only your software is part of my work for so many years and make even working with Wordpress bearable :)  but the clarity and willingness to share your knowledge need to be praise.

One million times Thank You Nicholas!

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!