Installing a LAMP server on beagleboard!

Installing a LAMP server on beagleboard is something that is mandatory for my projects that I am currently working on.  Installing them couldn’t be easier.

I prefer to install them in stages, although you could do it all at once.

sudo apt-get install apache2

Will install apache2 and all necessary dependencies.  The configuration files will be located at /etc/apache2/apache2.conf and httpd.conf.  Your web directory or document root will be /var/www

sudo apt-get install mysql-server mysql-client

This will install mysql server and a client.

sudo apt-get install php5 libapache2-mod-php5

This will install php and the php module for apache2 to use.

You will also need to restart apache:

/etc/init.d/apache2 restart   or
apache2ctl restart

To test your installation, navigate to http://localhost in your web browser, you should see something like this:

Default "New Site" page for Apache Web Server! (running on beagleboard!)

To test your installation of php, you will need to create a new php document, using a text editor like Gedit will work.
Put this in the file:

<?php
phpinfo();
?>

Save the file to /var/www (your document root for apache) as “Phpinfo.php”.

Navigate from your web browser to “http://localhost/phpinfo.php”.  If your installation completed correctly with no errors, you should see a page like this:

the phpinfo() process should show a page like this.

I hope this helps others install and use the LAMP packages!

Dodaj komentarz