php extension module installation

php extension module installation:

/usr/local/php/bin/php -m = view modules

cd /usr/local/src/

wget https://codeload.github.com/phpredis/phpredis/zip/develop = first download a develop installation package

mv develop phpredis-develop.zip = change a name to the downloaded installation package

unzip phpredis-develop.zip=unzip the installation package

cd phpredis-develop = enter the installation package directory after decompression

/usr/local/php/bin/phpize //The following error occurs when the configure file is generated, indicating that the autoconf installation package is missing

  Solution: yum install -y autoconf

     

Then regenerate the file again, and configure appears to indicate that the file was generated successfully

./configure --with-php-config=/usr/local/php/bin/php-config = initialization file

make && make install = continue the installation (use the command echo $? to judge whether the command is correct after installation)

/usr/local/php/bin/php -i |grep -i extension_dir //View the extension module storage directory, we can customize the path in php.ini 

vim /usr/local/php/etc/php.ini //Add a line of configuration (can be placed on the last line of the file)
extension = redis.so  

View the specified module redis

 

 

Extended
apache rewrite tutorial  http://coffeelet.blog.163.com/blog/static/13515745320115842755199/ http://www.cnblogs.com/top5/archive/2009/08/12/1544098.html
apache rewrite has an infinite loop  http://ask.apelearn.com/question/1043
php error log level reference  http://ask.apelearn.com/question/6973
php open short tags  http://ask.apelearn.com/question/120
php. Detailed ini  http://legolas.blog.51cto.com/2682485/493917

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325720860&siteId=291194637