Install yaf extension on Ubuntu, and install yaf extension on ubuntu

Source: Internet
Author: User

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.

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.