bojanpejic.com
Scrap Book About Web – Programming – Development – Places, and more 8-)
Scrap Book About Web – Programming – Development – Places, and more 8-)
Dec 17th
This post represents a small guide of how to setup your LAMP (Linux-Apache-MySQL-PHP) under Kubuntu (this works also for Ubuntu).
Usually LAMP tutorials guide you to install one by one all the applications, that looks something like this:
sudo apt-get install apache2 sudo apt-get install php5 sudo apt-get install mysql-server
There is one more easy solution, and the only difference is that it installs all + some other packages for LAMP.
sudo apt-get install lamp-server^
When installation of new packages finishes you have you own LAMP setup! Test it entering http://localhost in your browser it should say It works!
For adding PhpMyAdmin execute the following command in console:
sudo apt-get install phpmyadmin
It is possible when you type in your browser http://localhost/phpmyadmin/ that phpmyadmin don’t runs. Then you have to create a link in your www directory:
sudo ln -s /usr/share/phpmyadmin /var/www/phpmyadmin
After doing this http://localhost/phpmyadmin/ should work now!
To have permissions to your www directory do following:
sudo chown username:username /var/www
Enable Apache mod_rewrite module and restart Apache for taking effects:
sudo a2enmod rewrite sudo /etc/init.d/apache2 restart
You can enable or disable some other modules like this.
Now you have your LAMP up and the work can start :)