Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
4.0k views
in Q2A Core by

No problems ,but sometimes i getting error on top of the page:

Notice: session_start() [function.session-start]: ps_files_cleanup_dir: opendir(/tmp) failed: Permission denied (13) in /home/xxxxx/xxxxx/mysite.com/public_html/qa-include/qa-app-users.php on line 107

It happens after migrating to another server.

by
Bump Bump Bump
by
I google it, seems rare problem and realy annoying :(

2 Answers

+2 votes
by
 
Best answer

I did some more searching and came across this Stack Overflow thread. The answer is apparently to set session.gc_probability = 0 in your php.ini.

I've done this on my server, I'll let you know how it goes.

by
Nice, let me know :)
by
By the way, the above solution is for Ubuntu/Debian operating systems. Do you know what type of server you run?
by
centos, i guess it's not ubuntu.
by
Note that "gc_probability" means the probability for the garbage collection. Isn't it the case when setting it to "0" that there is no garbage collection?
by
@q2apro No. See the Stack Overflow answer - Ubuntu/Debian run garbage collection as a separate process instead of using PHP.
0 votes
by
This looks like a general PHP configuration problem rather than something specific to Q2A.
by
Maybe you know more specifically where in PHP configuration, i have dedicated server with DirectAdmin so i can configure PHP settings ?
by
I contacted with hosting provider specialist and we reviewed PHP configuration and it's ok (/tmp is writable), so he said that problem is in script.
by
I am getting the same error occasionally too. Did you manage to fix this?
by
No, that line still appears sometimes.
...