step 1. Installing Apache

Open terminal (press Ctrl+Alt+t) and execute the command -
The above command will install some default modules, packages and libraries but you later install the ones you need. When installation is completed, type the addresssudo apt-get install apache2
http://localhost
in the browser address bar and you will get a default apache page like this -
step 2. Installing MySQL
and enter the root password during installation procedure. I’ve already covered a post in detail about how to install MySQL on Ubuntu 11.10.sudo apt-get install mysql-server
step 3. Installing PHP
Execute the command -Then restart the Apache server to load php modules -sudo apt-get install php5 libapache2-mod-php5 php5-mysql
sudo /etc/init.d/apache2 restartTo test whether the PHP 5 has been successfully installed or not, create a file phpinfo.php and copy the
following content (to the file) -

That’s All.. Linux (Ubuntu is itself a Linux based OS), Apache, MySQL and PHP i.e all the components of LAMP has been installed successfully.
To manage MySQL database from a GUI, You may like to install phpMyAdmin – The MySQL web administration tool, a great application for managing – creating and maintaining MySQL database.
Want to learn web server administration (with LAMP) on Ubuntu Server ?
Having apache, MySQL, PHP installed locally on your system is good for learning about the server administration and other cool/great stuffs related to Linux but VPS is very cheap these days so you may want to try Ubuntu (with Apache or other web server) on a VPS for much better (and real) experience – I’ve been using Linode VPS @ $19.95/month (512 MB RAM, 20 GB space and 200GB bandwidth) for a while, and I am loving it.
Sumber : http://blog.sudobits.com/2011/10/28/how-to-install-lamp-apache-mysql-php-on-ubuntu-11-10/
and put the file in root web directory (/var/www). Then open the address<?php print_r (phpinfo()); ?>
http://localhost/phpinfo.php
, then it should display the php configuration details like this -
That’s All.. Linux (Ubuntu is itself a Linux based OS), Apache, MySQL and PHP i.e all the components of LAMP has been installed successfully.
To manage MySQL database from a GUI, You may like to install phpMyAdmin – The MySQL web administration tool, a great application for managing – creating and maintaining MySQL database.
How to install phpMyAdmin on Ubuntu 11.10 ?
just execute the command -sudo apt-get install phpmyadminWhen the installation is complete, move on to
http://localhost/phpmyadmin
and login (using the MySQL login username(default is ‘root’) and the password (you entered during installation)) to start using it.Want to learn web server administration (with LAMP) on Ubuntu Server ?
Having apache, MySQL, PHP installed locally on your system is good for learning about the server administration and other cool/great stuffs related to Linux but VPS is very cheap these days so you may want to try Ubuntu (with Apache or other web server) on a VPS for much better (and real) experience – I’ve been using Linode VPS @ $19.95/month (512 MB RAM, 20 GB space and 200GB bandwidth) for a while, and I am loving it.
Sumber : http://blog.sudobits.com/2011/10/28/how-to-install-lamp-apache-mysql-php-on-ubuntu-11-10/
Artikel Terkait di Bawah posting
ubuntu
- Mempercepat Internet Ubuntu
- Install kernel 3.1 di ubuntu 11.10 Oneiric Ocelot
- Remaster kubuntu 11.10
- IGOS Nusantara 2011(vb2)
- Installasi XAMPP di Ubuntu 11.10
- Cara install Apache, MySQL, PHP dan PhpMyAdmin di ubuntu 11.10
- INSTALL TWITTER CLIENT APPLICATION IN UBUNTU 11.10
- OPINI ABOUT DISTRO LINUX SABILY 11.4
- File system security
- Fixing Skype Error in Ubuntu 11.10 Oneiric Ocelot
- Install Conky Metro UI Style Windows 8 for Ubuntu 11.10
- Install Mozilla Thunderbird unseats Evolution in Ubuntu 11.10
- how to Configure Additional Repositories
- new in ubuntu 11.10 oneiric
- GNOME Shell in Ubuntu 11.10
- Firefox 7 Beta Arrives in Ubuntu 11.10
- Growing and going strong LibreOffice in ububtu 11.10
- Compiz running on Ubuntu 11.10 (Oneiric)
- Installing Ubuntu 11.10 on the Eee PC 901
- Sushi File Previewer in Ubuntu 11.10 Unity
- How-to Change Boot Order (boot grub) in Ubuntu 11.04
- How-to Install Adobe Flash Player 11
- Unity personalization in ubuntu
0 comments:
Posting Komentar