Search
 
SCRIPT & CODE EXAMPLE
 

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

Comment

PREVIOUS NEXT
Code Example
Shell :: make directory to be owned by group ubuntu 
Shell :: ssh only key 
Shell :: merge last three commits squash 
Shell :: github update personal access token 
Shell :: how to undo git clean -fd command 
Shell :: how to push current code to new branch git 
Shell :: count all files csv file in a directory linux 
Shell :: bash check if string ends with slash 
Shell :: downgrade ruby version ubuntu 
Shell :: check service status in linux 
Shell :: remove old docker installs linux mint 
Shell :: ubuntu windows root directory 
Shell :: install mongoes 
Shell :: composer install from local directory 
Shell :: git exclude folder 
Shell :: stop avd 
Shell :: gulp-imagemin 
Shell :: jq select by field 
Shell :: export to path linux (pipenv) 
Shell :: see cpu usage terminal linux 
Shell :: delete a daemonset deployment 
Shell :: install docker-machine linux 
Shell :: netspeed ubuntu 20.04 
Shell :: how to remove something from bin folder in ubuntu 
Shell :: linux set environment 
Shell :: run redis server 
Shell :: how to create new branch in git 
Shell :: git edit user of last commit 
Shell :: uninstall django ubuntu 
Shell :: github actions install postgres 
ADD CONTENT
Topic
Content
Source link
Name
1+1 =