判断是否安装:rpm -qa|grep apache/php/mysql
Yum –y installhttpd 默认web根目录为/var/www/html 启动:service httpd start 备注:Apache启动之后会提示错误:
正在启动 httpd:httpd:Could not reliably determine the server's fully qualif domain name, using ::1 forServerName
解决办法:
vi/etc/httpd/conf/httpd.conf #编辑
找到 #ServerName www.example.com:80
修改为 ServerNamelocalhost:80 ---------------------------------------------------------------------------------------------------------------- Yum –y install mysql mysql-server 配置文件位置:/etc/my.cnf 启动:service mysqld start 进入:mysql –uroot –p //默认密码为空 修改密码:mysqladmin –u root –p passwordnewpassword ---------------------------------------------------------------------------------------------------------------- yuminstall php php-cli php-fpm php-gd php-imap php-ldap php-mbstringphp-snmp php-xml php-mysql 安装完后须重启Apache service httpdrestart chkconfig httpd on #Apache设为开机启动 chkconfig mysqld on#mysql设为开机启动 下载bugfree文件夹到web根目录,并对其进行授权,然后在浏览器上浏览,若发现无BugFile文件,则需在web目录下新建一个并授权。 修改数据库密码:在bugfree/Include文件夹下的Config.ini.php找到$_CFG['UserDB']['Password']= '';中输入数据库的密码””。
|