Some extensions for running the YII2 framework in Ubuntu

Source: Internet
Author: User
Tags apc imagemagick intl

Some extensions for running the YII2 framework in Ubuntu

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

The problem of Yii2 inline Script Loading failure caused by Pjax in Yii2

Yii2 implements password Modification

Yii User Login Mechanism

Introduce js and css files in Yii

Incomplete Yii Solution

Yii CGridView basic usage

Yii framework distributed cache Implementation Scheme

Yii details: click here
Yii: click here

This article permanently updates the link address:

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.