Install yaf extension on Ubuntu, and install yaf extension on ubuntu
1. Download
Yaf Extension
Http://pecl.php.net/package/yaf
Select the package you want to download
wget http://pecl.PHP.net/get/yaf-2.3.5.tgztar zxvf yaf-2.3.5.tgzcd yaf-2.3.5
Ii. Installation
#whereis phpize/data/yaf-2.3.5# /usr/bin/phpize#whereis php-configphp-config: /usr/bin/php-config /usr/share/man/man1/php-config.1.gz/data/yaf-2.3.5# ./configure --with-php-config=/usr/bin/php-config/data/yaf-2.3.5# make && make install
Solution:
The last command may have an Error: compilation terminated. make: * [yaf_router.lo] Error 1
sudo apt-get install libpcre3 libpcre3-dev openssl libssl-dev
Then execute the last command.
If everything goes well, it should be like this:
You can also execute the following make test
The following error may also occur: cp: cannot create regular file '/usr/lib/php5/20121212/# INST @ 13121 #': Permission denied
This is because the permission is insufficient. The current user is not the root user. You can switch to the root user through su and enter the root password. If you forget the password, you can reset the sudo passwd root account.
Add the following in php. ini:
extension=yaf.so
If you do not know where php. ini is, you can check phpinfo.
Finally, restart the server.
The yaf Extension Method installed on Ubuntu is all the content shared by the editor. I hope you can give us a reference and support the help house.