UBUNTU 7.10 配置PHP5+Apache2+Mysql5+phpmyadmin

Mr Orange posted @ 2008年1月26日 07:37 in Linux with tags ubuntu mysql PHP5 Apache2 phpmyadmin , 960 阅读

1.安装 apache2+php5+mysql
sudo apt-get install apache2 php5-mysql libapache2-mod-php5 mysql-server

安装过程中MySQL会提示修改root密码

3.安装 phpmyadmin
sudo apt-get install phpmyadmin

4.配置 phpmyadmin
sudo gedit /etc/phpmyadmin/config.inc.php

/* Authentication type */
 $cfg['Servers'][$i]['auth_type'] = 'cookie'; //MySQL登录方式
/* Server parameters */
 $cfg['Servers'][$i]['host'] = 'localhost'; //MySQL地址
 $cfg['Servers'][$i]['connect_type'] = 'tcp'; //MySQL连接方式
 $cfg['Servers'][$i]['compress'] = true; //是否使用压缩协议(PHP版本须>= 4.3.0)
/* Select mysqli if your server has it */
 $cfg['Servers'][$i]['extension'] = 'mysql';
/* Optional: User for advanced features */
 $cfg['Servers'][$i]['controluser'] = 'your name'; //MySQL用户名
$cfg['Servers'][$i]['controlpass'] = 'your password'; //MySQL密码
/*
 * Directories for saving/loading files from server
 */

$cfg['UploadDir'] = ''; //保存导入文件的目录
$cfg['SaveDir'] = ''; //保存导出文件的目录

5.测试http://localhost/phpmyadmin

Avatar_small
Alyssa 说:
2022年12月18日 21:04

This post will deal with the details regarding how to configure PHP5, Apache2, MySQL5, and phpMyAdmin on Ubuntu 7.10. I have gone through board certified rheumatologist near me the steps shared here and all the details are explained very clearly here. Thank you so much for sharing the details over here. Keep sharing more updates on that.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter