Run some extensions of the YII2 framework in Ubuntu. Ubuntu tutorial

Source: Internet
Author: User
Tags apc imagemagick intl
Run some extensions of the YII2 framework in Ubuntu, ubuntuyii2. Run some extensions of the YII2 framework in Ubuntu. ubuntuyii2Intlextension (PHPintl is an international extension and is a package of the ICU Library .) Some extensions for running the YII2 framework in sudoapt-getinstallphp5-intlsudoser Ubuntu environment, ubuntuyii2

Intl extension (PHP intl is an international extension and a package for the ICU database .)

sudo apt-get install php5-intl

sudo service apache2 restartPDO SQLite extensionsudo apt-get install php5-sqlite sudo service apache2 restartPDO PostgreSQL extensionsudo apt-get install php5-pgsqlservice apache2 restartMemcache

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.



Sudoapt-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
-Dstart starts the memcached service.
-Drestart: Restart the memcached service.
-Dstop | shutdown: shut down the running memcached service.
-Dinstall install the memcached service
-Duninstall uninstall the 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 extensionsudo 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 extensionsudo apt-get install php-apcWill prompt installationphp5-apcu php-apc DirectyImageMagick PHP extension sudo apt-get install imagemagick libmagickwand-devsudo pecl install imagicksudo echo "extension=imagick.so" >> /etc/php5/apache2/php.inisudo /etc/init.d/apache2 restart

Some extensions that run the YII2 framework in the http://www.bkjia.com/PHPjc/1110973.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/1110973.htmlTechArticleUbuntu environment, ubuntuyii2 Intl extension (PHP intl is an international extension and is a package for the ICU Library. ) Sudo apt-get install php5-intl sudo ser...

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.