User Tools

Site Tools


tutorials:cb1:customization:cubian_nginx_mysql_php5_on_cubieboard

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tutorials:cb1:customization:cubian_nginx_mysql_php5_on_cubieboard [2013/10/04 22:34]
george [Install Nginx web server]
tutorials:cb1:customization:cubian_nginx_mysql_php5_on_cubieboard [2013/12/23 14:50] (current)
Line 61: Line 61:
   *PHP5 works in nginx through PHP-FPM (PHP-FPM (FastCGI Process Manager), an alternative PHP FastCGI implementation: ​   *PHP5 works in nginx through PHP-FPM (PHP-FPM (FastCGI Process Manager), an alternative PHP FastCGI implementation: ​
 <​code>​ <​code>​
-   $sudo apt-get install php5-fpm+   $ sudo apt-get install php5-fpm
 </​code>​ </​code>​
 {{:​php5fromold1.jpg|}} {{:​php5fromold1.jpg|}}
Line 69: Line 69:
   *We need to make one small change in the php configuration file, then open php.ini: ​   *We need to make one small change in the php configuration file, then open php.ini: ​
 <​code>​ <​code>​
-   $sudo nano /​etc/​php5/​fpm/​php.ini+   $ sudo nano /​etc/​php5/​fpm/​php.ini
 </​code>​ </​code>​
 {{:​php5fromold2.jpg|}} {{:​php5fromold2.jpg|}}
Line 83: Line 83:
   *Save and exit.It'​s necessary another small change in the php5-fpm configuration.Open up www.conf: ​   *Save and exit.It'​s necessary another small change in the php5-fpm configuration.Open up www.conf: ​
 <​code>​ <​code>​
-   $sudo nano /​etc/​php5/​fpm/​pool.d/​www.conf+   $ sudo nano /​etc/​php5/​fpm/​pool.d/​www.conf
 </​code>​ </​code>​
 {{:​php5fromold5.jpg|}} {{:​php5fromold5.jpg|}}
Line 90: Line 90:
   *Save and Exit and restart php-fpm: ​   *Save and Exit and restart php-fpm: ​
 <​code>​ <​code>​
-   $sudo service php5-fpm restart+   $ sudo service php5-fpm restart
 </​code>​ </​code>​
 {{:​php5fromold7.jpg|}} {{:​php5fromold7.jpg|}}
Line 96: Line 96:
   *Open the default virtual host file    *Open the default virtual host file 
 <​code>​ <​code>​
-   $sudo nano /​etc/​nginx/​sites-available/​default+   $ sudo nano /​etc/​nginx/​sites-available/​default
 </​code>​ </​code>​
 {{:​cnginxfromold1.jpg|}} {{:​cnginxfromold1.jpg|}}
Line 105: Line 105:
   * Save and exit.Now, create a php test page:    * Save and exit.Now, create a php test page: 
 <​code>​ <​code>​
-   $sudo nano /​usr/​share/​nginx/​www/​info.php+   $ sudo nano /​usr/​share/​nginx/​www/​info.php
 </​code>​ </​code>​
 {{:​cnginxfromold4.jpg|}} {{:​cnginxfromold4.jpg|}}
tutorials/cb1/customization/cubian_nginx_mysql_php5_on_cubieboard.1380897250.txt.gz · Last modified: 2013/12/23 14:50 (external edit)