Install phpwcms on a CentOS
phpwcms is a flexible, fast, robust, customer and developer friendly but yet powerful web based content management system and cms framework running under PHP and MySQL. phpwcms is in use on thousands of websites all over the world. Try it 

[some references]! phpwcms is supported across all shared and dedicated web hosting plans offered by the major hosting providers.
Install phpwcms
As usual, run the following command to update all installed packages
yum -y update
Next, install Apache web server
yum -y install httpd
Once the installation of the web server is completed, start it and set it to start automatically on boot.
systemctl start httpd
systemctl enable httpd
phpwcms is a PHP based application and we need to install PHP with the 'mysql' extensions installed
yum -y install php php-mysql
Run the following command on your terminal to install MariaDB server
yum -y install mariadb mariadb-server
Once the installation is completed start the MariaDB server and set it to start on system boot
systemctl start mariadb
systemctl enable mariadb
Then, run the mysql_secure_installation script. This script will help you to improve the security of your MariaDB installation and set your MariaDB root password.

After that login to the MariaDB server with the root user and create a new user and database .
mysql -u root -p

CREATE USER 'phpwcmsuser'@'localhost' IDENTIFIED BY 'PASSWORD';
GRANT ALL PRIVILEGES ON `phpwcms`.* TO 'phpwcmsuser'@'localhost';
Download the latest available phpwcms release from their official website
Unpack the downloaded ZIP archive to the document root directory on your server
unzip -d /var/www/html/
After that rename the folder
cd /var/www/html/
mv phpwcms-phpwcms-1.8.2 phpwcms
Set the Apache user as the owner of the phpwcms files and directories
chown -R apache: /var/www/html/phpwcms
On the next step we will create an Apache virtual host for your phpwcms based website. Create a '/etc/httpd/conf.d/vhosts.conf' file with the following content:
IncludeOptional vhosts.d/*.conf
Create a ‘vhosts.d/’ directory and create the virtual host with the following content
mkdir /etc/httpd/vhosts.d/
nano /etc/httpd/vhosts.d/

<VirtualHost YOUR_SERVER_IP:80>
DocumentRoot "/var/www/html/phpwcms/"
ErrorLog "/var/log/httpd/"
CustomLog "/var/log/httpd/" combined

<Directory "/var/www/html/phpwcms/">
DirectoryIndex index.html index.php
Options FollowSymLinks
AllowOverride All
Require all granted
Save the file and restart the Apache web server.
systemctl restart httpd
Now, open a web browser and navigate it to, accept their terms and conditions and follow the on-screen instructions to complete the phpwcms installation.

About Author:

I am a Linux Administrator and Security Expert with this site i can help lot's of people about linux knowladge and as per security expert i also intersted about hacking related news.TwitterFacebook

Newer Post
Older Post


Post a Comment