Howto Install LAMP server in Jaunty
Sponsored Link
We have already discussed howto install LAMP server using the base installation.If you want to install separately use this procedure.
Apache2 installation
Install apache2 using the following command
sudo apt-get install apache2
to check that Apache has been installed without problems, go to your browser and type
http://localhost
or from remove machine
http://serveripaddress
Note:- You can find your server ip address using ifconfig command
if everything is correct you will see the message
It works
PHP5 Installation
Install php5 using the following command
sudo apt-get install php5 libapache2-mod-php5
restart apache2 using the following command
sudo /etc/init.d/apache2 restart
MySql Installation
To install MySql type the command
sudo apt-get install mysql-server
During the installation you will get the screen to set root password for MySql, enter your password and retype it
Phpmyadmin
phpMyAdmin is a free software tool written in PHP intended to handle the administration of MySQL over the World Wide Web. phpMyAdmin supports a wide range of operations with MySQL. The most frequently used operations are supported by the user interface (managing databases, tables, fields, relations, indexes, users, permissions, etc), while you still have the ability to directly execute any SQL statement.
Install phpmyadmin in ubuntu
sudo apt-get install phpmyadmin
During the installation a blue screen will appear asking you which server you want to use apache, apache2 …. choose then apache2 and click ok
Now Point your browser to: http://serverip/phpmyadmin
Nice Guide, i tried with another one but mysql “failed” installing. Now i just have to learn how program in php. jeje
chepe263
$ sudo tasksel install lamp-server
Sencillo pero suficiente, sólo faltaría phpMyAdmin
Personally, I would use XAMPP (see http://www.apachefriends.org/en/xampp.html) as it is entirely self contained in /opt/lampp and if you do not want it any more you can just delete the dir /opt/lampp and it is gone … no spread out files and no dependency issues.
I even use in corporate use
Try also “sudo tasksel install lamp-server”.
This is what the Ubuntu Server install CD uses. It should install and configure the stack automagically.
Nice guide. I’ve been trying to get mysql to work under Jaunty for an hour or so, and it kept “failing” to install…
Removed everything, followed this guide, and it worked. Thanks a lot!
Hi,
There is a ‘/’ missing in ‘sudo etc/init.d/apache2 restart’, it should be ‘sudo /etc/init.d/apache2 restart’
Mike
Thanks for your reply.We have updated the main article.
Windows: 4 hours configuring php, mysql, apache, phpmyadmin config files
Linux: 10 minutes apt-get install
Gotta love it. Thanks for this great guide.
Just use command: sudo apt-get install lamp-server^ (dont forget to include the carrot)
I absolutely new to Linux and rented a Ubuntu Jaunty Root-Server
All the steps work fine with no error messages, until I´m pointing my browser to: http://serverip/phpmyadmin
Of course I entered my server IP where it says serverip.
My errormessage is this:
Not Found
The requested URL /phpmyadmin was not found on this server.
Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.2 with Suhosin-Patch Server at X.X.X.X Port 80
Any Idea what to do?
Just use command: sudo apt-get install lamp-server^ (dont forget to include the carrot)
Linux: 10 minutes apt-get install
Gotta love it. Thanks for this great guide.
ok i have read aall the comments and the article but its still not working terminal keeps saying “could not find task lamp-server” i really need help.
The good thing is using apt-get is easy.