BoarderLine Posted April 19, 2011 Share Posted April 19, 2011 After installing SquirrelMail I am facing the following error on initial start up. SquirrelMail 1.4.x is not compatible with PHP's session.auto_start setting. Please disable it at least for the location where SquirrelMail is installed. Now my problem is not how to turn session.auto_start off (php.ini) as I really don't want to. Does any one know how I can go about turning it off for the squirrelmail directory only?? Many Thanks Quote Link to comment https://forums.phpfreaks.com/topic/234157-disabling-sessionauto_start-for-a-single-directory-only/ Share on other sites More sharing options...
PFMaBiSmAd Posted April 19, 2011 Share Posted April 19, 2011 There's no good reason to have session.auto_start on in the first place. You would need to tell us how php is integrated with the web server and which web server you are using. Is php running as an Apache Module or as a CGI application? Quote Link to comment https://forums.phpfreaks.com/topic/234157-disabling-sessionauto_start-for-a-single-directory-only/#findComment-1203513 Share on other sites More sharing options...
BoarderLine Posted April 19, 2011 Author Share Posted April 19, 2011 PHP 5.3.3 Running as apache module on Linux Fedora 12. I guess I am lazy and prefer not having to session_start() every script. Is there issues with session.auto_start being on? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/234157-disabling-sessionauto_start-for-a-single-directory-only/#findComment-1203531 Share on other sites More sharing options...
PFMaBiSmAd Posted April 19, 2011 Share Posted April 19, 2011 Yes, it prevents you from changing or configuring any of the session settings in a script (which is probably why SquirrelMail won't work) and it prevents you from doing things like using OOP/classes in session variables (which also might be the reason SquirrelMail won't work.) You should be able to put php settings into a .htaccess file in the folder in question. Quote Link to comment https://forums.phpfreaks.com/topic/234157-disabling-sessionauto_start-for-a-single-directory-only/#findComment-1203537 Share on other sites More sharing options...
BoarderLine Posted April 19, 2011 Author Share Posted April 19, 2011 Yes of course, thanks very much. In .htaccess added: <Directory /path to install directory of/squirrelmail> php_flag session.auto_start 1 <Directory> session.auto_start now off in squirrelmail directory only. Quote Link to comment https://forums.phpfreaks.com/topic/234157-disabling-sessionauto_start-for-a-single-directory-only/#findComment-1203587 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.