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
[Root@ansen zlib]# pwd/root/lnmp/php-5.3.0/ext/zlib  #先进入到php的源代码目录 [Root@ansen zlib] #mv config0.m4 config.m4[ Root@ansen zlib]#/usr/local/php/bin/phpize #/usr/local/php to start installing PHP directory [Root@ansen zlib]#./configure-- With-php-config=/usr/local/php/bin/php-config[root@ansen zlib] #make [Root@ansen zlib]# CP modules/zlib.so/usr/local /php5/lib/php/extension/does not have the extension directory, it needs to be established manually, the directory name can be customized, in the php.ini configuration file configuration is good [Root@ansen zlib] #vi/usr/local/php5/ Lib/php.ini add extension=zlib.so also need in php.ini file to point Extension_dir to/usr/local/php/lib/php/extension/note here last/not less, And then restart the nginx.


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
  • 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.