Setting oAuth PECL error: cannot be set, php_dir for channel "pecl.php.net" cannot be written by the current user

I try to install oAuth on OS X, but I get this error in the terminal:

Unable to set, php_dir for channel "pecl.php.net" cannot be written by current user

How to allow recording for recording?

+7
source share
2 answers

First find where php_dir is located. You can do this using the "config-get" command:

pecl config-get php_dir

After that you can:

  • Change ownership of this folder (and all necessary child folders)

    sudo chown <username> <php_dir>

or

  • Set php_dir to another folder

    pecl config-set php_dir /path/to/new/dir

+15
source

The easiest way is to possibly add sudo to the top of your installation command.

See http://linux.about.com/od/commands/l/blcmdl8_sudo.htm to learn more about the convenient super user command.

+11
source

All Articles