Ubuntu12 loaded zlib extensions for php. after being installed, I found that zlib extensions were missing and I had to find more information. in this article, I found ubuntu 12 loaded zlib extensions 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.