Intlextension (PHPintl is an international extension and a package for the ICU database .) Sudoapt-getinstallphp5-intlsudoserviceapache2restartPDOSQLiteextensionsudoapt-getinstallphp5-sqlitesudoserviceapache2restartPDOPostg
Intl extension (PHP intl is an international extension and a package for the ICU database .)
Sudo apt-get install php5-intl
Sudo service apache2 restart
PDO SQLite extension
Sudo apt-get install php5-sqlite
Sudo service apache2 restart
PDO PostgreSQL extension
Sudo apt-get install php5-pgsql
Service apache2 restart
Memcache
Memcache is divided into two parts: Memcache server and client. The Memcache server runs as a Service. The creation, storage, and deletion of all data caches are actually completed here. The client here refers to the extensions that PHP can call.
Sudo apt-get install memcached
After installing the Memcache server, we need to start the service:
Memcached-d-m 128-p 11211-u root
Here we need to describe the memcached service startup parameters:
-P listening port
-L connected IP address. The default value is local
-D start: start the memcached service.
-D restart: restart the memcached service.
-D stop | shutdown the running memcached Service
-D install the memcached Service
-D uninstall memcached Service
-U runs as the identity (only valid when running as root)
-MB maximum memory usage, in MB. The default value is 64 MB.
-An error is returned when M memory is used up, instead of deleting items.
-C: Maximum number of simultaneous connections. The default value is 1024.
-F block size growth factor. The default value is 1.25-n. The minimum allocation space is 48 for key + value + flags.
-H show help 2) install the Memcache Client
Memcache extension
Sudo apt-get install php5-memcache
Test:
$ Mem = new Memcache;
$ Mem-> connect ("127.0.0.1", 11211 );
$ Mem-> set ('key', 'This is a memcached test! ', 0, 60 );
$ Val = $ mem-> get ('key ');
Echo $ val;
APC extension
Sudo apt-get install php-apc
Will prompt to install php5-apcu php-apc directly y
ImageMagick PHP extension
Sudo apt-get install imagemagick libmagickwand-dev
Sudo pecl install imagick
Sudo echo "extension = imagick. so">/etc/php5/apache2/php. ini
Sudo/etc/init. d/apache2 restart
Problem http://www.linuxidc.com/Linux/2016-03/128949.htm that using Pjax in Yii2 causes Yii2 inline Script Loading failure
Yii2 implement password change function http://www.linuxidc.com/Linux/2015-07/120137.htm
Yii User Login Mechanism http://www.linuxidc.com/Linux/2015-01/111602.htm
Introduce js and css file http://www.linuxidc.com/Linux/2015-01/111603.htm in Yii
Yii incomplete solution http://www.linuxidc.com/Linux/2015-01/111606.htm
Yii CGridView basic use http://www.linuxidc.com/Linux/2015-01/111607.htm
Implementation Scheme of Yii framework distributed cache http://www.linuxidc.com/Linux/2015-02/113828.htm
Yii details: Click here
Yii: Click here
This article permanently updates the link address: Http://www.linuxidc.com/Linux/2016-03/129347.htm