Discover add chromecast extension, include the articles, news, trends, analysis and practical advice about add chromecast extension on alibabacloud.com
When I started compiling php, I forgot to add it by installing the extension library with Phpize.
Locate the source code directory for the currently running PHP version, such as php-5.2.12. Enter the Curl Extension Library directory
#cd/home/changyou/php-5.2.12/ext/curl
(Call the Phpize program to generate a compilation configuration file)
#/usr/local/web/php/bin
Add the PHP extension module mbstring in Linux. Environment php5.2.13, does not support mbstring extension if php source package in the usrlocalsrcphp-5.2.13php installation directory is usrlocalphp # cdusrlocalsrcphp-5.2.13extmbstring # rpm-qa | eg Environment php5.2.13, does not support mbstring extension
Assume that
PHP add mysqli Extension
Any PHP extension can be compiled separately in PHP source package installation here because phpMyAdmin need mysqli extension, compile the module installation, process and some issues are recorded as follows: PHP compilation installation path/usr/local/php5.6mysql compile installation path/usr
When configuring php5, mysql should be used as the database. many people think that if you use php. add the extension = php_mysql.dll; command in ini. I don't understand why extension = php_mysqli.dll is recommended in many articles.
When configuring php5, mysql should be used as the database. many people think that if you use php.
In the daily development, as the function of development becomes more and more complex. The requirements for the operating environment are constantly being updated and changed as demand changes. An online production system cannot initially satisfy all the operational dependencies, so it is more necessary to dynamically add dependencies. If your application is based on LANMP, then there is a good chance that one day you will need to
Generally, the extension library of php source code already has curl extensions, so there is no need to download them. You can directly compile the extension.
Generally, the extension library of php source code already has curl extensions, so there is no need to download them. You can directly compile the extension.
Teach you how to develop chrome extension 1: Developing chrome extenstion is actually very simple
Teach you how to develop chrome extension 2: Add behavior for HTML
How to Develop chrome extension 3: about local storage data
In the previous section, we have talked about the basic knowledge of chrome
don ' t want to send the immediately you can chooseoption "s" to save it. You can then email it to [emailprotected] later. Do you want to send this ReporT now? [Yns]: n[[emailprotected] pcntl]# make installinstalling gkfx extensions:/usr/local/php/lib/php/extensions/ no-debug-zts-20090626/Finally, modify the php.ini configuration file, add it on the last line, and then restart ApacheExtension=pcntl.soThird, some extensions can be added via the pecl c
In Linux, PHP has been compiled to add the so extension method. The key is phpize and config. m4. in LINUX, PHP has been compiled and how to add the so extension.
Sh:/usr/local/php5/bin/phpize
Principle: use phpize to find the corresponding extension folder in the compre
Objective:
PCNTL Introduction
PCNTL extensions can support multithreaded operations in PHP. (Non-UNIX class systems do not support this module)
Phpize Introduction
Phpize can be used to dynamically add extensions to PHP. For example, when compiling PHP, forget to add an extension, and then want to add the
-saslmakemakeinstall
Redis
Similarly, Redis already has PHP 7. we can get the project clone from github and manually switch to the PHP 7 branch:
gitclone https://github.com/phpredis/phpredis.gitcdphpredis/gitcheckoutphp7phpize./configuremakemakeinstall
Start extension
It is not enough to install the plug-in. we also need to edit the PHP configuration file to load the extension. vi/etc/php/7.0/fpm/php.
wget http://curl.haxx.se/download/curl-7.19.6.tar.gz
TAR-ZXVF curl-7.19.6.tar.gz
CD curl-7.19.6
./configure--prefix=/usr/local/curl
Make
Make install
Copy Code2, compile the build extension into the PHP source directory in the Ext directory, where the source code for each extension module, select the module you need, such as Curl module: cd/usr/webserver-soft/ph
Example of adding an extension library for PHP in Linux: adding an extension library for mbstring
1. go to the PHP source code directory (if there is no source code, run the command: # php-v to view the version number, and then download the source code from the PHP official website)
2. go to the FTP Extension Library Directory under PHPi source code:
# Cd [Y
/php is my php installation directory.
After the phpize command is executed, configure appears in the pdo_mysql directory.
Execute configuration
The code is as follows:
./Configure -- with-php-config =/usr/local/php/bin/php-config -- with-pdo-mysql =/usr/local/mysql/
Parameter description:
-- With-php-config =/usr/local/php/bin/php-config specifies the configuration during PHP installation-- With-pdo-mysql =/usr/local/mysql/specify the installation dire
PHP Add or upgrade extension steps:1), download the corresponding extension of the stable version of the source package2), enter into the extracted source package execution:sudo/usr/local/php/bin/phpize//corresponds to which PHP version to installsudo./configure-with-curl=/usr/local/curl/--enable-swoole--with-php-config=/usr/local/php/bin/php-configMake make ins
Php5.2.13 environment, does not support mbstring Extension
Assume that the PHP source code package is in the/usr/local/src/php-5.2.13
The PHP installation directory is/usr/local/PHP.
CopyCode The Code is as follows: # cd/usr/local/src/php-5.2.13/EXT/mbstring/
# Rpm-Qa | egrep "Autoconf | GCC": Check whether these components are installed. If these components are not installed, run the following statement. Otherwise, an error is reported.
# Yum-y inst
Linux to increase the expansion module, first download the source package from the Http://pecl.php.net/package/mongo, where the download is mongo-1.2.12.tgz, then perform the installation steps
Tar zxvf mongo-1.2.12.tgzCD mongo-1.2.12
Prepare the compilation environment/usr/local/webserver/php/bin/phpize./configure--with-php-config=/usr/local/webserver/php/bin/php-configMakeMake installVi/usr/local/webserver/php/etc/php.ini
Add
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.