Phpbrew: ~/.phpbrew directory must be created before using phpbrew

Created on 15 Sep 2015  路  6Comments  路  Source: phpbrew/phpbrew

Redirecting to https://secure.php.net/releases/index.php?json&version=5&max=100
PHP Warning:  file_put_contents(/home/huzhifeng/.phpbrew/php-releases.json): failed to open stream: No such file or directory in phar:///home/huzhifeng/ops-code/bin/phpbrew/PhpBrew/ReleaseList.php on line 2
Exception: Can't store release json file
Trace:

    0) PhpBrew\ReleaseL

fresh installed phpbrew will not auto create ~/.phpbrew directory, so installation was failed.

Most helpful comment

Did you phpbrew init?

All 6 comments

Did you phpbrew init?

This step can be automatic? i omit it

It probably can, but it could become a PITA to have the init check before every executed command. So the install instructions explicitly tell you to run phpbrew init during installation. Please check the installation guide and the wiki.

I know this issue is ancient, but I hit the same thing. I think it would be clearer if the phpbrew init instruction was moved into the Installation section. Happy to create a PR if you agree.

@jeff-h could you please provide more details about how the issue is reproducible? Maybe because of documenting we could fix it or at least improve the UX. Then document the remaining details.

Sure 鈥斅爄t was 100% user error 馃お Basically I didn't realise that running phpbrew init was a mandatory part of initial installation. A very minor shuffle of the documentation (proposed PR) makes it much clearer for me at least.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sam452 picture sam452  路  6Comments

flik picture flik  路  4Comments

rodsimpson picture rodsimpson  路  5Comments

escopecz picture escopecz  路  3Comments

sam452 picture sam452  路  3Comments