Closed (outdated)
Project:
Drupal core
Version:
6.10
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
23 Feb 2009 at 20:38 UTC
Updated:
2 Mar 2016 at 22:18 UTC
Jump to comment: Most recent
Comments
Comment #1
dries commentedCommitted to CVS HEAD and DRUPAL-6. Thanks!
Comment #2
lilou commentedComment #4
Bevan commentedThis results in the following error; PHP Notice: Undefined index: SERVER_SOFTWARE in [redacted]/includes/bootstrap.inc on line 564 if $_SERVER['SERVER_SOFTWARE'] is not set. I have not tested Drupal 7/head.
Comment #5
drummBevan- are you using a web server or CLI?
Comment #6
Bevan commentedOops – Sorry. CLI on OpenWall Linux (A highly secured distro of linux). Running cron through the web browser works fine – however Cron is run from the command line by calling the php binary.
Comment #7
drummThat makes sense, drupal.sh sets
$_SERVER['SERVER_SOFTWARE']itself. There is probably a security policy against that sort of thing. Is there any chance a system-level configuration could set$_SERVER['SERVER_SOFTWARE']?Comment #8
Bevan commentedThis is now beyond my knowledge and skills. I've referred this to other Drupal+OWL users though. Bevan/
Comment #9
drummLooks like that also comes from an environment variable. Try:
$ export SERVER_SOFTWARE=PHP CLI $ {run cron.php as usual}Comment #10
Bevan commentedThat works.
Comment #11
Bevan commentedWhat is the solution for this? Shouldn't drupal be checking for
isset($_SERVER['SERVER_SOFTWARE'])before testing$_SERVER['SERVER_SOFTWARE'] == 'PHP CLI', as perE_ALL-compliance code standards?If
!isset($_SERVER['SERVER_SOFTWARE']), should drupal assume CLI?Also it appears that the "Introductory text" on Write E_ALL compliant code is now out of date. I removed it. Please revert if I am incorrect.
Comment #12
drumm