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

Can't install on shared hosting "The Process class relies on proc_open, which is not available" #735

Closed
mariaczi opened this issue Mar 7, 2018 · 6 comments

Comments

5 participants
@mariaczi
Copy link

commented Mar 7, 2018

  • BookStack Version (Found in settings, Please don't put 'latest'): v0.20.0
  • PHP Version: 7.0.27
  • MySQL Version: 15.1 Distrib 10.0.31-MariaDB

I'm not able to install BookStack v0.20 on my shared hosting. After run command
composer install
I got:

$ composer install
> php -r "!file_exists('bootstrap/cache/services.php') || @unlink('bootstrap/cache/services.php');"

                                                                                           
  [Symfony\Component\Process\Exception\RuntimeException]                                   
  The Process class relies on proc_open, which is not available on your PHP installation.  
                                                                                           

install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]...

It is important to have access to proc on server or exists some workaround to be able to install and use this BookStack version?

@domainzero

This comment has been minimized.

Copy link

commented Mar 7, 2018

Chances are your shared host has explicitly disabled proc_open on their PHP instance and there's no way around it. I would email your shared host's support team and see if they can give you a hand or maybe skip the dependencies.

If they can't do anything, your next best option is to spin up a VPS and host everything yourself.

@lommes

This comment has been minimized.

Copy link
Contributor

commented Mar 9, 2018

You may try composer install --no-scripts but you will have to run the needed scripts yourself afterwards:

php -r "file_exists('.env') || copy('.env.example', '.env');"
php artisan key:generate
php artisan cache:clear
php artisan view:clear
php artisan package:discover

I did not try this and it still may fail, but in that way you at least can skip the steps which seem to be ones failing.

The commands above are only the ones defined in the composer.json of BookStack, some dependencies may require additional commands.

You can also try to build BookStack locally and upload all files to your hosting afterwards and maybe run composer dump-autoload there.

@mariaczi

This comment has been minimized.

Copy link
Author

commented Mar 11, 2018

@lommes Thank you very much for your explanation. It work's as you wrote. I built BookStack on my shared hosting and it works as should (I think :), because I checked only the login process and if I have my previously created Books/Chapters/Pages).
Regards.

@domainzero

This comment has been minimized.

Copy link

commented Mar 12, 2018

Today I learned!

@lommes

This comment has been minimized.

Copy link
Contributor

commented Jun 28, 2018

@ssddanbrown @Abijeet I think this can be closed.

@Abijeet

This comment has been minimized.

Copy link
Member

commented Jun 30, 2018

Thanks @lommes

@Abijeet Abijeet closed this Jun 30, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.