UBUNTU 7.10 配置PHP5+Apache2+Mysql5+phpmyadmin
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'] = ''; //保存导出文件的目录
$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'] = ''; //保存导出文件的目录