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