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/n] y  设置Mysql的root密码

New password: 

Re-enter new password: 

Remove anonymous users? [Y/n] y  删除匿名用户

Disallow root login remotely? [Y/n] y  禁止远程root登录

Remove test database and access to it? [Y/n] y 删除Mysql中测试数据库test

Reload privilege tables now? [Y/n] y  重新加载数据表

#mysql -u root -p


#vim /var/www/html/index.php

phpinfo();

?>

直接火狐测试:127.0.0.1

LAMP搭建UCenter_第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/

wKioL1bljqOz6VYcAAAkh7CZ_k4324.png

提示错误:

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/

LAMP搭建UCenter_第2张图片


提示修改php.ini中的short_open_tag 为 on

#vim /etc/php.ini

short_open_tag = On  229行

改完之后就按照提示安装即可。

域名访问:

更改:vim /etc/httpd/conf/httpd.conf 最后一行和  NameVirtualHost *:80(需要开启)

LAMP搭建UCenter_第3张图片

LAMP搭建UCenter_第4张图片