Ubuntu 12 load zlib extension for PHP

Source: Internet
Author: User
Ubuntu 12 load zlib extension for PHP
Today compiled a half-day PHP, installed after the discovery of less zlib extension, had to find information, in this article found
Http://www.ansen.org/add-extension-library-for-php.html
[Email protected] zlib]# pwd/root/lnmp/php-5.3.0/ext/zlib  #先进入到php的源代码目录 [[email protected] zlib] #mv config0.m4 Config.m4[[email protected] zlib]#/usr/local/php/bin/phpize #/usr/local/php to start installing PHP directory [[email protected] zlib]#./ Configure--with-php-config=/usr/local/php/bin/php-config[[email protected] zlib] #make [[email protected] zlib]# CP Modules/zlib.so/usr/local/php5/lib/php/extension/does not have the extension directory, it needs to be created manually, the directory name can be customized, in the php.ini configuration file configuration is good [[email Protected] zlib] #vi/usr/local/php5/lib/php.ini add extension=zlib.so also need to point php.ini to Extension_dir in the/usr/local/php/file lib/php/extension/note here the last/not less, and then restart the nginx can be


In addition today by Apt-get install Mysql-server installed after the establishment of a user
Grant all privileges the mycms.* to joolma@ '% ' identified by ' 123456 '; flush privileges;

Can't get through the command mysql-h localhost-u joolma-p connected to the database, the Internet for half a day, and later found that a command is needed
Grant all privileges the mysql.* to joolma@ ' localhost ' identified by ' 123456 ';
Authorized on the localhost, I remember before in Windows is the previous command can be done, to Linux under the need for two
  • Related Article

    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.