{"id":4192,"date":"2014-08-21T15:53:12","date_gmt":"2014-08-21T20:53:12","guid":{"rendered":"https:\/\/secure.rosehosting.com\/blog\/?p=4192"},"modified":"2022-12-09T08:30:04","modified_gmt":"2022-12-09T14:30:04","slug":"how-to-install-nginx-php5-fpm-mysql-phpmyadmin-postfix-on-a-ubuntu-server-using-easy-engine-shell-script","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-nginx-php5-fpm-mysql-phpmyadmin-postfix-on-a-ubuntu-server-using-easy-engine-shell-script\/","title":{"rendered":"How to install Nginx, PHP5-fpm, MySQL, phpMyAdmin, Postfix on a Ubuntu server using Easy Engine shell script"},"content":{"rendered":"
In this tutorial we will show you how to install Nginx, PHP5 (fpm) with Zend OPCache, MySQL, PHPMyadmin, Postfix on an Ubuntu<\/a> server in less than 20 minutes. We will use Easy Engine for this purpose.<\/p>\n You are probably wondering what is Easy Engine? It is a Linux shell-script to install, manage and host WordPress-Nginx websites on an Ubuntu\/Debian server. It works only on a operating system based on Debian because unfortunately there is no support for RPM based systems like CentOS<\/a>. This script will install Nginx, PHP5-fpm, MySQL, phpMyAdmin and all its dependencies in a single command, thus making it easy for every user that has little experience in working with a Linux VPS<\/a>.<\/p>\n Nginx is an open source reverse proxy server and can be deployed to serve dynamic HTTP content on the network using FastCGI, SCGI handlers for scripts, WSGI application servers or Phusion Passenger module, and it can serve as a software load balancer. It is a better free alternative to Apache because it is lightweight and RAM-friendly. It also performs better and faster than Apache, particularly when the number of concurrent site visitors is on the rise.<\/p>\n To sum up, Easy Enginge (ee) is built to simplify the process of installing, configuring and managing Nginx (or full LEMP stack to be correct) to host websites on a Ubuntu server. It’s most notable features are:<\/p>\n For this tutorial you will need:<\/p>\n In this guide, we will use Ubuntu 14.04 VPS<\/a> with 512MB of RAM.<\/p>\n First you need to login to your Ubuntu 14.04 VPS<\/a>\u00a0 as user \u2018root\u2019 :<\/p>\n Let’s check if Apache and Postfix\/Sendmail are already installed and running. If so, stop and remove them using:<\/p>\n If you don’t know what your operating system is you can check using the following command:<\/p>\n Enter the following command to install Easy Engine on your VPS:<\/p>\n Common issues:<\/p>\n Install curl:<\/p>\n Now we can install Nginx, PHP5 (fpm), MySQL, Postfix and phpMyAdmin using this single command:<\/p>\n Common issues:<\/p>\n If you get the following error: ‘Unable to install PHP5, exit status =\u00a0 100’\u00a0 edit the default ee\u2018s configuration using your favorite editor:<\/p>\n Modify and set the ‘gpg-keys-fix= false’ line to ‘gpg-keys-fix= true’ so Easy Engine can try another mirror and fetch the key.<\/p>\n Once the installation is complete you will see something like this:<\/p>\n <\/p>\n <\/p>\n <\/p>\n <\/p>\n <\/p>\n <\/p>\n <\/p>\n <\/p>\n <\/p>\n That’s it. We installed the complete LEMP stack (including the latest version of PHP5-fpm with ZendOPCache).<\/p>\n If you want to check the status of all running services use the following command:<\/p>\n You can know create a sample wordpress website. For example, to create a wordpress site called ‘rosehosting.example’ enter this command:<\/p>\n This will automatically install WordPress as well, in case you don’t have that already installed.<\/p>\n Of course you don\u2019t have to do any of this if you use one of our Linux VPS hosting services<\/a>, in which case you can simply ask our expert Linux admins to install this for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n PS.<\/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 tutorial we will show you how to install Nginx, PHP5 (fpm) with Zend OPCache, MySQL, PHPMyadmin, Postfix on … <\/p>\n- Automatically tweaks server configuration as per available hardware resources;\r\n- Supports automatic updates;\r\n- It will install w3-total-cache, wp-super-cache, NGINX\u2019s fastcgi-cache, Zend Opcache, and Memcache;\r\n- Install Nginx, PHP, MySQL, phpMyAdmin and all its dependencies in a single command.<\/pre>\n
- A VPS \/ Dedicated server with at least 512 MB of RAM;\r\n- Fresh install of Ubuntu (12.04, 12.10, 13.10, 14.04) or Debian 6\/7 distribution;\r\n- Basic knowledge of the SSH command;\r\n- Basic knowledge of how to use Putty (Windows) or Terminal (Linux\/Mac)<\/pre>\n
# ssh root@hostname<\/pre>\n
# \/etc\/init.d\/apache2 stop\r\n# \/etc\/init.d\/postfix stop\r\n# \/etc\/init.d\/sendmail stop\r\n# apt-get remove apache2 postfix sendmail<\/pre>\n
# cat \/etc\/issue<\/pre>\n
# curl -sL rt.cx\/ee | sudo bash<\/pre>\n
curl command not found<\/pre>\n
# apt-get install curl<\/pre>\n
# ee system install<\/pre>\n
# vim \/etc\/easyengine\/ee.conf<\/pre>\n
# ee system status<\/pre>\n
# ee site create rosehosting.example --wp<\/pre>\n