Mediawiki update to 1.24
- #yum update
- #service iptables stop
- #chkconfig iptables off
- #disable selinux
- #yum install wget gcc gcc-c++ openssl openssl-devel autoconf freetype freetype-devel gd harfbuzz libpng libpng-devel libxml2 libxml2-devel bzip2-devel curl-devel pam-devel libjpeg-devel libc-client libc-client-devel postgresql-devel libxslt-devel openldap-devel libXpm-devel db4-devel
- Install apr-1.5.2.tar.gz
- #./configure --prefix=/usr/local/apr
- Install apr-util-1.5.4.tar.gz
- #./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
- Install pcre-8.37.tar.gz
- #./configure --prefix=/usr/local/pcre --with-apr=/usr/local/apr/ --with-util=/usr/local/apr-util/
- Install zlib-1.2.7.tar.gz
- #./configure
- Install httpd-2.4.12.tar.gz
- #./configure --prefix=/usr/local/apache --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr-util/ --with-pcre=/usr/local/pcre/ --enable-modules=most --enable-mods-shared=most --enable-ssl --enable-so
- #rm /etc/rc.d/init.d/httpd
- # ln -s /usr/local/apache/bin/apachectl /etc/rc.d/init.d/httpd
- #ln –s /usr/local/apche /etc/httpd
- #vim /etc/rc.d/init.d/httpd
- # chkconfig: 2345 85 15
- # description: Activates/Deactivates Apache Web Server
#chkconfig --add httpd - tar xvf MySQL-5.6.26-1.el6.x86_64.rpm-bundle.tar
- rpm -ivh MySQL-server-5.6.26-1.el6.x86_64.rpm
- rpm -e --nodeps Delete old Mysql ,Install new
mysql - rpm -ivh MySQL-devel-5.6.26-1.el6.x86_64.rpm
- rpm -ivh MySQL-client-5.6.26-1.el6.x86_64.rpm
- Install jpegsrc.v9a.tar.gz
- #./configure --prefix=/usr/local/jpeg
- Install libmcrypt-2.5.8
- #./configure --prefix=/usr/local/libmcrypt
- Install freetype-2.6.tar.gz
- #./configure --prefix=/usrlocal/freetype
- ln -s
/usr/lib64/libc-client.so /usr/lib/libc-client.so - Install php5.6.11.tar.gz
- ./configure
--prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs
--with-pdo-pgsql --with-zlib-dir --with-freetype-dir=/usr/local/freetype/
--with-pcre-dir=/usr/local/pcre/ --enable-mbstring --with-libxml-dir
--enable-soap --enable-calendar --with-curl
--with-mcrypt=/usr/local/libmcrypt
--with-gd --with-pgsql --disable-rpath --enable-inline-optimization
--with-bz2 --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm
--enable-pcntl --enable-mbregex --enable-exif --enable-bcmath --with-mhash --with-pcre-regex --with-mysql
--with-pdo-mysql --with-mysqli --with-jpeg-dir=/usr --with-png-dir=/usr
--enable-gd-native-ttf --with-openssl --enable-ftp --with-imap-ssl
--with-kerberos --with-gettext --with-xmlrpc --with-xsl --enable-opcache=no
--enable-fpm --with-fpm-user=www --with-fpm-group=www --disable-fileinfo
--with-imap=/usr/local/php-imap - [[email protected]
php-5.6.11]# cp php.ini- - php.ini-development php.ini-production
- [[email protected]
php-5.6.11]# cp php.ini-production /etc/php.ini - #vim /etc/httpd/conf/httpd.conf
- AddType
application/x-httpd-php .php - AddType
application/x-httpd-php .html - AddType
application/x-httpd-php .fuck
LoadModule php5_module modules/libphp5.so
- #service mysql start
- #mysql –uroot –p
- #Enter password: 123456 Setting pwd
- #mysql –uroot –p
- If error:
- error: ‘Access
denied for user ‘root‘@‘localhost‘ (using password: YES)‘ - #service mysql stop
- #mysqld_safe --skip-grant-tables &
- #mysql -uroot –p
- >use mysql;
- > update user set
password=PASSWORD("123456")where user="root"; - > flush privileges;
- > quit
- #service mysql
restart - #mysql –u root
–p - #Enterpassword:
- MySql5.6
Error:You must SET PASSWORD before executing this statement解决 - mysql> SET PASSWORD = PASSWORD(‘123456‘);
- #use mysql
- #mysql>GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘WITH GRANT
OPTION ; - >flush
privileges; - >exit
- # chkconfig httpd on
- # chkconfig mysql on
- Upload newwiki
to /usr/local/apache/htdoc/ - #mysql –u root –p
- Enter paaword:
- #create database wiki;
- #use wiki
- #source /opt/ wiki_20150803.sql;
- >quit
- ##copy below
directory all file to new wiki same directory - wiki/LocalSettings.php
- wiki/extensions/*
- wiki/images/*
- Default cp command canot copy ,Use /bin/cp –fr
- Browse open http://localhost/wiki/ start update
- 解决centos 7 imap依赖包
#wget ftp://ftp.cac.washington.edu/imap/imap-2007f.tar.gz
#tar -zxf imap-2007f.tar.gz
#cd imap-2007f
#make lr5 PASSWDTYPE=std SSLTYPE=unix.nopwd EXTRACFLAGS=-fPIC IP=4
#rm -rf /usr/local/imap-2007f/
#mkdir –p /usr/local/imap-2007f/
#mkdir –p /usr/local/imap-2007f/include/
#mkdir /usr/local/imap-2007f/lib/
#cp c-client/*.h /usr/local/imap-2007f/include/
#cp c-client/*.c /usr/local/imap-2007f/lib/
#cp c-client/c-client.a /usr/local/imap-2007f/lib/libc-client.a
备注:在 64 位下编译时 make 参数需要带 EXTRACFLAGS=-fPIC ,在 32 位下则不需要。
同时,在 CentOS 7 下编译 PHP 的 imap 扩展时,添加如下参数:--with-imap=/usr/local/imap-2007f
--with-imap-ssl
在 CentOS 6 下编译时,由于已经安装了依赖包 libc-client-devel ,所以参数如下: 代码如下 复制代码
--with-imap
--with-imap-ssl
--with-kerberos