O'Reilly logo

Building Networks and Servers Using BeagleBone by Glenn Vander Veer, Bill Pretty

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Installing PHP5

Our web-based file browser is a PHP application. Therefore, our next task is to install PHP5 and PHP-FPM. PHP-FPM is a daemon process that runs a FastCGI server on port 9000. The init script for this application is stored at /etc/init.d/php5-fpm/php.ini.

To install these two programs, enter the following command:

apt-get install php5-fpm php5

Configuring Lighttpd and PHP5

To enable PHP5 in Lighttpd, we must modify /etc/php5/fpm/php.ini and uncomment the line cgi.fix_pathinfo=1:

;http://php.net/cgi.fix-pathinfo
;cgi.fix_pathinfo=1

Remove the semicolon present at the beginning of the previous line.

The Lighttpd configuration file for PHP /etc/lighttpd/conf-available/15-fastcgi-php.conf is suitable for use with spawn-fcgi. However, we ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required