Joomla installation: Difference between revisions
Created page with "Follow these steps to install joomla with php, apache, mysql Installing RPMForge & EPEL Repository in CentOS 6 # RHEL/CentOS 6 64 Bit OS ## # wget http://packages.sw.be/rpmf..." |
No edit summary |
||
| Line 1: | Line 1: | ||
[[category:PHP]] | |||
Follow these steps to install joomla with php, apache, mysql | Follow these steps to install joomla with php, apache, mysql | ||
Latest revision as of 07:35, 24 October 2013
Follow these steps to install joomla with php, apache, mysql
Installing RPMForge & EPEL Repository in CentOS 6
- RHEL/CentOS 6 64 Bit OS ##
- wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
- rpm -Uvh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
- wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
- rpm -ivh epel-release-6-8.noarch.rpm
Note : The RPMForge repository will be installed under /etc/yum.repod directory as a file rpmforge.repo.
Importing RPMForge Repository Key in Cent-Os
Next, you’ll need to download and install DAG’s GPG key for your system.
- wget http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
- rpm --import RPM-GPG-KEY.dag.txt
Once the installation has finished and you are back into your system (remember to remove the mounted iso) I decided to install not only mandatory packages but also optional so I added this line to /etc/yum.conf:
group_package_types=default,mandatory,optional
- wq
- INSTALL REQUIRED SOFTWARES###
- yum groupinstall "Web Server"
- yum groupinstall "MySQL Database server"
- yum install man wget php php-mysql unzip policycoreutils-python -y
Create a temporary directory to extract and download Joomla:
- mkdir /joomla; cd /joomla
Download Joomla:-
Extract downloaded package:
- unzip Joomla_2.5.1-Stable-Full_Package.zip
Move all files to home web directory:
- mv /joomla/* /var/www/html
Start MySQL and set it to start at boot time:
- service mysqld start; chkconfig mysqld on
Set root's password to MySQL and get MySQL production-ready (Essentially type Y to everything):
- /usr/bin/mysql_secure_installation
Note:- while run this cammand, set root password, and disabled anonymous login
Create Joomla User:
- mysql -u root -p
- CREATE USER 'Admin'@'localhost' IDENTIFIED BY 'asd1234f';
Create Joomla Database:
- mysqladmin -u root -p create Joomla
Provide appropriate privileges to the JoomlaUser user:
- mysql -u root -p
mysql> GRANT ALL PRIVILEGES ON Joomla.* TO Admin@localhost IDENTIFIED BY 'asd1234f';
where:
'Joomla' is the name of your database
'JoomlaUser@localhost' is the userid of your webserver MySQL account
'mypass' is the password required to log in as the MySQL user
mysql> flush privileges; \q
Turn output buffering off by editing /etc/php.ini change:
output_buffering=4096
{change to}
output_buffering=Off
Create empty configuration.php file and set permissions:
- cp /var/www/html/joomla254/installation/configuration.php-dist /var/www/html/joomla254/configuration.php
- chmod 777 /var/www/html/joomla254/configuration.php
- touch /var/www/html/configuration.php
- chmod 666 /var/www/html/configuration.php
Start Apache and set it to start on boot:
- service httpd start; chkconfig httpd on
Disable SELinux (I recommend having a look at this post for a fix that will allow you to run SELinux and Joomla. Do ensure that you test everything that you are likely and unlikely to do, e.g. add articles, add blogs, etc..). Alternatively edit /etc/selinux/config and change:
SELINUX=enforcing
{change to}
SELINUX=disabled
Start the Joomla install proper by navigating to:
- http://<192.168.1.45/joomla>
{ Set all mandatory options & after deleted installation directory from this path}
- rm -rf /var/www/html/joomla/installation
To access your Joomla 3.1 administrator’s page : http://192.168.1.45/joomla/administrator/
To browse your Joomla 3.1 CMS : http://192.168.1.45/joomla/