Now that you have Linux up and running, you can move on to the relatively straightforward pricess of getting Apache, MySql, and PHP running. Open your terminal emulator and run linuxchroot to get your Linux environment up and running.
1. Update your system.
2. Install and configure MySQL
apt-get install mysql-server mysql-client
If your experience mirrors mine, mysql-server will install with an error related to the MySQL socket being unable to start. If that is the case, do the following:
3. Install Apache2
apt-get install apache2 apache2-doc
service apache2 restart
4. Install PHP and, optionally PHPmyAdmin
apt-get install php5 php5-mysql libapache2-mod-php5
apt-get install phpmyadmin
5. Configure Apache and MySQL to start everytime you start linux
service mysql start
service apache2 start
6. Configure shutdown script
service apache2 stop
service mysql stop
At this point you should be up and running. Opening the browser on your android device and going to http://localhost/ or http://127.0.0.1/ will take you to your internal LAMP server anytime your linuxchroot envirnoment is running.