Re: configtest.php fails in fedora rpm install

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Hi,
>
> Software I'm using:
>
> * Scanner: mailscanner-4.45.4-1
> * IMAP Server: dovecot-0.99.11-2.EL4.1
> * PHP: 4.3.9-3.18
> * Web server: httpd-2.0.52-ent (Apache)
> * Platform: RedHat fc4
> * SquirrelMail installed from RedHat RPM via up2date
> * SquirrelMail version: 1.4.8-2.el4
> * Browsers: FireFox  1.5.0.7 and Galeon 2.0.1
>
> Although everything seems to be working ok, I still get this error when
> I browse configtest.php:
>
> *************************
> SquirrelMail version:
> Config file version:
> Config file last modified:	30 September 2006 19:15:30
> Checking PHP configuration...
> PHP version 4.3.9 OK.
> PHP extensions OK.
>
> ERROR: You have enabled PHP register_globals. Running PHP installation
> with register_globals=on can cause problems. See security information
> about register_globals. Checking paths...
>
> ERROR: Data dir () does not exist!
> *************************
>
> I'm concerned that the version numbers are missing and that the data
> dir is empty. The data dir used is the default RH
> dir, /var/lib/squirlmail/prefs/ . It does exits and is writable by the
> apache user. I can send and receive mail.
>
> This is a new install. Before this someone had installed squirrelmail
> 1.4.5  from a source tar.gz in the web Document root. Running
> configtest.php gave a full and successful report under this older
> installation.
>
> My question is, does anyone know what is causing this new installation
> to fail the squirrelmail configtest?

When I checked code, I looked for global.php includes. Missed code that
loaded strings.php without global.php.

See attached patch. Minus shows removed lines, plus shows added lines,
other lines allow to locate modified code.

Please note that SquirrelMail 1.4.8 and 1.5.2cvs requires correct script
load order. register_globals safety features will break incorrectly coded
scripts in register_globals = on setups. I strongly recommend turning off
register_globals setting. Turn it on only for scripts that need it.

-- 
Tomas
Index: configtest.php
===================================================================
RCS file: /cvsroot/squirrelmail/squirrelmail/src/configtest.php,v
retrieving revision 1.9.2.23
diff -u -r1.9.2.23 configtest.php
--- configtest.php	30 Aug 2006 07:44:54 -0000	1.9.2.23
+++ configtest.php	5 Oct 2006 16:30:39 -0000
@@ -24,8 +24,6 @@
     }
 }
 
-$IND = str_repeat(' ',4);
-
 ob_implicit_flush();
 /** @ignore */
 define('SM_PATH', '../');
@@ -37,9 +35,9 @@
  * later.
  */
 if (file_exists(SM_PATH . 'config/config.php')) {
-    include(SM_PATH . 'config/config.php');
-    include(SM_PATH . 'functions/strings.php');
+    include(SM_PATH . 'functions/global.php');
 }
+$IND = str_repeat(' ',4);
 
 // this must be done before the output is started because it may use the
 // session
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
--
squirrelmail-users mailing list
Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux