Environment:
WinXP SP2, Apache 2.0, PHP 4.4 as CGI, MySQL 5.0
Symptom:
I unziped CVS version into a subfolder (Drupal50) in apache document root.
Accessed it via:
http://localhost/Drupal50
redirects me to:
http://localhost/php/installer.php
instead of:
http://localhost/Drupal50/installer.php
Workaround:
One should set the $base_url variable correctly in the sites/default/seffings.php
Correction proposal:
The base url autodetection code is buggy in the includes\bootstrap.inc file.
I recommend to change the line 177 from this:
if ($dir = trim(dirname($_SERVER['PATH_INFO']), '\,/')) {
to this:
if ($dir = trim(dirname($_SERVER['PHP_SELF']), '\,/')) {
Comments
Comment #1
Jo Wouters commentedI think this has been solved since quite some time: there is no $_SERVER['PATH_INFO'] in the current cvs-version of bootstrap.inc
Comment #2
Jo Wouters commentedComment #3
(not verified) commented