• Mediawiki update to 1.24


    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. 解决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

     

     

    Growing old is mandatory, growing up is optional .
  • 相关阅读:
    crash reporting system for Windows applications
    1
    qt 试用 (3)配置编译源代码及调试
    kd tree & ray tracing
    new
    KMP算法中关于next数组的探究
    teamviewer vs echovnc
    NAT之stun确定nat类型
    Wireshark
    GNU httptunnel,当SSH被block时的选择
  • 原文地址:https://www.cnblogs.com/gyming/p/4730883.html
Copyright © 2020-2023  润新知