Setup PHP-FPM 5.6 on Ubuntu

The LEMP software stack is a group of software that can be used to serve dynamic web pages and web applications. This is an acronym that describes a Linux operating system, with an Nginx web server. The backend data is stored in MySQL and the dynamic processing is handled by PHP.

apt-get update

apt-get install fail2ban

apt-get install ntp

apt-get install git

curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer

apt-get install nginx

apt-get install mysql-server mysql_install_db mysql_secure_installation

apt-get install python-software-properties add-apt-repository ppa:ondrej/php apt-get update apt-get install php5.6 php5.6-fpm php5.6-mcrypt php5.6-mbstring php5.6-curl php5.6-cli php5.6-mysql php5.6-gd php5.6-intl php5.6-xsl php5.6-zip

vi /etc/php/5.6/fpm/php.ini SET: cgi.fix_pathinfo=0 service php5.6-fpm restart

apt-get install php5.6-sybase freetds-common libsybdb5 service php5.6-fpm restart service nginx restart

sudo adduser root www-data sudo chown -R www-data:www-data /var/www sudo chmod -R g+rw /var/www

Set Nginx PHP socket: /var/run/php/php5.6-fpm.sock


Explore our projects