Joomla is a free, open-source content management system (CMS) and application framework that powers 2.7% of the entire web and a model–view–controller (MVC) Web application framework that can also be used independently. With a vibrant volunteer community, user-friendly features and plenty of power, Joomla is perfect. Recent CMS market share studies which comparing Open Source Content Management Systems showed Joomla as the market leader, followed by WordPress, then Drupal, then Plone.
This technical post on localhost joomla install will help a newbie to installing joomla on localhost linux ubuntu using LAMP server.
NB: RELATED POSTS
Installing Joomla on localhost windows WAMP server.
Installing Joomla 1.5 on localhost windows WAMP server. [ Old version install steps. ]
Here is the steps,
- Install LAMP server.
You can use the steps explained on this post to install lamp server.
[ Tested Version: Linux Ubuntu 12.04 , Apache Version: 2.2.22-1ubuntu1, PHP Version: 5.3.10-1ubuntu3.2, MySQL Version: 5.5.24-0ubuntu0.12, phpmyadmin: 220.127.116.11deb1 ]
- Download the latest zip version of Joomla from joomla download page. [ Tested Version: Joomla_3.0.1-Stable-Full_Package ]
- Extract the downloaded joomla version (Joomla_3.0.1-Stable-Full_Package.zip). Copy and paste Joomla (or folder name) folder in to www directory of the LAMP server.
You can access local web server root directory on Ubuntu 12.04,
Go to Terminal [
sudo nautilushit Enter,
Type password hit Enter, a new window opens,
Go to downloaded folder ( File System – home – username – downloads OR if you want to copy the setup from other folder(windows folders) than ubuntu file system, first mount that folder in to ubuntu ) and copy Joomla (or folder name) folder in to File System – var – www .
Close the window and also type exit to close terminal.
- Set correct permission for var/www/joomla folder.
Open Terminal [
And login on your “ubuntu server”, login as root, for this type
sudo -ihit Enter and type your
Your prompt changes from “$” to ubuntu server “#”.
chown -R www-data /var/www/jommlaenter.
exitshows a logout and prompt back to “$”.
exitto close terminal.
- Create a MySQL database support for Joomla installation on your LAMP server phpMyAdmin interface as shown below.
( You can access phpmyadmin interface on ubuntu by entering http://localhost/phpmyadmin/ on your favorite web browser. )
Write down the database name, user name, and password as you will need these later.
a) Create New Database.
phpMyAdmin -> Click on Databases menu -> Create database – Enter database name –> Create.
b) Add a new database user with password.
NB: It is not a good practice to use ‘root’ user for all databases due to security reasons. Read this post, SQL injections attack php.
phpMyAdmin -> Click on Privileges menu -> Hit Add user-> Add user pop up box appears -> Enter database username and password, select ‘Local’ on Host: dropdown option -> Drag down hit ‘Check All’ on Global privileges -> hit on ‘Add User’ button.
c) Add user to the Database.
phpMyAdmin -> Click on Privileges menu -> Select username -> Edit privileges -> Edit privileges pop up box appears,
Drag down to Database-specific privileges menu -> Select Database name from drop down
The page will refresh-> Check all Database-specific privileges -> ‘Go’.
- Step-by-Step Installation Wizard
Enter http://localhost/joomla on your favorite web browser. Proceed as explain in below steps,
1) Main Configuration
On this step first select your language, Enter site name and description, Admin email, username and password. Click Next.
2) Database Configuration
Select database type ‘MySQL’ and host name ‘localhost’.
And enter database name, username and password which is created on step 5. Click Next,
3) Settings overview
In the finalisation step you can select ‘Install sample data’ option, a newbie must use sample data. And also check main configuration and database configuration settings. Click Next,
Next window shows installation process, wait for complete installation,
After complete installation you will get a congrats message. On the same page use “Remove installation folder” button for remove install details for security reasons.
Now you can login joomla admin end through http://localhost/joomla/administrator/ by entering your admin username and admin password.
You can also view Joomla site front end by http://localhost/joomla(folder name)/ this url.