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

System wide installation - /opt/phpbrew/bashrc not found #903

Closed
iamnimnul opened this issue Sep 11, 2017 · 3 comments
Closed

System wide installation - /opt/phpbrew/bashrc not found #903

iamnimnul opened this issue Sep 11, 2017 · 3 comments

Comments

@iamnimnul
Copy link

Hi there,

I am trying to install System wide phpbrew using guide from https://github.com/phpbrew/phpbrew/wiki/Installing-PHPBrew-into-System-wide-Environment

I am following instructions and have some questions:

Now export phpbrew paths to your desired paths, edit your ~/.phpbrew/bashrc
export PHPBREW_ROOT=/opt/phpbrew # php dist files and build files are stored here
export PHPBREW_HOME=/root/.phpbrew # your configuration files.

It's not clear if it should be added at the top or bottom of the file. Any difference?

Now your php(s) will be installed under the /opt/phpbrew path, to allow your system users to use php(s) built by phpbrew, you need to export PHPBREW_ROOT and PHPBREW_HOME environment in /etc/bashrc or in /etc/profile.d/phpbrew for bash users, before they load the phpbrew/bashrc file.
export PHPBREW_ROOT=/opt/phpbrew
export PHPBREW_HOME=$HOME/.phpbrew
source /opt/phpbrew/bashrc

When I log in as any user on the machine I can see -bash: /opt/phpbrew/bashrc: No such file or directory just after MOTD.
Looks like file /opt/phpbrew/bashrc is not created at any stage and there are no instructions how to initialise it.

Output

-bash: /opt/phpbrew/bashrc: No such file or directory

Platform

OS:
Ubuntu 16.04

Running PHP:
PHP 7.0.22-0ubuntu0.16.04.1

@morozov
Copy link
Contributor

morozov commented Sep 27, 2017

@MateuszKoguc looks like the documentation is outdated. Please try specifying the --root directory as suggested in README (Setting up). Otherwise, PHPBrew initializes for the root user in a "private" mode and cannot be accessed by other users.

Please share your experience so that we could update the article accordingly.

@rmlange
Copy link

rmlange commented Aug 12, 2019

Initializing using the --root argument no longer seems to fix this issue. /opt/phpbrew/bashrc still does not exist.

@peter279k
Copy link
Member

I use the latest stable PHPBrew version and it seems the --root option usage is fixed. The issue will be closed.

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

No branches or pull requests

4 participants