Setting up LAMP server on Ubuntu 12.04 LTS
As the first post of this site, I think this is the most appropriate topic. Lets go through installation process of LAMP(on Ubuntu 12.04), checking issue and then install phpmyadmin – the most popular database management script for MySql databases with Php.
On Ubuntu 12.04, its just a one line command-
sudo apt-get install lamp-server^
Setup process is easy to follow. You will be asked to set MySql username and password.
Some extra modules you may feel interest to install in your web server:
sudo apt-get install php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl php5-cgi
While openning apache [command: service apache2 start or service apache2 restart ], if you get error like this:
apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName
then open the terminal and type
sudo gedit /etc/apache2/httpd.conf
### By default httpd.conf file will be blank. Now, simply add the following line to the file.
### Save the file and exit from gEdit. Finally restart the server.
sudo /etc/init.d/apache2 restart
phpmyadmin is one of the most popular database manaegment script to handle MySql databases. To install phpmyadmin run this command on your terminal:
sudo apt-get install phpmyadmin
While installing phpmyadmin, configuring database connection option will pop up. It is wise for beginner to go through the steps to configure phpmyadmin with mysql.
If you install it on your local server, phpmyadmin link should be http://[ localhost OR serverName ]/phpmyadmin in most cases. If you found your phpmyadmin link is not working, then simply check /etc/apache2/apache2.conf file, check the ‘include’ lines and add this line after those:
All should be working fine. Let me know if not.