This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Install & configuration » How does ezpublish use var/tmp ?
expandshrink

How does ezpublish use var/tmp ?

How does ezpublish use var/tmp ?

Wednesday 18 July 2012 10:19:15 am - 5 replies

Hi,

Just out of curiousity, does ezpublish store files in the var/tmp partition?

Wednesday 18 July 2012 12:53:25 pm

I assume you mean /var/tmp - eZPublish doesn't use it but php probably does.  The default tmp directories for php are for some (most?) linux distros /var/tmp - so uploaded files are (temporarily) uploaded in that directory and session files end up there too.

Wednesday 18 July 2012 2:58:24 pm

Yup, that's the one.

How long do the uploaded files and session files last in /var/tmp

Do they delete themselves once the session ends?

Wednesday 18 July 2012 3:32:04 pm

I'm pretty sure things get cleaned up automatically (debian session timeout is by default 2 hours) - but I can think of a couple of scenarios (or settings) that could make this directory get filled up with a bunch of junk files.  Is that what is happening?

Friday 20 July 2012 10:43:52 pm

Hi Steven,

Yes.It looks that way but is there anyway to tell if ezpublish is responsible?

Saturday 21 July 2012 7:41:30 am

Hi Neo,

I took a closer look and the session files are actually by default in /var/lib/php5 (this can be changed in php.ini) and would be named something like sess_7b3a0c54df61e024ca8efe3cdb6c0eff and if you look at the file you'll see something like this:

LastAccessesURI|s:0:"";LastAccessedModifyingURI|s:0:"";eZUserLoggedInID|i:10;

With newer versions of ezpublish by default you won't have anonymous sessions so there really shouldn't be that many depending on your system, your traffic and whether or not the session files are being cleaned up correctly.

Your upload_tmp_dir is still by default, I believe, /var/tmp but unless someone is trying to upload files and failing a bunch of times this shouldn't be the problem.

You might want to try to change that to /tmp to test if this is the problem.  You might also want to look at the files and see if you can identify where they are from.

Lots of things use /var/tmp - like vi and kde, so chances are it's not going to be an eZPublish problem.

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from