Differences

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

Link to this comparison view

advanceduses:installing_lighttpd_php_mysql_on_tonidoplug [2010/03/03 19:11]
gatesphere Added optional config section.
advanceduses:installing_lighttpd_php_mysql_on_tonidoplug [2011/12/29 22:10] (current)
Line 22: Line 22:
 5. Install PHP: 5. Install PHP:
 Issue the following command as root to install a FastCGI-enabled version of PHP and MySQL support: Issue the following command as root to install a FastCGI-enabled version of PHP and MySQL support:
-  #apt-get install php5-cgi php5-mysql+  # apt-get install php5-cgi php5-mysql
 You may wish to install other php5 modules at this time as well, if you think they'll be needed by your server.  You can always do this later. You may wish to install other php5 modules at this time as well, if you think they'll be needed by your server.  You can always do this later.
  
 After PHP is installed, open up //''/etc/php5/cgi/php.ini''// in your favorite text editor (I prefer ''joe'', which is available with a simple ''apt-get install joe'') and add the following line to the bottom of the file: After PHP is installed, open up //''/etc/php5/cgi/php.ini''// in your favorite text editor (I prefer ''joe'', which is available with a simple ''apt-get install joe'') and add the following line to the bottom of the file:
   cgi.fix_pathinfo = 1   cgi.fix_pathinfo = 1
 +
 +To allow PHP to work, you have to make sure that the ''/tmp'' directory on your system is world-writable, which the TonidoPlug has as root writable only by default. So, as root, simply issue the command
 +  # chmod 777 /tmp
 +and this should make ''/tmp'' world-writable.
  
 6. Enable PHP support in lighttpd: 6. Enable PHP support in lighttpd: