Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Building Networks and Servers using Beaglebone
  • Table Of Contents Toc
Building Networks and Servers using Beaglebone

Building Networks and Servers using Beaglebone

By : William Pretty, Glenn Vander Veer
close
close
Building Networks and Servers using Beaglebone

Building Networks and Servers using Beaglebone

By: William Pretty, Glenn Vander Veer

Overview of this book

If you are a developer with BeagleBone experience and want to learn how to use it to set up a network and file server, then this book is ideal for you. To make the most of this book, you should be comfortable with the Linux operating system and know how to install software from the Internet, but you do not have to be a network guru.
Table of Contents (8 chapters)
close
close

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 want to use PHP-FPM; therefore, we create a backup of the file (named 15-fastcgi-php-spawnfcgi.conf) and modify 15-fastcgi-php.conf, as follows:

  1. cd /etc/lighttpd/conf-available/

  2. cp 15-fastcgi-php.conf 15-fastcgi-php-spawnfcgi.conf

  3. nano 15-fastcgi-php...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Building Networks and Servers using Beaglebone
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon