PHP Dynamic Extension Module

Source: Internet
Author: User
Tags php error php error log php source code

PHP Dynamic Extension Module
  • /USR/LOCAL/PHP/BIN/PHP-M//View module
  • Install a Redis module below
    • cd/usr/local/src/
    • wget Https://codeload.github.com/phpredis/phpredis/zip/develop
    • MV Develop Phpredis-develop.zip
    • Unzip Phpredis-develop.zip
    • CD Phpredis-develop
    • /usr/local/php/bin/phpize//Generate Configure File
      [[email protected] phpredis-develop]#/usr/local/php7/bin/phpize configuring For:PHP Api Version:20160303zen D Module API No:20160303zend Extension API No:320160303cannot find autoconf. Please check your autoconf installation and THE$PHP_AUTOCONF environment variable. Then, rerun the this script. [[email protected] phpredis-develop]# yum install-y autoconf[[email protected] phpredis-develop]#/usr/  Local/php7/bin/phpize Configuring for:php API Version:20160303zend Module API No:20160303zend Extension API No:320160303[[email protected] phpredis-develop]# lsacinclude.m4 Configure Makefile.global Red         Is_cluster.caclocal.m4 configure.in missing Redis_cluster.harrays.markdown config.w32              mkdeb-apache2.sh Redis_commands.cautom4te.cache COPYING mkdeb.sh redis_commands.hbuild Crc16.h mkinstalldirs redis_session.ccluster_library.c CREdits package.xml redis_session.hcluster_library.h Debian php_redis.h rpmcluster.m Arkdown Debian.control readme.markdown run-tests.phpcommon.h install-sh redis_array.c SE Rialize.listconfig.guess issue_template.md redis_array.h testsconfig.h.in library.c Redis_arr AY_IMPL.CCONFIG.M4 library.h redis_array_impl.hconfig.sub ltmain.sh redis.c[[email&nbsp  ;p rotected] phpredis-develop]#
    • ./configure--with-php-config=/usr/local/php/bin/php-config
    • Make && Makeinstall
    • /usr/local/php7/bin/php-i |grep Extension_dir//View extension Module storage directory, we can customize the path in php.ini
    • Vim/usr/local/php7/etc/php.ini//Add a line configuration (can be placed on the last line of the file)
      Extension = redis.so
      ;extension=php_xsl.dllextension=redis.so
    • /usr/local/php7/bin/php-m |grep Redis
  • In the PHP source package does not have a third-party module package, but in the PHP source code package/ext/directory has a lot of extension modules, if the required extension module in this directory, can be installed directly without downloading
    [email protected] ~]# cd/usr/local/src/php-7.1.6/ext/[[email protected] ext]# lsbcmath FileInfo Libxml Pdo_firebird Session tidybz2 filter mbstring pdo_mysql shmop tokenizercalend AR ftp mcrypt pdo_oci simplexml wddxcom_dotnet gd mysqli pdo_odbc s Keleton xmlctype gettext mysqlnd pdo_pgsql SNMP xmlreadercurl GMP OC                 i8 pdo_sqlite soap Xmlrpcdate hash ODBC pgsql sockets XMLWRITERDBA Iconv opcache Phar SPL xsldom IMAP OpenSSL POSIX sq       Lite3 zipenchant interbase pcntl Pspell Standard Zlibexif Intl Pcre ReadLine Sysvmsgext_skel JSON PDO recode sysvsemext_skel_win32.php LDAP pdo_ Dblib Reflection SysVshm 
    Extended
  • Apache Rewrite tutorial (http://www.cnblogs.com/top5/archive/2009/08/12/1544098.html)
  • Apache Rewrite has a dead loop
  • PHP error Log level reference
  • PHP Open Short Tag
  • PHP.ini detailed

PHP Dynamic Extension Module

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.