Chinaunix首页 | 论坛 | 博客
  • 博客访问: 196130
  • 博文数量: 51
  • 博客积分: 1435
  • 博客等级: 上尉
  • 技术积分: 590
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-05 18:33
文章分类

全部博文(51)

文章存档

2012年(17)

2011年(34)

分类: LINUX

2012-02-22 20:47:22

主要参考http://hi.baidu.com/sharonlhm/blog/item/f827bff5348cb73f730eec67.html
结合自己的安装配置过程得出此文。感谢原作者。
Step 1

打开终端,输入命令sudo apt-get install tasksel 安装tasksel软件包,输入root权限密码后即可完成安装。

Setp 2

输入命令 sudo tasksel install lamp-server , 即可完成LAMP的安装。通过命令sudo tasksel 可查看LAMP安装是否成功。需要指出的是,通过tasksel软件包不仅可以安装LAMP组件,还可以安装其他服务器组件,比如DNS服务器,Mail服务器,打印服务器等。

期间安装mysql需要输入passwd。

sudo /etc/init.d/apache2 restart

sudo gedit /var/www/info.php

phpinfo();

?>

显示出你的php配置页面

Step 3

通过命令sudo apt-get install phpmyadmin 安装MySQL管理工具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.


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. 


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

阅读(1629) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~