Table of Contents

Cubian

Install LXDE

   $ sudo apt-get update
   $ sudo apt-get upgrade

   $ sudo apt-get install lxde

(Nb: It requires a download of 165 MB of data)

   $ sudo reboot

Install MySQL

   $ sudo passwd cubie

(NB insert the new password twice)

   $ sudo apt-get install mc
   $ sudo apt-get install mysql-server mysql-client

(NB: You will be asked to provide a password for the MySQL root user.)

Install Nginx web server

   $ sudo apt-get install nginx

   $ sudo /etc/init.d/nginx start

(NB The default document root in Nginx is located in /usr/share/nginx/www)

Install PHP5-fpm

   $ sudo apt-get install php5-fpm

(Note: PHP-FPM is a daemon process (with the init script /etc/init.d/php5-fpm) that runs a FastCGI server on the socket /var/run/php5-fpm.sock.)

Configure PHP5

   $ sudo nano /etc/php5/fpm/php.ini

   ;cgi.fix_pathinfo=1

   $ sudo nano /etc/php5/fpm/pool.d/www.conf

   $ sudo service php5-fpm restart

Configure Nginx

   $ sudo nano /etc/nginx/sites-available/default

   $ sudo nano /usr/share/nginx/www/info.php

   <?php
     phpinfo();
   ?>

&The original author:Tommaso Mauro Tautonico &Copied from http://tautonik.homepc.it/tutorial.html