Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
session path: how to?
#1
well, I run into a problem with the plugin MLS Newsletter and the hoster's support (Alfahosting) told me that I have to modify the session-path in the script.
/tmp is not in reach of the script.


the path for my client's account is /var/www/xxxClientAccountxxxx/phptmp

I need to define that because I have to enable this plugin and I do not know how to define the session path.

I ask here, because I got no answers in the dedicated plugin thread and I think it is a general topic as well

friends, this is my 2504th post here in the forum, very seldom I asked for support, so please now it's your turn:

give me support, please Huh

=================

GS 3.2
PHP 5.2.17-0.dotdeb.0

everything in the green range at server health check
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#2
Are you using session.save_path?
Reply
#3
(2013-03-01, 19:59:13)E.Eliveld Wrote: Are you using session.save_path?
well the error message is:

Code:
is_writable() [function.is-writable]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/xxxxx/html/:/var/www/xxxx/phptmp/:/var/www/web509/files/:/var/www/xxxx/atd/:/usr/share/php/) in /var/www/xxxx/html/plugins/mld-newsletter/swift/preferences.php on line 15

and this preferences.php says this:
PHP Code:
// Without these lines the default caching mechanism is "array" but this uses
// a lot of memory.
// If possible, use a disk cache to enable attaching large attachments etc
if (function_exists('sys_get_temp_dir') && is_writable(sys_get_temp_dir()))
{
  
Swift_Preferences::getInstance()
    -> 
setTempDir(sys_get_temp_dir())
    -> 
setCacheType('disk');


so that's where the error comes from, but I do not know where and how to define a better path ;=)
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#4
Is'nt like that in the tmp folder you can put a .httaccess with:

php_value session.save_path /document_root/domain.com/htdocs/www/tmp
Reply
#5
(2013-03-01, 21:02:47)E.Eliveld Wrote: Is'nt like that in the tmp folder you can put a .httaccess with:

php_value session.save_path /document_root/domain.com/htdocs/www/tmp


I see that this is such a general setting that I ask the hoster's support to tell me a correct .htaccess-setting for the domainroot and for the new tmp-folder inside the html-structure
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#6
(2013-03-01, 21:34:31)Connie Wrote:
(2013-03-01, 21:02:47)E.Eliveld Wrote: Is'nt like that in the tmp folder you can put a .httaccess with:

php_value session.save_path /document_root/domain.com/htdocs/www/tmp

I see that this is such a general setting that I ask the hoster's support to tell me a correct .htaccess-setting for the domainroot and for the new tmp-folder inside the html-structure

In the phpinfo you can find the curent value for session.save_path. To find the server path use $_SERVER['DOCUMENT_ROOT'].

BTW now i think of it, the value should be set in the ROOT .httaccess (and off course set the folder to chmod 775)
Reply
#7
I know the path
but the server is configured in a way that open basedir restrictions prohibit the use of that tmp-folder

I am struggiling with the hoster to get a functional configuration but they are not very helpful
If I google for that hoster's name and "session path" I find a lot of troubled people

My clients choose this hoster in good trust, for sure, and now they are not very helpful

I will recover from this problem at the weekend and will start again on monday ;=)
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#8
Switch to ShoveHost! Guaranteed to work with GetSimple CMS - 100% Compatible!
Hosting servers are in the east coast of USA (Florida, to be precise), so you should have no trouble with connectivity to Europe.
Reply
#9
Shove, I thought of that, but I cannot decide for my client ;=)

thanks for the proposal
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply




Users browsing this thread: 1 Guest(s)