{"id":5231,"date":"2014-10-23T14:57:51","date_gmt":"2014-10-23T19:57:51","guid":{"rendered":"https:\/\/secure.rosehosting.com\/blog\/?p=5231"},"modified":"2022-12-15T10:04:37","modified_gmt":"2022-12-15T16:04:37","slug":"install-gpeasy-cms-with-nginx-and-php5-fpm-on-an-ubuntu-14-04-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/install-gpeasy-cms-with-nginx-and-php5-fpm-on-an-ubuntu-14-04-vps\/","title":{"rendered":"Install gpEasy CMS with NGINX and PHP5-FPM on an Ubuntu 14.04 VPS"},"content":{"rendered":"
In this article we will show you how to install gpEasy CMS on a Ubuntu 14.04 VPS<\/a> using Nginx web-server and PHP5-FPM.<\/p>\n gpEasy is a simple and powerful CMS. It was designed to be an easy to use, but lightweight and fully functional content management system (CMS).<\/p>\n gpEasy CMS doesn’t require you to setup any databases and allows you to edit your website on the fly since it’s flat-file based.<\/p>\n Nginx is a lightweight but very powerful web server. It’s known to be ultimately stable and high-performance HTTP server.<\/p>\n PHP5-FPM stands for PHP5 FastCGI Process Manager and it is an alternative PHP FastCGI implementation with some additional features useful for sites of any size, especially busier sites.<\/p>\n We’ll assume that unzip is installed on your Linux VPS<\/a>. If not, run the following command to install the program:<\/p>\n <\/p>\n REQUIREMENTS<\/strong><\/p>\n We are using our SSD 1 VPS<\/a> hosting plan for this tutorial.<\/p>\n UPDATE THE SYSTEM<\/strong><\/p>\n Login to your server as root and execute the following commands:<\/p>\n INSTALL NGINX AND PHP5-FPM<\/strong><\/p>\n Now we need to install Nginx and PHP5-FPM:<\/p>\n For the purpose of this tutorial let’s create a new user who will hold the gpEasy installation in his home directory.<\/p>\n Finish the steps of user creation and then add the gpeasy user to www-data group to avoid permission errors using the bellow command:<\/p>\n Since this command won’t output anything, for your peace of mind you can still perform a check using:<\/p>\n The following step of this installation procedure is to login as the gpeasy user that we created. To do that, execute and enter the password you set up:<\/p>\n Once you are logged in, you will notice that you are currently located in the gpeasy user home directory.<\/p>\n INSTALL gpEasy<\/strong><\/p>\n First, let’s download gpEasy CMS:<\/p>\n Unzip the downloaded zip file:<\/p>\n Rename the gpEasy directory to gpEasyCMS to avoid confusion when setting up the Nginx configuration for this content managment system.<\/p>\n Next, we need to give the right permissions and change the group on the data directory of gpEasy. This is needed to avoid read\/write errors when using gpEasy.<\/p>\n It is recommended to disable executing of the following files for everyone including owner and the group:<\/p>\n Log out from gpeasy user:<\/p>\n CONFIGURE NGINX<\/strong><\/p>\n First, remove the default nginx site configuration:<\/p>\n If you want to point more domains to the server, it might be needed to increase hash bucket size<\/strong> in the Nginx configuration file. To do that, open the file with your favorite text editor. We are using vim for our purposes:<\/p>\n Find the ‘# server_names_hash_bucket_size 64;’ line in this file and remove # from the line. Save it and close the file.<\/p>\n Create the site configuration for your gpEasy installation:<\/p>\n Now, paste the following configuration and replace the ‘yourdomain’ value with your actual existing domain:<\/p>\n <\/p>\n If you want to enable image functions for gpEasy run the following command:<\/p>\n Enable the gpEasy website configuration:<\/p>\n Restart Nginx and PHP5-FPM:<\/p>\n Now you can finish your gpEasy installation by opening your favorite web browser and navigate to: http:\/\/your_ip_address\/gpEasyCMS<\/p>\n Of course you don\u2019t have to do any of this if you use one of our Linux VPS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to install gpEasy CMS for you.They are available 24\u00d77 and will take care of your request immediately.<\/p>\n PS<\/strong>.<\/span> If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":" In this article we will show you how to install gpEasy CMS on a Ubuntu 14.04 VPS using Nginx web-server … <\/p>\n# apt-get install unzip<\/pre>\n
# apt-get update\r\n# apt-get upgrade<\/pre>\n
# apt-get install nginx php5-fpm<\/pre>\n
# adduser gpeasy<\/pre>\n
# usermod -a -G www-data gpeasy<\/pre>\n
# groups gpeasy | grep www-data<\/pre>\n
# login gpeasy<\/pre>\n
# wget -c http:\/\/gpeasy.com\/Special_gpEasy?cmd=dlzip -O gpeasy.zip<\/pre>\n
# unzip gpeasy.zip<\/pre>\n
# mv gpEasy\/ gpEasyCMS\/<\/pre>\n
# chmod 775 \/home\/gpeasy\/gpEasyCMS\/data\r\n# chgrp www-data \/home\/gpeasy\/gpEasyCMS\/data<\/pre>\n
# chmod 664 gpEasyCMS\/data\/example_htaccess\r\n# chmod 664 gpEasyCMS\/data\/index.html<\/pre>\n
# logout<\/pre>\n
# rm \/etc\/nginx\/sites-enabled\/default<\/pre>\n
# vim \/etc\/nginx\/nginx.conf<\/pre>\n
# vim \/etc\/nginx\/sites-available\/gpeasy<\/pre>\n
# apt-get install php5-gd<\/pre>\n
# ln -s \/etc\/nginx\/sites-available\/gpeasy \/etc\/nginx\/sites-enabled\/gpeasy<\/pre>\n
# \/etc\/init.d\/php5-fpm restart\r\n# \/etc\/init.d\/nginx restart<\/pre>\n