Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Cannot install, php_dir for channel "pecl.php.net" is not writeable by the current user

#One liner
sudo chown $(whoami) $(pecl config-get php_dir)

#Find out where the php_dir is
pecl config-get php_dir

#You can either change ownership
sudo chown <username> <php_dir>

#or Set the php_dir to a different folder
pecl config-set php_dir /path/to/new/dir

Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Cannot #channel #writeable #current #user
ADD COMMENT
Topic
Name
5+4 =