First install apache and configure to start up upon reboot:
yum install httpd chkconfig --levels 235 httpd on service httpd start
Add the iptables rule on /etc/sysconfig/iptables file and restart the iptables (if you have OS firewall enabled):
-A INPUT -m state --state NEW -p tcp --dport 80 -j ACCEPT service iptables restart
Now the MySQL database server:
Install:
yum install mysql-server
Change Startup:
chkconfig --levels 235 mysqld on service mysqld start
Secure installation:
/usr/bin/mysql_secure_installation
enter for none password
press Y and enter the new root password.
Remove the anymous users
Disallow the root login remotely
Remove test database and access to it
Reload privileges
After that, we need to create a user and a database for joomla:
mysql -u root -p enter the root password CREATE DATABASE joomla; CREATE USER 'joomla@localhost' IDENTIFIED BY 'insertyourpassword'; GRANT ALL PRIVILEGES ON joomla.* TO joomla@localhost IDENTIFIED BY 'insertyourpassword'; FLUSH PRIVILEGES; exit
The PHP turn:
yum install -y php php-mysql php-xml service httpd restart
And if your theme requires to upgrade to PHP 5.4.4:
wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm rpm -ivh epel-release-6-8.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm rpm -Uvh remi-release-6*.rpm yum --enablerepo=remi upgrade php-mysql php-devel php-gd php-pecl-memcache php-pspell php-snmp php-xmlrpc php-xml
Visit http://localhost or <ip_address>, complete initialization by entering database information as setup earlier and voila! Pat yourself on the back!
The post Install Joomla 3.1.1 on CentOS 6 appeared first on Byte Miner.