Ubuntu12 loads zlib extensions for php

Source: Internet
Author: User
Pipeline [root @ Ansenzlib] # pwdrootlnmpphp-5.3.0extzli ubuntu 12 load zlib extension for php
I compiled php for half a day today. after installing it, I found that zlib extensions were missing, so I had to find more information. I found it in this article.
Http://www.ansen.org/add-extension-library-for-php.html
[Root @ Ansen zlib] # pwd/root/lnmp/php-5.3.0/ext/zlib # advanced to the php source code directory [root @ Ansen zlib] # mv config0.m4 config. m4 [root @ Ansen zlib] #/usr/local/php/bin/phpize #/usr/local/php is the directory for starting to install php [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/The extension directory does not exist and needs to be created manually. the directory name can be customized in php. configure the ini configuration file. [root @ Ansen zlib] # vi/usr/local/php5/lib/php. add extension = zlib. so also needs to be in php. in the INI file, point extension_dir to/usr/local/php/lib/php/extension/. Note that the final/should not be less, and restart nginx.


In addition, after installing mysql-server through apt-get install today, create a user
grant all privileges on mycms.* to joolma@'%' identified by '123456';flush privileges;

I couldn't connect to the database by running the mysql-h localhost-u joolma-p command. after searching for the database online for half a day, I found that I needed another command.
Grant all privileges on mysql. * to joolma @ 'localhost' identified by '123 ';
Grant permissions on localhost. I remember that in windows, the previous command can be done. in linux, two commands are required.

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.