Install LAMP – Apache, MySQL & PHP on Ubuntu 11.10
2013-01-13 20:46
831 查看
copy from:
http://blog.sudobits.com/2011/10/28/how-to-install-lamp-apache-mysql-php-on-ubuntu-11-10/
Setup LAMP in Ubuntu 11.10
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 address
Execute the command -
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.
Then restart the Apache server to load php modules -
To test whether the PHP 5 has been successfully installed or not, create a file phpinfo.php and copy the following content (to the file) -
and put the file in root web directory (/var/www). Then open the address
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.
When the installation is complete, move on to
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.
http://blog.sudobits.com/2011/10/28/how-to-install-lamp-apache-mysql-php-on-ubuntu-11-10/
Setup LAMP in Ubuntu 11.10
step 1. Installing Apache
Open terminal (press Ctrl+Alt+t) and execute the command -
sudo apt-get install apache2
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 address
http://localhostin the browser address bar and you will get a default apache page like this -
step 2. Installing MySQL
Execute the command -sudo apt-get install mysql-server
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.
step 3. Installing PHP
Execute the command -sudo apt-get install php5 libapache2-mod-php5 php5-mysql
Then restart the Apache server to load php modules -
sudo /etc/init.d/apache2 restart
To test whether the PHP 5 has been successfully installed or not, create a file phpinfo.php and copy the following content (to the file) -
<?php print_r (phpinfo()); ?>
and put the file in root web directory (/var/www). Then open the address
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 phpmyadmin
When the installation is complete, move on to
http://localhost/phpmyadminand 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.
相关文章推荐
- How To Install LAMP (Linux, Apache, MySQL, PHP) On Ubuntu 11.04/11.10/12.04
- How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu 14.04
- How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu 16.04
- How to install Apache, PHP 7.1 and MySQL on CentOS 7.3 (LAMP)
- ->ubuntu的lamp(apache+php+mysql+phpmyadmin)环境配置过程:
- Install Apache, PHP And MySQL On CentOS 7 (LAMP)
- Install Apache, PHP And MySQL On CentOS 7 (LAMP)
- How to install and configure Apache, PHP, MySql and phpMyadmin on ubuntu
- Install Apache, PHP And MySQL On CentOS 7 (LAMP)
- How to Install Linux, Apache, MySQL, PHP (LAMP) stack on CentOS 6
- How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Debian
- Install PHP 7, Apache, MySQL 5.6 on CentOS / RHEL 7.1 & 6.7 + Wordpress
- How to install and configure Apache, PHP, MySql and phpMyadmin on ubuntu
- How to Install LAMP (Apache 2.4, MySQL 5.6, and PHP 5.4) on CentOS/RHEL 7
- How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Debian
- Install Apache 2.2.15, MySQL 5.5.34 & PHP 5.5.4 on RHEL/CentOS 6.4/5.9 & Fedora 19-12
- How to Install Linux, Apache, MySQL, PHP (LAMP) stack on CentOS 6 【Reliable】
- Install Apache 2.2.15, MySQL 5.5.34 & PHP 5.5.4 on RHEL/CentOS 6.4/5.9 & Fedora 19-12 [转]
- Install Apache/PHP/MySQL on Mac Snow Leopard
- 安装Apache,MySql,PHP on Ubuntu 备忘