21312 发表于 2016-3-14 08:42:42

LAMP搭建UCenter

http://faq.comsenz.com/viewtopic/noviceguide/tab/prepare下载UConter包:UCenter_1.5.0_SC_UTF8

#yum install httpd mysql mysql-server php php-mysql -y#/etc/init.d/httpd start#/etc/init.d/mysqld start数据库清除test表:# /usr/bin/mysql_secure_installation
Enter current password for root (enter for none):直接回车
Set root password? y设置Mysql的root密码New password: Re-enter new password: Remove anonymous users? y删除匿名用户
Disallow root login remotely? y禁止远程root登录Remove test database and access to it? y 删除Mysql中测试数据库testReload privilege tables now? y重新加载数据表#mysql -u root -p
#vim /var/www/html/index.php<?phpphpinfo();?>直接火狐测试:127.0.0.1#yum install lrzsz -y
#rz 上传下载的UConter包
#unzip -d /zip/hhh UCenter_1.5.0_SC_UTF8.zip
#mv /zip/hhh/upload /var/www/html/hhh
在火狐中访问:http://127.0.01/hhh/install/提示错误:
You don't have permission to access /hhh/install/ on this server.没有权限访问错误403。

解决方法1:
#getenforce 查询selinux是否关闭
Enforcing(开启状态)
#setenforce 0 (临时关闭)
在火狐中访问:http://127.0.01/hhh/install/
提示修改php.ini中的short_open_tag 为 on
#vim /etc/php.ini
short_open_tag = On229行
改完之后就按照提示安装即可。
域名访问:
更改:vim /etc/httpd/conf/httpd.conf 最后一行和NameVirtualHost *:80(需要开启)


页: [1]
查看完整版本: LAMP搭建UCenter