Linux + Apache + Mysql + Php = LAMP
Published December 28th, 2007 in LinuxMost linux users knew that it is not complete to run a webhost without Apache,Mysql and Php installed in it. The easiest way to setup LAMP is with Ubuntu. Although Ubuntu came with its own server edition, you can go with Desktop edition to get it done. Best thing if you’re planning on setting up Lamp on Desktop edition is you get a desktop and all that comes with it.
In every linux installation, the first thing I always do is setup apache, mysql, and php. Under Ubuntu, if you take advantage of the synaptic package manager, setting up your LAMP server has never before been more simple. OK let’s get it kicking, to get the most out of Ubuntu, first thing you want to do is update your repositories.
let do the magic keyword
sudo apt-get install update
Now to get Apache installed.
sudo apt-get install apache2
Php5 turn
sudo apt-get install mysql-server
sudo apt-get install libapache2-mod-auth-mysql
sudo apt-get install php5-mysql
sudo apt-get install phpmyadmin
Next edit php.ini to enable the extension
gksudo gedit /etc/php5/apache2/php.ini
extension=mysql.so
And that’s is all of it to get changes to effect you need to restart apache
$ sudo /etc/init.d/apache2 restart
that’s it, Now you get yourself a webserver running in Ubuntu.
0 Responses to “Linux + Apache + Mysql + Php = LAMP”
Please Wait
Leave a Reply