Ubuntu 10.10 安装配置LAMP
2011-04-04 12:55
435 查看
Installing Apache MySQL, PHP and phpmyadmin on Ubuntu
10.10 Maverick Meerkat is far easier and less complicated than doing the same on Fedora
13, (my own experience).
Step 1:
You start by installing mysql
Specify
new password for the MySQl “root” user when prompted. Repeat it for a
second time and you would have MySQL server and client installed.
Step 2:
Next,
install
Apache2:
And you
get apache2 installed as well. To double check, point your browser to http://localhost, and you should see the Apache2 placeholder page like
this.
Step 3:
To install support for PHP, do the usual
To verify that everything installed correctly and php support is enabled, you need torestart apache
by doing this
Create a test php file called
info.php
, using a text editor of your choice (say gedit)
and paste the following content and save the file
Now open the following page http://localhost/info.php and you should see something like this
Step 4:
To
make MySQL, php and apache talk among themselves, you would have to
install php5-mysql, below I am listing some more useful packages that
you might want to install
sudo
apt-get install php5-mysql php5-curl php5-gd php5-idn 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-common
Now
refresh the info.php page that you have open in your browser and you
should be able to see the support for mysql if you search for it by
doing Ctrl+f, but before that don’t forget to restart apache again (sudo
/etc/init.d/apache2 restart)
Step 5:
Finally install phpmyadmin
It would
ask if you want to configure it automatically for apache or lightppd
choose apache (by pressing “spacebar” to display a star as shown below
and then use tab to navigate to Ok and press enter.www.linuxidc.com
It would be automatically configured, however it would ask if you want a database installed and configured, choose
yes
and press enter
On the next screen you would be asked to enter the MySQL root password, that you provided in first step
next it would ask you to enter a password to be used by phpmyadmin to register with thedatabase
(basically
it would create a user called “phpmyadmin” the password is for that,
most likely you won’t be needing this password ever. You can even choose
to assign a random password for it. www.linuxidc.com
Confirm that password on the
next screen. Once you have made your choices the installation would
finish and you should be able to access phpmyadmin by pointing your web
browser to http://localhost/phpmyadmin/
10.10 Maverick Meerkat is far easier and less complicated than doing the same on Fedora
13, (my own experience).
Step 1:
You start by installing mysql
sudo apt-get install mysql-client mysql-server
Specify
new password for the MySQl “root” user when prompted. Repeat it for a
second time and you would have MySQL server and client installed.
Step 2:
Next,
install
Apache2:
sudo apt-get install apache2
And you
get apache2 installed as well. To double check, point your browser to http://localhost, and you should see the Apache2 placeholder page like
this.
Step 3:
To install support for PHP, do the usual
sudo apt-get install php5 libapache2-mod-php5
To verify that everything installed correctly and php support is enabled, you need torestart apache
by doing this
sudo /etc/init.d/apache2 restart
Create a test php file called
info.php
, using a text editor of your choice (say gedit)
sudo gedit /var/www/info.php
and paste the following content and save the file
<?php phpinfo(); ?>
Now open the following page http://localhost/info.php and you should see something like this
Step 4:
To
make MySQL, php and apache talk among themselves, you would have to
install php5-mysql, below I am listing some more useful packages that
you might want to install
sudo
apt-get install php5-mysql php5-curl php5-gd php5-idn 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-common
Now
refresh the info.php page that you have open in your browser and you
should be able to see the support for mysql if you search for it by
doing Ctrl+f, but before that don’t forget to restart apache again (sudo
/etc/init.d/apache2 restart)
Step 5:
Finally install phpmyadmin
sudo apt-get install phpmyadmin
It would
ask if you want to configure it automatically for apache or lightppd
choose apache (by pressing “spacebar” to display a star as shown below
and then use tab to navigate to Ok and press enter.www.linuxidc.com
It would be automatically configured, however it would ask if you want a database installed and configured, choose
yes
and press enter
On the next screen you would be asked to enter the MySQL root password, that you provided in first step
next it would ask you to enter a password to be used by phpmyadmin to register with thedatabase
(basically
it would create a user called “phpmyadmin” the password is for that,
most likely you won’t be needing this password ever. You can even choose
to assign a random password for it. www.linuxidc.com
Confirm that password on the
next screen. Once you have made your choices the installation would
finish and you should be able to access phpmyadmin by pointing your web
browser to http://localhost/phpmyadmin/
相关文章推荐
- (转载)ubuntu 10.10 安装配置LAMP
- Ubuntu 10.10如何安装配置LAMP
- Ubuntu 10.10 安装配置LAMP(转)
- Ubuntu10.10上配置安装LAMP
- Ubuntu 10.10 JDK6 安装及配置
- Linux ubuntu lamp安装配置环境phpmyadmin
- ubuntu 环境 lamp 安装配置(增补版)
- Ubuntu 12.04下LAMP安装配置
- Ubuntu 10.10/11.10下安装与配置Squid代理软件
- Ubuntu LAMP安装配置 + 整合 JSP 全过程详解
- 安装ubuntu10.10后,如何配置一个Apache+MySQL+PHP环境
- ubuntu10.10-samba服务器安装设置(图形配置)
- Ubuntu 12.04下LAMP安装配置
- Ubuntu 10.10下安装配置SkyEye 1.3.1
- Ubuntu Server 10.10 安装配置 Ruby Rails3 passenger nginx MySQL
- Ubuntu Server 10.10下安装配置SVN
- Ubuntu下LAMP_服务器安装配置(Linux+Apache+Mysql+Perl/PHP/Python)
- Ubuntu 10.10 图形安装教程、网络设置、软件源、基本配置(超详细)
- Ubuntu 10.10 一条命令安装LAMP
- Ubuntu 10.10 图形安装教程、网络设置、软件源、基本配置(转)