Tuesday 19 March 2013

Lighttpd and PHP on the BeagleBone

First of all, i originally found this information here and here, but the site seems down right now so i decided to put the information here aswell (with some modifications).

First of all i disable the web services:

systemctl disable cloud9.service
systemctl disable bone101.service
systemctl disable gateone.service

Then i install the required php packages:

opkg install php php-cgi php-cli
opkg install lighttpd lighttpd-module-fastcgi

Edit the lighttpd config file located at /etc/lighttpd.conf to enable fast-cgi:
Locate the server.modues line and uncomment mod_fastcgi:

Then further down the file is the fastcgi.server configuration, uncomment the lines to look something like this:

Make sure the path for php-cgi is correct!
Save the file and restart the lighted server:
/etc/init.d/lighttpd restart

Now, lets try if it works.
Create a new php file in /www/pages called index.php:

Finally, point your browser to the adress of your beaglebone and the PHP info page should show.


  1. hi sir i tried de above as mentioned by you but there is a error on the web link :( :( please help me sir...

    1. A little late response but... what web link do you mean?

  2. Is there a chance to install the gdlib (php-gd) ?

    1. I dont really know.. I havent tried that but i believe you'll have to compile PHP from source with GD support...

  3. Hi,
    Can I use BeagleBone Black computer for day to day development work in the LAMP environment? Is there any performance issue associated with this computer? Have you ever installed ArchLinuxARM on this computer? Please suggest me soon.

    Best Regards ...
    Pankaj Kumar

  4. Along with the latest PHP development and excellence in PHP web development we are anxious to satisfy our client needs and give them best quality work. plakatų dizainas

  5. You have shared a nice article about the php. Your service is very interesting and useful. I liked it. If anyone looking to a tutorial form of open source php applications at online, is the best choice.

  6. If you want to learn more about on how to install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu. You can opt for magento ecommerce store development service for application development services.