What is Joomla? Joomla is one of the most powerfull free content management system available in the internet. It’s written with PHP programming. Since it use PHP, you need apache server to run it. In this article, I will show you how to install Joomla with XAMPP in Linux. If you are familiar with Linux, the installation process is not difficult.
Note:
I assume that you have installed XAMPP in your system. If not, you have to install XAMPP first (read here), otherwise you will not be able to follow all the instructions below.
Step 1. Downloading
Go to Joomla website at http://www.joomla.org and click the latest version 1.5.3.
Go to ‘/opt/lampp/htdocs’ directory and create a new directory named ‘joomla’.
Go to the directory where you downloaded your Joomla file. I use ‘/mydata/new_download‘ as my download directory, so I move to this directory.
Then copy ‘Joomla_1.5.3-Stable-Full_Package.tar.gz‘ file to ‘/opt/lampp/htdocs/joomla‘.
Go to ‘/opt/lampp/htdocs/joomla‘ directory and check the joomla file.
Extract the file using ‘sudo tar xvzf‘ command.
The extraction process is done.
Delete Joomla_1.5.3-Stable-Full_Package.tar.gz because you don’t need it.
Run your XAMPP server, open your browser and type ‘localhost/joomla‘. Joomla starts the installation process automatically (http://localhost/joomla/installation/index.php).
Step 1. Language
Select your Language and click ‘Next’ button.
Step 2. Pre-Installation Check
Joomla then checks for “Pre-installation Check”.
When you see ‘configuration.php Writeable = No‘. It’s permission setting only, no problem. We can create it later manually.
Just click ‘Next’ button to continue.
Step 3. License
Click ‘Next’ button also at ‘License’ screen.
Step 4. Database
Now, this is the most important thing. The database setup can be different. If you are only install in your personal web server it will be no problem. You can put any ‘user name‘ and ‘database name‘ with what you want. But, if you will put in a commercial or free web server, they will provide you for the ‘user name’ and ‘database name’.
Database Type: mysql (default)
Host Name: localhost (default)
User Name: root (default)
Password: ***** (put your password here)
Database Name: db_joomla (put your database name here)
Step 5. FTP Configuration
If you don’t use FTP server just click ‘Next’ button.
Step 6. Configuration
Put your Site Name: ‘My book collections’ (This is your web page title).
Enter Your Email: ‘taufanlubis@indosat.net.id‘ (This your email address).
Enter Admin Password: ******* (This is your admin password next time change your Joomla setting).
Confirm Admin Password: *******
Install Default Sample Data.
If you are a beginner, just use the default database setup.
Step 7. Finish
It’s almost done. We just have to create ‘configuration.php‘ file manually.
First, you have to select all codes below, click right mouse button and select ‘Copy’.
Goto your Terminal Linux, and run gedit.It’s a very simple graphical word processor. Type ‘sudo gedit /opt/lampp/htdocs/joomla/configuration.php‘.
Click ‘Edit > Paste‘ to paste the configuration content. Save it and close the gedit program.
After we create the configuration.php, click ‘Next’ button to continue.
You have finished all the steps. Actually, you can ignore the message below and start to use your Joomla by click ‘Click here when the directory has been removed‘.
But, it’s not save. Because, if someone can access your installation directory, he will be able to re-setup your Joomla. So, we have to delete it immediately.
To delete the installation directory, you have to open your Linux Terminal.
Go to ‘/opt/lampp/htdocs/joomla‘ directory and delete it using ‘sudo rm -rf installation/‘ command.
Go back to your Joomla Installation screen.
Now you can click ‘Click here when the directory has been removed‘ link.
Congratulation. You’ve installed Joomla by your self.
To change the setting, click ‘Administrator’ link on ‘Resources’ group on the left screen.
Enter your User name and Password and click ‘Login’ button.
Welcome to Joomla Administrator Screen.
tengkyu boss!
sangat membantu… btw, ada tools yang enak gak buat mengedit joomla
[…] by johnny64 on July 6, 2008 when you try to install joomla in your computer, you need to change the template that suits you. However when the first time you […]
Goog tutorial! Thanks
good job, thank you
Thanks for the great tutorial. I am receiving some warning messages on each page that I assume are preventing me from logging in as admin. The error messages are:
Warning: session_start() [function.session-start]: Cannot send session cookie – headers already sent by (output started at /opt/lampp/htdocs/joomla/configuration.php:68) in /opt/lampp/htdocs/joomla/libraries/joomla/session/session.php on line 413
Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /opt/lampp/htdocs/joomla/configuration.php:68) in /opt/lampp/htdocs/joomla/libraries/joomla/session/session.php on line 413
Warning: Cannot modify header information – headers already sent by (output started at /opt/lampp/htdocs/joomla/configuration.php:68) in /opt/lampp/htdocs/joomla/libraries/joomla/session/session.php on line 416
Any idea why these errors are being generated and how they might be fixed?
Thank you again,
Samuel Longiaru
Kamloops, BC Canada
Sorry… just fixed it. I had put a blank line at the end of configuration.php before saving it. I removed the blank line and all is well! Funny in that so many linux config files require a return after the last line. Did not know php was so fussy.
Thanks again for your great tutorial.
Samuel Longiaru
Thanks, man. It works on my eee PC xandros too.
thanks man, I gave myself a bloodclot trying to get joomla up before I read this. Good work. Very easy to follow.
i have problem with createing database and user name, because when i fill with user name root and password that use to log into mysql it dispaly that cannot connect to mysql database,
how can i solve with this problem ?
Thank
Best regard
Thanks for a nice tutorial. Just finished installing Joomla 1.5.9 (and XAMPP 1.7) on Ubuntu 8.10 and it all looks very sweet. FYI, the only difference I encountered was while installing the joomla package (e.g. Joomla_1.5.3-Stable-Full_Package.tar.gz); it’s been changed to a zip file (e.g. Joomla_1.5.9-Stable-Full_Package.zip). All in all it’s great. Enjoy your CMS.
I got some error just like you, like:
1. global report
2. error message
although these error is just a difference from the recommended setting, I want to get rid of them. can we eliminate these problem? how?
thanks
Hello,
Thanks a lot for publishing the above information. I am stuck in the midway of the joomla installation. I copied the unzipped joomla installation files into a folder called joomla15 in htdocs folder. When I try to open http://localhost/joomla15/joomla it says permission denied. I tried opening from terminal (with sudo before the command). It did not work. Can you please help me fix this problem?
Thanks!!
It’s a very interesting subject I was looking around about more information but you got really what i was looking for in your article so thanks and keep it up you have a great blog .
I’m very interested in CMS and all its related subjects.
I found your blog by chance . but i have to say that it’s great blog very useful information and very interesting subjects just greetings and good luck
i’m not going i will be always checking for updates.I’m very interested in CMS and all its related subjects.
Very useful information. Thanks for this. You got a great blog .I will be interested in more similar topics.I’m very interested in CMS and all its related subjects.
I found your blog by chance . but i have to say that it’s great blog very useful information and very interesting subjects just greetings and good luck
i’m not going i will be always checking for updates.I’m very interested in CMS and all its related subjects.
Thanks for a very useful tutorial, there’s a lot of confusing stuff out there but this is actually simple and straightforward. Excellent work.
Hi,
Great tutorial, but I have a problem installing on Ubuntu. After finishing install all directories are showing as unwritable in system info.
I have changed all the permissions to 777 using chmod but still can’t do certain things as configuration.php is not writable apparently, even though I change permissions to 777 – for example still can’t change global configuration. Any idea why this happens – it’s a hassle to CHMOD all these folders manually after install. What would happen if a just CHMOD the Joomla folder so all permissions are 777? Only running on localhost so not worried about security.
I assume this is something to do with the way XAMPP sets itself up? Any ideas?
i followed religiously your tutorial. however, by the time I click next after the database configuration i get this error:
“Unable to connect to the database:Could not connect to MySQL”
I could not go on further. please help!!
To arturieto: Let the pass of root blank…(mysql by default dont have pass) thats why it dont let u connect to…
well for me this step by step did not worked 😦
after i finished this tutorial (and did exactly what they say) i have a big screen with errors…
Strict Standards: Non-static method JText::_() should not be called statically, assuming $this from incompatible context in /opt/lampp/htdocs/joomla/administrator/templates/khepri/login.php on line 66
Strict Standards: Non-static method JFactory::getLanguage() should not be called statically, assuming $this from incompatible context in /opt/lampp/htdocs/joomla/libraries/joomla/methods.php on line 120
Joomla! Administration Login
Strict Standards: Non-static method JRequest::getCmd() should not be called statically, assuming $this from incompatible context in /opt/lampp/htdocs/joomla/administrator/components/com_login/admin.login.php on line 18
Strict Standards: Non-static method JRequest::getVar() should not be called statically, assuming $this from incompatible context in /opt/lampp/htdocs/joomla/libraries/joomla/environment/request.php on line 255
Strict Standards: Non-static method JRequest::_cleanVar() should not be called statically, assuming $this from incompatible context in /opt/lampp/htdocs/joomla/libraries/joomla/environment/request.php on line 151
and more and more and more and more…… any idea???
I got the same problem
Stathis and Pablo – you have to open the php.ini file in the /opt/lampp/etc folder, and then you have to make sure that ‘display_errors = Off’ (line 533). Then restart LAMPP, and the error messages should have gone away.
It works. Thanks.
thanks 🙂
thanx alot brothers…
its work
Hi, I just managed to the Joomla working but my menus are all empty? 😦
Can anyone Help?
stathis and pablo: i had meet that error too. the solution is before you install joomla on lampp make sure that you make permission to lampp folder be “775”. just run this command “chmod -R 775 /opt/lampp”
was running joomla 1.5.7 on top of ubuntu 8.10, and faced problems :
1. XML respionse error when try to install sample data (leave it then pass to next step of installation)
2. Strict Standards error (solve by turned off display_error in php.ini, as Arnold suggest, tx bro ..)
3. same problem with Philip, most of the menu disappeared
is there anyone have the same problem, and already solved ?
ton of thanks bro…
i used to run joomla on top of windows, yesterday try to install joomla 1.5.7 on ubuntu 8.10, the problem arised is quite similar with novice … XML invalid response when install sample data, Strict Standards error, and disappeared menu.
hope someone can help to solve 🙂 thanks a lot
Hi there.
Sofar your tutorials are the best because inbetween showing how to install Joomla, you explain what I am busy doing in terms of the command line (explaining what cd means…thanks) etc.
However, I installed the XAMPP stack for Ubunty 9.04 (Actually Ubuntu Ultimate) but I can’t get my MySql setup so that I can get Joomla running.
I got Joomla installed etc, but now the setup has been stumped and I can’t find MySql tut to tell me what to do.
I know I didn’t setup MySql because I don’t have a database name, and upon entering defaults, the error message says: “Unable to connect to the database:Could not connect to MySQL”
Could you help? I am a newbie…ESPECIALLY with the command line. I do know upon my last sucessful installation of the XAMPP stack, that I didn’t create a database or enter a MySql password. That didn’t appear in the installation.
Please help, I am trying to get Joomla up and running a working so that I can learn it (got the book of Barrie North).
Thanks
South Africa
Cool post I just Love it, Keep posting more like this! Tech Videos
Now Joomla has been installed on XAMPP, all seemed well until I found that there is no data installed at all. How do you install the sample data? It failed when installing Joomla.
it’s very helpful of your installation guide
thanks …
i hace the same probleme as philip and novice”..but my menus are all empty? ”
your help please
Thank you for inquiring. Been working very nice.
An excellent blog about perfect. Thank you again..
For many years recording engineers and enthusiasts have elected to reference their mixes on a vast and often bizarre array of playback systems.
I always follow your site work so well they call me about it was easy to come thank you .. 😉
Hi!!
Im a newbie in linux and also in creating a web server.
I have a problem in Step4.
and i got this error:
“Unable to connect to the database: could not connect to mysql”
I tried to start mysql by issuing this commands:
#chkconfig mysqld on
#/etc/init.d/mysqld start
Starting MySQL: [ OK ]
but i still got the error..
HELP PLEASE..
There is another solution.
Just create the database ‘db_joomla’ via phpmyadmin.
Give access to user ‘root’ + password before you go to step 4.
Hope it can fix your problem.
Cheers,
Taufan
now i can view my http://localhost/joomla/administrator/index.php
but i cannot login…what username and password to fill in that field?
help me plz…
All t-shirts are hand numbered t-shirts and very limited.
i followed religiously your tutorial. however, by the time I click next after the database configuration i get this error:
“Unable to connect to the database:Could not connect to MySQL”
I could not go on further. please help!!
thank you friend it is working on my ubuntu 12.04
Hi…
Not at all. With wordpress you just create your article.
First thing first, you have to register, select the theme based on your preference, pictures for headline and some widget.
That’s it.
The rest will be managed by wordpress.
Thank you! Nice article.