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