标签:follow ODB open -o php-imap 数据库 down pass net
yum install epel-releaseyum -y install --enablerepo=remi --enablerepo=remi-php71 gcc gcc-c++ glibc-devel glibc-headers autoconf automake bzip2-devel zlib-devel ncurses-devel libjpeg-devel libpng-devel libtiff-devel freetype-devel pam-devel openssl-devel libXpm libX11 libxml2-devel gettext-devel pcre-devel php php-fpm php-devel php-gd php-pecl-zip php-mysql php-devel php-pear php-imap php-ldap php-odbc php-xml php-xmlrpc php-imap php-ldap php-soap perl mod_perl perl-XML-Simple perl-Compress-Zlib perl-DBI perl-DBD-MySQL perl-Net-IP perl-Apache-DBI perl-SOAP-Lite perl-XML-Entities perl-ModPerl-MM perl-Apache2-SOAP httpd mariadb-server mariadb
yum remove mariadb*
yum list |grep mariadb
cd /etc/yum.repos.d/
vim mariadb.repo
[mariadb]
name = MariaDB
baseurl = http://mirrors.ustc.edu.cn/mariadb/yum/10.2/centos7-amd64
gpgkey=https://mirrors.ustc.edu.cn/mariadb/yum/RPM-GPG-KEY-MariaDB
gpgcheck=1
yum -y install --enablerepo=remi --enablerepo=remi-php71 gcc gcc-c++ glibc-devel glibc-headers autoconf automake bzip2-devel zlib-devel ncurses-devel libjpeg-devel libpng-devel libtiff-devel freetype-devel pam-devel openssl-devel libXpm libX11 libxml2-devel gettext-devel pcre-devel php php-fpm php-devel php-gd php-pecl-zip php-mysql php-devel php-pear php-imap php-ldap php-odbc php-xml php-xmlrpc php-imap php-ldap php-soap perl mod_perl perl-XML-Simple perl-Compress-Zlib perl-DBI perl-DBD-MySQL perl-Net-IP perl-Apache-DBI perl-SOAP-Lite perl-XML-Entities perl-ModPerl-MM perl-Apache2-SOAP httpd mariadb-server mariadb
wget https://github.com/glpi-project/glpi/releases/download/9.3.0/glpi-9.3.tgz
tar -zxvf glpi-9.3.tgz -C /var/www/html
chown -R apache:apache /var/www/html
chkconfig --level 2345 httpd on
systemctl restart httpd.service
systemctl restart httpd.service
systemctl start mysql
mysql
update mysql.user set authentication_string=password("bjhl@1234") where user="root";
create database glpi;
yum list |grep mbst
yum install php71-php-mbstring.x86_64
find / -name ‘mbst‘
vim /etc/php.ini
extension=/opt/remi/php71/root/usr/lib64/php/modules/mbstring.so
systemctl restart httpd.service
设置数据库远程访问
mysql -u root -p
use mysql;
update user set host = ‘%‘ where user = ‘root‘;
select host, user from user;
flush privileges;
设置PHP时区
启动c
标签:follow ODB open -o php-imap 数据库 down pass net
原文地址:http://blog.51cto.com/11258494/2161667