Escolar Documentos
Profissional Documentos
Cultura Documentos
php File
Videos
Books
7/16/15, 4:54 AM
Support
Login
Pricing
Get all the training! When you join you get access to ALL our training videos and books:
Start a FREE 7 Day Trial
A Guided Tour of
Joomla's
conguration.php File
! By Ed Andrea
January 2012
" 25
Like
Share
Tweet
Share
In our forum we are often asked to help with problems with paths,
passwords, data base connections and other basic conguration
issues. This is especially true after a migration or move of a site.
Most of the xes for these problems can be made in your
conguration.php le. We're going to help you get to know it this very
important le.
In this lesson, were going to tell you:
Where you can locate your conguration.php le.
What each line aects and common settings.
https://www.ostraining.com/blog/joomla/guided-tour-your-joomla-configurationphp-file/
Page 1 of 17
7/16/15, 4:54 AM
Get free,
weekly
updates
from the
OSTraining
blog.
Your email address
Trusted by
60,000+
readers.
Sign Up for FREE!
Popular
New Posts
Here's a picture of the location using Filezilla. This installation is in a
sub directory called "joomla" .
Your conguration.php le is located in the root of your joomla
installation. If it's in the main directory the path to it would look
something like this:
/home/username/public_html/conguration.php
In a sub directory or sub domain:
/home/username/public_html/subdirectory/conguration.php
On your computer (using XAMPP as an example)
C:\Documents and Settings\Ed\My
Documents\xampp\htdocs\J17\conguration.php
I shouldn't have to say this, but I will. Make a backup of your current
le before you do anything to it. Use a test site or play with it in a text
editor oine for practice. Don't make changes without a backup. Make
a backup before you move a le to a dierent server or directory.
https://www.ostraining.com/blog/joomla/guided-tour-your-joomla-configurationphp-file/
OSTraining
Will Release
200 Drupal 8
Videos for
Free
The
Beginner's
Guide to
Drupal
Security
Releases
Allow Users
to Delete
Their Drupal
Accounts
Book Review:
Programming
Joomla!
Plugins by
Jisse Reitsma
Page 2 of 17
Site Settings
7/16/15, 4:54 AM
Magento is
Still Failing
Badly at
Security
Releases
Using
Administration
Menu and
Shortcuts in
Drupal
$oine : When set to "0" the site is online. Set to "1" the site is
oine
$oine_message : You can write any text message on this line.
$sitename : The name of the site as it appears in headings
$editor : The editor that is chosen as default in global conguration
$list_limit :The length of lists in the Control Panel for all Users. By
default, this is set to 20.
$access : The default access level to the site. "1" is public access; "2"
is registered; "3" is special
Debug Settings
Drupal: What
If Your Clean
URL Test
Fails?
You Can Now
Get Live Chat
Support at
OSTraining
Create a
Slideshow
with Joomla
and
FlexSlider 2
Solving the
Invalid Token
Error in
Joomla
https://www.ostraining.com/blog/joomla/guided-tour-your-joomla-configurationphp-file/
Blog
Categories
WordPress
Tutorials
Drupal
Tutorials
Page 3 of 17
7/16/15, 4:54 AM
Joomla
Tutorials
Debug System tool set to on. But it will not provide additional detailed
references which would help in correcting any errors.
Database Settings
Coding
Tutorials
Ghost
Tutorials
How Tos
Webdesign
Tutorials
OSTraining
News
Live Blogs
base.
$password : The password associated with the data base user. Not
your admin password or FTP password.
$db : The data base name created when you created the data base.
$dbprex : At least three characters ending in an underscore. (Set
when you installed joomla)
Notes
Education
General
Podcasting
Comeback
Cities
You need this information when you install the site. Forgetting to
change this is often the cause of problems when moving a site. Before
moving any site, make a backup copy of conguration.php so you can
refer to the original settings if you need them.
License
$dbtype : only change this if you have changed servers and using a
All of our
dierent type.
tutorials
are
published
under the
Creative
Commons Attribution-
name - for example edandrea_ed. On your local machine there will not
be a prex unless you created one. It shouldn't be root in any case. If
https://www.ostraining.com/blog/joomla/guided-tour-your-joomla-configurationphp-file/
Page 4 of 17
7/16/15, 4:54 AM
you create a site on your local server and don't specify password when
NonCommercial
you create a data base, you will be able to access the data without a
license. This
password. This is not secure when you move to web server online.
means:
You
can
will not be a prex unless you created one. On Godaddy servers this
re-
name is generated by their service and you will not be able to create
use
these
$dbprex : You cannot create a new one here. This must be the one
that was used when the data base was created, or that is actually used
by the database. If you have more than one data base prex, you can
change this, but you can't create a new one.
tutorials.
You
can
modify
these
tutorials.
You
must
link
back
to
our
original
tutorial.
You
can't
$live_site : The actual URL of the site for example http://yourdomain.com (unless your site is in a subdirectory)
$secret: : DO NOT CHANGE
$gzip : "0" is o; "1" is on.
use
these
tutorials
commercially.
Click to
$helpurl : default is joomla help. Can be set to your own help pages.
read the
license.
Notes
$live_site : In the newest versions this should not have a value. There
may be times you do need to ll in a value. If you are redirecting a url
you need to put the actual url to the live site on this line. Or if you are
https://www.ostraining.com/blog/joomla/guided-tour-your-joomla-configurationphp-file/
Page 5 of 17
7/16/15, 4:54 AM
https://www.ostraining.com/blog/joomla/guided-tour-your-joomla-configurationphp-file/
Page 6 of 17
7/16/15, 4:54 AM
Email Settings
$mailer : "mail" uses the PHP mail function; "sendmail" uses SMTP
mail on the server.
$mailfrom : From E-mail. The email address used by Joomla! to send
site email.
$sendmail : The path where the Sendmail program is located. This
path is only used if Mailer is set to Sendmail.
$smtpauth : If the SMTP server requires authentication to send mail,
set this to Yes. Otherwise leave it at No. This is only used if Mailer is set
to Sendmail.
$smtpuser : The username to use for access to the SMTP host. This is
only used if Mailer is set to Sendmail.
$smtppass: The password to use for access to the SMTP host. This is
https://www.ostraining.com/blog/joomla/guided-tour-your-joomla-configurationphp-file/
Page 7 of 17
7/16/15, 4:54 AM
Log Settings
$log_path : '//home/username/public_html/j/logs';
$tmp_path : :'//home/username\public_html/tmp';
Notes
$log_path : The path where the logs should be stored. The Joomla!
installer should automatically ll in this folder. It's not critical to the
operation of the site, so if it's wrong you will only know it if you try to
check the logs.
$tmp_path : This is an important setting and should be lled in
properly. Many problems found when moving sites are caused
because joomla is looking for the old tmp folder. If you get any errors
regarding the tmp folder check this path and make sure it's correct..
Cache Settings
https://www.ostraining.com/blog/joomla/guided-tour-your-joomla-configurationphp-file/
Page 8 of 17
7/16/15, 4:54 AM
Notes
$caching : This setting sets the maximum length of time (in minutes)
for a cache le to be stored before it is refreshed. The default setting is
15 minutes.
$cache_handler : This setting sets how the cache operates. There is
only one caching mechanism which is le-based.
Cachelite is an alternative to full caching.
Metadata Settings
https://www.ostraining.com/blog/joomla/guided-tour-your-joomla-configurationphp-file/
Page 9 of 17
7/16/15, 4:54 AM
Session Settings
https://www.ostraining.com/blog/joomla/guided-tour-your-joomla-configurationphp-file/
Page 10 of 17
7/16/15, 4:54 AM
Notes
$lifetime : This setting sets how long a session should last and how
long a user can remain signed in for (before logging them o for being
inactive). The default setting is 15 minutes.
$session_handler : This setting sets how the session should be
handled once a user connects and logs into the site. The default
setting is set to Database.
Comments
1
!
Community
Recommend
Login
Sort by Oldest
3 years ago
Reply Share
3 years ago
Reply Share
Laura at Aliate
3 years ago
Reply Share
3 years ago
Hi Laura,
https://www.ostraining.com/blog/joomla/guided-tour-your-joomla-configurationphp-file/
Page 11 of 17
7/16/15, 4:54 AM
Hi Laura,
In that case you should check out online class
(http://www.ostraining.com/onli.... It should help
you to grasp the concepts and to give you the
guidance needed to get a firm foundation on
Joomla :)
Kind regards,
Nick
Chas Burdick
Reply Share
3 years ago
Thank you for the line by line, that is very helpful, hope to
see more tutorials like this.
Reply Share
3 years ago
Hi Chas,
You're very welcome! We have more planned so
stay tuned! :)
Kind regards,
Nick
Glorious Steve
Reply Share
3 years ago
Excellent Nick,
I am a beginner. Earlier I was trying out joomla. I begin to
understand the basics. Thanks a lot!
Reply Share
3 years ago
Reply Share
https://www.ostraining.com/blog/joomla/guided-tour-your-joomla-configurationphp-file/
Page 12 of 17
Bob
7/16/15, 4:54 AM
Reply Share
3 years ago
Stix
Reply Share
3 years ago
Reply Share
sohrab
3 years ago
Hi
this was very useful thank you
but i still have a problem with my site
i wanted to ask if i can use ip numbers instead if
address? i dont know my address and my host is not
giving me that, i just have this: 67.228.4.124:3306
can i change it address?
by the way i am using plesk 8 , anybody know how to
work with it?
Jos
Reply Share
3 years ago
Hi,
This is a very nice guided tour!!
In my Joomla 2.5 configuration.php there are 3 more
settings I do not find back, though:
public $cookie_path = '';
public $cookie_path = '';
https://www.ostraining.com/blog/joomla/guided-tour-your-joomla-configurationphp-file/
Page 13 of 17
7/16/15, 4:54 AM
Reply Share
Anusha Isaacraj
3 years ago
Reply Share
Abdullah
2 years ago
Hi,
I missed up my configuration.php. I have several copies
and not sure which one if the correct one. none seems to
work I still receive errors
Reply Share
Harish
2 years ago
Reply Share
Ernie
2 years ago
THANK YOU!
This has to be the best overview of the configuration.php
file on the net
walt
Reply Share
2 years ago
Nice overview...
It seems a bit strange that this configuration file stores
usernames and passwords in plain text. Seems like that
might become a security risk, if someone could read the
file (good thing that when correctly configured .php files
are not permitted for direct access).
Reply Share
Site help
a year ago
Page 14 of 17
7/16/15, 4:54 AM
Reply Share
surajverma_rv
a year ago
fela
Reply Share
7 months ago
fela
Reply Share
7 months ago
Reply Share
WHAT'S THIS?
ALSO ON OSTRAINING
WordPress Membership
Options
Subscribe
Privacy
https://www.ostraining.com/blog/joomla/guided-tour-your-joomla-configurationphp-file/
Page 15 of 17
7/16/15, 4:54 AM
back to top
Get all the training! When you join you get access to ALL our training videos and books:
Start a FREE 7 Day Trial
&
'
Our
Training
Our Books
Sign Up!
Drupal 7 Explained
About
OSTraining
Get
Involved
Video Training
Joomla 3 Explained
About Us
Become an Aliate
Books
Joomla Explained
Our Team
Become a Video
On-Site Training
Trainer
Become a Tutorial
Writer
https://www.ostraining.com/blog/joomla/guided-tour-your-joomla-configurationphp-file/
Page 16 of 17
7/16/15, 4:54 AM
https://www.ostraining.com/blog/joomla/guided-tour-your-joomla-configurationphp-file/
Page 17 of 17