码迷,mamicode.com
首页 > 其他好文 > 详细

Mediawiki update to 1.24

时间:2015-08-14 20:53:00      阅读:158      评论:0      收藏:0      [点我收藏+]

标签:

Mediawiki update to 1.24

  1. #yum update
  2. #service iptables stop
  3. #chkconfig iptables off
  4. #disable selinux
  5. #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
  6. Install apr-1.5.2.tar.gz
  7. #./configure --prefix=/usr/local/apr
  8. Install apr-util-1.5.4.tar.gz
  9. #./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
  10. Install pcre-8.37.tar.gz
  11. #./configure --prefix=/usr/local/pcre --with-apr=/usr/local/apr/ --with-util=/usr/local/apr-util/
  12. Install zlib-1.2.7.tar.gz
  13. #./configure
  14. Install httpd-2.4.12.tar.gz
  15. #./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
  16. #rm /etc/rc.d/init.d/httpd
  17. # ln -s /usr/local/apache/bin/apachectl /etc/rc.d/init.d/httpd
  18. #ln –s /usr/local/apche /etc/httpd
  19. #vim /etc/rc.d/init.d/httpd
  20. # chkconfig: 2345 85 15
  21. # description: Activates/Deactivates Apache Web Server
    #chkconfig --add httpd
  22. tar xvf MySQL-5.6.26-1.el6.x86_64.rpm-bundle.tar
  23. rpm -ivh MySQL-server-5.6.26-1.el6.x86_64.rpm
  24. rpm  -e --nodeps Delete old Mysql ,Install new mysql
  25. rpm -ivh MySQL-devel-5.6.26-1.el6.x86_64.rpm
  26. rpm -ivh MySQL-client-5.6.26-1.el6.x86_64.rpm
  27. Install jpegsrc.v9a.tar.gz
  28. #./configure  --prefix=/usr/local/jpeg
  29. Install libmcrypt-2.5.8
  30. #./configure  --prefix=/usr/local/libmcrypt
  31. Install freetype-2.6.tar.gz
  32. #./configure  --prefix=/usrlocal/freetype
  33. ln -s /usr/lib64/libc-client.so /usr/lib/libc-client.so
  34. Install php5.6.11.tar.gz
  35. ./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
  36. [root@wiki php-5.6.11]# cp php.ini-
  37. php.ini-development  php.ini-production  
  38. [root@wiki php-5.6.11]# cp php.ini-production /etc/php.ini
  39. #vim /etc/httpd/conf/httpd.conf
  40. AddType application/x-httpd-php .php
  41. AddType application/x-httpd-php .html
  42. AddType application/x-httpd-php .fuck

 

LoadModule php5_module        modules/libphp5.so

 

 

 

  1. #service mysql start
  2. #mysql –uroot –p
  3. #Enter password: 123456     Setting pwd
  4. #mysql –uroot –p
  5. If error:
  6. error: ‘Access denied for user ‘root‘@‘localhost‘ (using password: YES)‘
  7. #service mysql stop
  8. #mysqld_safe --skip-grant-tables &
  9. #mysql -uroot –p
  10. >use mysql;
  11. > update user set password=PASSWORD("123456")where user="root";
  12. > flush privileges; 
  13. > quit
  14. #service mysql restart
  15. #mysql –u root –p
  16. #Enterpassword:
  17. MySql5.6 Error:You must SET PASSWORD before executing this statement解决
  18. mysql>  SET PASSWORD = PASSWORD(‘123456‘);
  19. #use mysql
  20. #mysql>GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘WITH GRANT OPTION ;
  21. >flush privileges;
  22. >exit
  23. # chkconfig httpd on
  24. # chkconfig mysql on
  25. Upload newwiki to /usr/local/apache/htdoc/
  26. #mysql –u root –p
  27. Enter paaword:
  28. #create database wiki;
  29. #use wiki
  30. #source /opt/ wiki_20150803.sql;
  31. >quit
  32. ##copy below directory all file to new wiki same directory
  33.  
  34. wiki/LocalSettings.php
  35. wiki/extensions/*
  36. wiki/images/*
  37. Default  cp command canot copy ,Use /bin/cp –fr
  38. Browse open http://localhost/wiki/   start update
  39. 技术分享
  40. 解决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

 

 

 

Mediawiki update to 1.24

标签:

原文地址:http://www.cnblogs.com/gyming/p/4730883.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!