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

"drush php" doesn't work as expected #1127

Closed
tobiase opened this issue Sep 25, 2018 · 7 comments
Closed

"drush php" doesn't work as expected #1127

tobiase opened this issue Sep 25, 2018 · 7 comments
Milestone

Comments

@tobiase
Copy link

tobiase commented Sep 25, 2018

Describe the bug
Drush php shell is exited after a command is run.

To Reproduce
Steps to reproduce the behavior:

  1. ddev ssh
  2. drush php
  3. echo 'hello';

Expected behavior
Drush php shell should continue to run.

Version and configuration information (please complete the following information):
php: 7.1
ddev config:

cli   	        v1.1.1                    
web   	drud/ddev-webserver:v1.1.0
db    	drud/ddev-dbserver:v1.1.0 
dba   	drud/phpmyadmin:v1.1.0    
router	drud/ddev-router:v1.1.0   
commit	v1.1.1

Additional context
The described bug might appear in other php versions.

Solution
Remove pcntl_fork, pcntl_waitpid, pcntl_wexitstatus, pcntl_signal_dispatch from disabled_function in /etc/php/7.1/fpm/php.ini

@rfay
Copy link
Member

rfay commented Sep 25, 2018

Sounds like a fine solution to me.

@rfay
Copy link
Member

rfay commented Sep 25, 2018

Are you able to make it work fine with custom php config? (Just changing disabled_functions)? (https://ddev.readthedocs.io/en/latest/users/extend/customization-extendibility/#providing-custom-php-configuration-phpini)

@tobiase
Copy link
Author

tobiase commented Sep 25, 2018

Yes, that works.

@rfay
Copy link
Member

rfay commented Sep 25, 2018

Could you provide your config please? Thanks!

@tobiase
Copy link
Author

tobiase commented Sep 25, 2018

Path: .ddev/php/my-php.ini

[PHP]
disable_functions =

@rfay
Copy link
Member

rfay commented Sep 25, 2018

Seems great. Any downside to this that you know of?

@tobiase
Copy link
Author

tobiase commented Sep 25, 2018

No.

rfay added a commit to rfay/ddev that referenced this issue Sep 25, 2018
rfay added a commit to rfay/ddev that referenced this issue Oct 1, 2018
rfay added a commit to rfay/ddev that referenced this issue Oct 1, 2018
@rfay rfay closed this as completed in 95eabc0 Oct 2, 2018
@dclear dclear added this to the v1.3.0 milestone Oct 13, 2018
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

3 participants