Professional Documents
Culture Documents
There are a lot of editable parameters in the configuration file; however, below youll see a list
of the important variables that need to be changed to reflect the value at the live site.
Important: You need to determine the absolute path of your Joomla root directory before you
can proceed with the changes. An example of an absolute path is: /home/www/codexjoomla.phpdeveloper.org/
Change the following variables:
var $live_site = ;
var $host = localhost';
var $user = root';
var $db = codexjoomla';
var $password = localhost database password';
The SSH port is 22 by default; some web hosting companies may use different SSH ports. Under
Server Type, select SFTP-SSH File Transfer Protocol. To connect to the server, click
Connect and go the root directory of your server.
Select all files on your left (which are the Joomla files on your local desktop); to your right is the
root directory space in your remote hosting web server (e.g. codexjoomla.php-developer.org)
Screen shot:
Right click on the selected files and then hit upload. It may take some time before all of the
files are uploaded to the remote web hosting server. As of Joomla 1.5.20, there are around 3960
files that need to be uploaded to your web hosting server, so the file uploading process will take a
while. Do not close until all files are completely uploaded.
{mospagebreak title=Testing Your Live Website After Uploading Files}
After you have completely uploaded all of the Joomla website files to the remote server, it
important to view the website. You will need to check the following items:
Check Item #1: Checking the home page and some internal pages for errors.
You need to make sure that the home page that appears on the live site is the same as the one you
see at the local host server.
For example, for the demo website: http://codexjoomla.php-developer.org/ , below is what the
home page should look like on the live hosting server:
There is an error appearing on both the home page and inner pages. For the home page, it shows
Error loading feed data, and there is no sidebar.
For the inner pages, it shows a 500 Internal Server Error. Both of these obvious problems need to
be corrected.
Correcting problems appearing on your Joomla live website
For the home page Error loading feed data problem:
1. Log in as Joomla administrator (e.g. http://codexjoomla.php-developer.org/administrator).
2. Go to Extensions -> Module Manager; look for the Feed Display module.
However, since the Feed display has been renamed to Articles in the first part of this tutorial,
you need to look for the Article module, which is actually a Feed display module.
3. The cause of the problem is that the feed URL is not updated. It is showing as:
http://localhost/joomla/?format=feed&type=rss
4. To resolve this problem, change the feed URL to reflect the new domain/sub-domain name
used by the Joomla website in live hosting server, e.g. http://codexjoomla.php-developer.org/?
format=feed&type=rss.
5. Click Apply and then hit save.
For the inner pages 500 Internal Server error problem:
1. Download the .htaccess of the newly-uploaded Joomla website.
2. Find this line:
# RewriteBase /
Remove the # to uncomment it, so it will just be:
RewriteBase /
Below is updated .htaccess screen shot:
As shown in the screen shot, the broken link URL is http://localhost/joomla/ because this URL
has not been updated to use the new domain/sub-domain name used by Joomla at the live server.
Examining the properties of this broken link reveals a clue:
<img src="/templates/vj_anelco/images/hd.jpg" alt="Scuba diving training agency">
This means it is related to the header section of the Joomla template. Checking the header image
template HTML for this link reveals the following:
<a href="http://localhost/joomla/"><img src="<?php echo $this->baseurl ?>/templates/<?php
echo $this->template; ?>/images/hd.jpg" alt="Scuba diving training agency"></a
So to avoid the broken link, we need to revise this to:
<a href="<?php echo $this->baseurl ?>"><img src="<?php echo $this->baseurl ?>/templates/<?
php echo $this->template; ?>/images/hd.jpg" alt="Scuba diving training agency"></a>
The value of: = <?php echo $this->baseurl ?> when executed on the web hosting server will be
the home page URL: http://codexjoomla.php-developer.org.
Check Item #3: Changing the favicon.ico in your live Joomla website
Below are the steps you need to take to change the favicon.ico:
1. Create a favicon.ico image; the dimension should be around 16x 16 pixels and the image file
extension is .ico. You use Irfanview to shrink your logo and create favicon.ico.
2. Upload favicon.ico to the image directory of your template, e.g. http://codexjoomla.phpdeveloper.org/templates/vj_anelco/images/favicon.ico.
3.) Add the following HTML code the <head> section of your Joomla template:
<link REL="SHORTCUT ICON" HREF="http://codexjoomla.phpdeveloper.org/templates/vj_anelco/images/favicon.ico">
Check Item #4: Protect your Joomla administration folder.
This will prevent any abuse of your Joomla administration page. The following are the steps you
must take: