-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
occ failes as cli #15054
Comments
@guennti Could you post your PHP version and OS version (if you know it)? Also, is
And see what is output? For reference, we are expecting that string to be 'cli'. |
Versions are: In php -a output (closed this with ctrl-d) (I am not familiar with php, sorry) php-cli does not exist, the php is: |
Hmm, that's not the output we were expecting. More OS-specified stuff... any ideas @DeepDiver1975 @PVince81 ? |
@guennti please ask the Strato support why php_sapi_name() is not properly returning 'cli'. THX |
@DeepDiver1975 I send a request to Strato support, but don't really expect a helpful answer. THX |
dulicate |
occ failes in cli with "This script can be run from the command line only"
I have installed oc 7.0.5 on my webspace hosted at Strato.
Now I would like to convert the db to mysql but the occ failed.
Before that I had the problem:
PHP Notice: Undefined index: SCRIPT_FILENAME in /htdocs/owncloud/lib/base.php on line 107
PHP Notice: Undefined index: SCRIPT_NAME in /htdocs/owncloud/lib/private/request.php on line 196
as workaround I defined the variables by editing occ with:
$_SERVER["SCRIPT_FILENAME"] = "/htdocs/owncloud/occ";
$_SERVER["SCRIPT_NAME"] = "/occ";
It looks like the cli recognition in lib/base.php failed, but I don't know why.
The text was updated successfully, but these errors were encountered: