I have been trying to think this through logically but I feel like I need a bit of help.
There's a tool called drush (drupal shell) that I would like to run on my server for quickly backing up everything on my site.
When I run drush, freshly installed from the repos with no changes to php defaults, I get this error:
If I comment out this line in /etc/php5/cli/php.ini...
...then drush runs properly.
My question is, am I doing something stupid by disabling the php CLI disable_functions?
My understanding is that other PHP programs use a different .ini file so this does not affect them. No other users have CLI access to the server, so I guess not, right? If someone manages to log in as me then they could change the contents of the PHP configuration file anyway, so I'd have bigger things to worry about.
Feathers
There's a tool called drush (drupal shell) that I would like to run on my server for quickly backing up everything on my site.
When I run drush, freshly installed from the repos with no changes to php defaults, I get this error:
Code:
sam@samhobbs:~$ sudo drush The following restricted PHP modes have non-empty values: [error] disable_functions. This configuration is incompatible with drush. Please check your configuration settings in /etc/php5/cli/php.ini or in your drush.ini file; see examples/example.drush.ini for details.
Code:
disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
My question is, am I doing something stupid by disabling the php CLI disable_functions?
My understanding is that other PHP programs use a different .ini file so this does not affect them. No other users have CLI access to the server, so I guess not, right? If someone manages to log in as me then they could change the contents of the PHP configuration file anyway, so I'd have bigger things to worry about.
Feathers
Comment