分类: 系统运维
2012-07-17 10:56:40
1.安装验证mysql yum install mysql* 配置mysql 启动mysql服务 service mysqld start 进入mysql 开通初始化主机内部root访问 GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY 'some_pass' WITH GRANT OPTION 开通外部root访问(选作) GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'some_pass' WITH GRANT OPTION 设置mysql开机启动 chkconfig --level 2345 mysqld on 2.安装httpd(apache服务器) yum -y install httpd 安装httpd模块 yum -y install httpd-manual mod_ssl mod_perl mod_auth_mysql 3.安装php及相关模块 yum -y install php yum -y install php-mysql php-gd php-imap php-ldap php-odbc php-mbstring php-devel php-soap php-cli php-pdo yum -y install php-tidy php-xml php-xmlrpc php-pear yum -y install php-pecl-memcache php-eaccelerator 4.php测试页 存放在/var/www/html下 内容为: phpinfo(); ?> 5.安装phpMyAdmin 官方网站下载.tar.gz包 解压放置在/var/www/html下作为一个PHP典型项目。 重命名配置文件config.sample.inc.php为config.inc.php 修改参数 $cfg['blowfish_secret']="; /*添加短密码,必填*/ $cfg['Servers'][$i]['host']='localhost' $cfg['Servers'][$i]['controluser']='root'; $cfg['Servers'][$i]['controlpass']='pmapass' --- 感想:虽然yum安装方便,源代码编译安装依赖关系复杂 但也在考虑从官方源代码下载安装 |
linzhanghui2012-08-09 11:46:27
apache防火墙规则:
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT