Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation permissions issue $dir.config #35

Open
daithi-coombes opened this issue Mar 27, 2015 · 0 comments
Open

Installation permissions issue $dir.config #35

daithi-coombes opened this issue Mar 27, 2015 · 0 comments

Comments

@daithi-coombes
Copy link

Hi,

I'm trying to install pyrus on a Debian Wheezy vagrant box, my php version is 5.4.39-0+deb7u1 (cli). Also I have downloaded the latest phar to /opt which has permission as normal user, vagrant in this case. No matter what I try pyrus is trying to create a .config directory from the parent dir that is chosen. ie if I choose /home/vagrant as the default dir, pyrus will try to create /home/vagrant.config

To reproduce:

/opt$ php --version
PHP 5.4.39-0+deb7u1 (cli) (built: Mar 20 2015 15:16:28) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies

vagrant@vagrant-debian-wheezy64:/opt$ php pyrus.phar install pear/PHP_CodeSniffer
Pyrus version 2.0.0a4 SHA-1: 72271D92C3AA1FA96DF9606CD538868544609A52
Pyrus: No user configuration file detected
It appears you have not used Pyrus before, welcome!  Initialize install?
Please choose:
  yes
  no
[yes] : 
Great.  We will store your configuration in:
  /home/vagrant/.pear/pearconfig.xml
Where would you like to install packages by default?
[/opt] : 
You have chosen:
/opt
Pyrus\Config\Exception: Cannot save configuration, no filesystem permissions to modify PEAR directory /opt.config
vagrant@vagrant-debian-wheezy64:/opt$

Seems to me that pyrus might be getting a null value from somewhere instead of a directory seperator? The only similar issue I could find was from 2010 - so this might not be bug, as such, and might be my server setup?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant