Since #524728: Refactor install.php to allow Drupal to be installed from the command line was committed, I have not been able to install HEAD.
My problem is that, from a browser, realpath($_SERVER['SCRIPT_FILENAME']) is returning FALSE, so the installer does not run. IMHO, install.php needs to be another two-liner file with all the install functions moved to the includes dir fairly quickly.
Focusing on the more pressing issue, I have no idea why realpath() is returning FALSE and don't know enough about it to debug it at the moment. Any help would be appreciated!
Also, a quick workaround that I have been using is:
-if (realpath($_SERVER['SCRIPT_FILENAME']) == __FILE__) {
+if (realpath($_SERVER['SCRIPT_FILENAME']) != __FILE__) {
Comments
Comment #1
cweagansFrom the code posted in #524728: Refactor install.php to allow Drupal to be installed from the command line, here's a patch to improve the CLI detection in install.php
Comment #3
webchickSorry, my bad!
Comment #4
cweagansRenamed for accuracy
Comment #5
cweagansFixed logic in patch.
Comment #6
catchI have no idea what the original code was supposed to be checking, this actually makes sense. RTBC.
Comment #7
catchdoh, I was trying to work out whether PHP_SAPI constant might be better than the function, and in the process missed:
needs a space after the if.
Comment #8
cweagansNew patch attached. Also un-deleted the comment right above install_drupal()
Comment #9
cweagansReal patch attached.
Comment #10
catchMuch better.
Comment #11
dries commentedCommitted to CVS HEAD. Thanks.