How to install a LAMP stack on Ubuntu Gutsy Gibbon (7.10)
- 3 Comment
Google Query: install lamp stack on ubuntu gutsy gibbon
Since I run a couple of Wordpress blogs, I like to mirror the setup of the blogs on my home desktop. In the past, I just used XAMPP for this. However, it has some quirks of its own because the apache, mysql, and php files are not where the system expects them to be.
Recently, I did a fresh install of Ubuntu Gutsy Gibbon (7.10) so I decided to install the LAMP (Linux, Apache, MySQL, PHP) stack the without XAMPP. Thanks to the Ubuntu Documentation Site, I found my answer after a quick Google search. The details are summarized below.
-Install Apache2 using the following command at the Terminal:
sudo apt-get install apache2
I did get the following error: “apache2: Could not determine the server’s fully qualified domain name, using 127.0.0.1″
So, I followed the directions to add the line “ServerName localhost” to my Apache configuration. The steps are below.
gksudo gedit /etc/apache2/httpd.conf
Add the following to this file and save it.
-Install PHP 5 using the following command at the Terminal.
sudo apt-get install php5
-Install MySQL with PHP5 using the following command at the Terminal.
sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql
If you need help creating a database from the MySQL command-line please take a look at “How to create a MySQL database from the command-line client.”
No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.