Installing a Joomla! Test Environment in Windows - Customizing the JSAS installation.
(Page 4 of 4 )
I prefer to have a test environment that more closely resembles my live environment. For instance, I would not be installing Joomla! in a sub-directory. I would install it in my web site’s root. Let’s take a look at how to change that.
First off copy the entire directory tree from W:wwwJoomla to W:www. This will move all of the site contents up one directory. Now we need to make some changes to the JSAS configuration to reflect the new location.
At the root of your JSAS installation you will find a file called configuration.php. (Now W:wwwconfiguration.php) Open this file in any plain text editor such as Notepad. Next, find the line that defines your Absolute Path:
$mosConfig_absolute_path = 'w:/www/joomla';
Now change it to reflect the new path.
$mosConfig_absolute_path = 'w:/www';
Down a bit further you’ll find the setting for Joomla!’s cache folder. Make the same change. You may find it easier to just search and replace. This line should now look like this:
$mosConfig_cachepath = 'w:/www/cache';
Save configuration.php and close it. You should now be able to see your live site at http://localhost:85.
Your choice of incoming TCP port is irrelevant if you are behind a NAT firewall or router. You can configure the device’s port forwarding feature to send all requests it receives on port 80 to whatever port you choose on your server.
I also like to have my web server configured on Port 80. This is especially true if it is being used for public broadcasting. This is a change that has to be made to in the Apache web server configuration.
Grab Notepad again and open W:usrlocalApache2confhttpd.conf. This is Apache’s configuration file. Find the line that says:
Listen 85
and change it to:
Listen 80
Now save and close the file. You’ll need to stop and restart the Apache server in order for the changes to take effect. You base site is now just http://localhost.
You should now have a base Joomla! installation that very closely resembles your live site. If you intend to run this as a live installation, you should take the time to read both the Apache and Joomla! documentation about securing your web server. You can start securing your Joomla! installation by checking out the link below.
http://dev.joomla.org/component/option,com_jd-wiki/Itemid,31/id,tips:make_secure/
| DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |