Quantcast
Channel: Linux tutorials Archives | Unixmen
Viewing all articles
Browse latest Browse all 1264

Install ProcessWire CMS Using LAMP Server On CentOS 6.4

$
0
0

ProcessWire is an award winning Open Source Content Management System(CMS) and Content Management Framework written in PHP. ProcessWire has been developed by Ryan Cramer since 2003. From 2003 to 2007 it was developed under the name Dictator CMS. From 2007–2010 it was developed as ProcessWire 1.x, and from 2010 to now, it has been developed as ProcessWire 2.x.

In this tutorial let us build a CMS website using ProcessWire On CentOS 6.4. Though it was tested under CentOS, it will work on many RPM based distro’s. My test box hostname and IP address are server.unixmen.com and 192.168.1.201/24.

Prerequisites

Your server should have installed with following prerequisites. For more details about the software requirements visit this page.

First you have to install and configure LAMP server. Visit any one of the following links to setup LAMP server.

- Install LAMP (Apache, MariaDB, PHP) Server On CentOS 6.4.

- Install LAMP (Apache, MySQL, PHP) Server On CentOS 6.4.

Now install the following prerequisites too.

# yum install php-mcrypt php-pdo php-cli php-mysql php-gd php-xml libtool-ltdl mhash mcrypt -y

Create Database and User for CS-Cart

For instance, here i am going to create a database called “processdb” and database user called “processuser” with password “centos” for CS-Cart. You can define database and user as per your liking.

# mysql -u root -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 3
Server version: 5.5.31-MariaDB MariaDB Server

Copyright (c) 2000, 2013, Oracle, Monty Program Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> create database processdb;
Query OK, 1 row affected (0.02 sec)

MariaDB [(none)]> GRANT ALL ON processdb.* TO processuser@localhost IDENTIFIED BY 'centos';
Query OK, 0 rows affected (0.01 sec)

MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> exit
Bye

Firewall(IP TABLES) and SELinux Settings

Allow the apache default port “80″ through iptables. Edit file /etc/sysconfig/iptables,

# vi /etc/sysconfig/iptables

Add the following lines.

-A INPUT -p udp -m state --state NEW --dport 80 -j ACCEPT 
-A INPUT -p tcp -m state --state NEW --dport 80 -j ACCEPT

Now restart the iptables service.

# /etc/init.d/iptables restart

I don’t want to mess up with SELinux, so here i disabled it.

Edit file /etc/selinux/config,

# vi /etc/selinux/config

Set the SELINUX value as “disabled”.

SELINUX=disabled

Restart the system to take effect the saved changes.

Getting ProcessWire

Download the latest version here. I downloaded and saved it in my current directory.

Extract it using command:

# unzip ProcessWire-master.zip

Move the extracted files to apache root folder.

# mv ProcessWire-master/ /var/www/html/processwire

Rename the folder “site-default” to “site” in the processwire directory.

# cd /var/www/html/processwire/
# mv site-default/ site/
# chmod -R 777 site/assets/
# chmod -R 777 site/config.php

Rename the file “.htaccess.txt” to “.htaccess” in the processwire directory.

# mv htaccess.txt .htaccess

Begin Installation

Navigate to http://192.168.1.201/processwire from your browser. The following screen should appear. Click on Get Started link to continue.

ProcessWire 2.3 Installation - Mozilla Firefox_001In the next window, the installer will do the compatibility check. If all seems well, Continue to Next Step.

ProcessWire 2.3 Installation - Mozilla Firefox_002Enter the MySQL database, user and password. Click next.

ProcessWire 2.3 Installation - Mozilla Firefox_003The test database and user will be created. Enter your admin user password and administration mail id. Click Create Account to continue.

ProcessWire 2.3 Installation - Mozilla Firefox_005Finally ProcessWire admin has been created and installation has been completed.

ProcessWire 2.3 Installation - Mozilla Firefox_006Now you will be able to access processwire admin URL http://192.168.1.201/processwire/processwire/ and processwire example website http://192.168.1.201/processwire.

Access ProcessWire Example Site

Navigate to http://192.168.1.201/processwire/ from your browser. This is how your default ProcessWire page looks.

Basic Example Site - Mozilla Firefox_007Post Installation

Change the permission of config.php file to secure processwire and remove the installer zip file and installer/ directory.

# chmod 444 site/config.php
# rm -f install.php
# rm -fr site/install/

--------------------------------------------------------------------- Install ProcessWire CMS Using LAMP Server On CentOS 6.4


Viewing all articles
Browse latest Browse all 1264

Latest Images

Trending Articles



Latest Images