Hello everyone,
Recently I came across several nifty apt-get commands that quite handy and if used properly can be a life saver while setting up LAMP stack on your system.
Step 1 : One line LAMP setup on linux -
-
sudo apt-get install lamp-server^
Step 2 : Setup phpMyadmin to manage your mysql databases -
-
sudo apt-get install phpmyadmin
Step 3 : Setup xdebug and integrate with php5 installation -
-
sudo apt-get install php5-xdebug
Step 4 : Setup cURL -
-
sudo apt-get install php5-curl
After the above command finishes installing curl do the following -
-
cd /etc/php5/conf.d/
-
sudo gedit xdebug.ini
After opening the file in gedit, add the following lines at the end of the file then save and close it.
-
xdebug.remote_enable=On
-
xdebug.remote_host="localhost"
-
xdebug.remote_port=9000
-
xdebug.remote_handler="dbgp"
The following step is helpful for those who later want to integrate andorid SDK, because only Sun JDK is supported when running the android SDK app, is handy if you use it.
Step 5 : Setup sun -
-
sudo apt-get install sun-java6
Step 6 : Enable Rewrite Module for PHP -
-
a2enmod rewrite
The above will do a smooth install of a functioning LAMP server on the system
, comments and queries are always welcomed.
thanks,
faisal ahmed
web application developer
web: http://www.faisalbd.com/
email: thephpx(at)gmail(dot)com