Posts: 2,928
Threads: 195
Joined: Feb 2011
2013-03-01, 18:34:43
(This post was last modified: 2013-03-01, 18:36:06 by Connie.)
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
=================
GS 3.2
PHP 5.2.17-0.dotdeb.0
everything in the green range at server health check
Posts: 12
Threads: 1
Joined: Feb 2013
Are you using session.save_path?
Posts: 2,928
Threads: 195
Joined: Feb 2011
(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 ;=)
Posts: 12
Threads: 1
Joined: Feb 2013
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
Posts: 2,928
Threads: 195
Joined: Feb 2011
(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
Posts: 12
Threads: 1
Joined: Feb 2013
2013-03-01, 21:40:05
(This post was last modified: 2013-03-01, 21:44:23 by E.Eliveld.)
(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)
Posts: 2,928
Threads: 195
Joined: Feb 2011
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 ;=)
Posts: 687
Threads: 63
Joined: Nov 2011
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.
Posts: 2,928
Threads: 195
Joined: Feb 2011
Shove, I thought of that, but I cannot decide for my client ;=)
thanks for the proposal