Question: where is tmp directory now

6 posts by 2 authors in: Forums > CMS Builder
Last Post: August 7   (RSS)

Hi Jeff, 

We try not to write to the /tmp system folder because we can't control issues such as security, disk space, and visibility.  Or even if it exists or is writable.

Do you know what kind of files were getting written and which code created them? 

Dave Edis - Senior Developer
interactivetools.com

By kitsguru - July 28 - edited: July 28

I deleted the emails and cleared the logs, so I'm unsure where the issue occurred in CMSB. I updated many of the older CMSB versions to 3.78.

I have taken several measures to protect /tmp from filling up with watch scripts & cron jobs, modsec rules, and robots.txt disallow.

The files were created by the user 'nobody' when the AI and SEO bots misbehaved. 

I assume you are now using the data/temp directory, which is fine by me.

I was curious, that's all.

Jeff Shields
yaadev.com

Oh okay.  No worries.  Let us know if anything comes up that you want us to look into further. 

Thanks!

Dave Edis - Senior Developer
interactivetools.com

By kitsguru - August 6 - edited: August 7

I solved my problem. It was actually my MariaDB tempDir setting. It was using /tmp, and when I was being hammered by multiple bots on all my domains simultaneously, it blew up.

I changed the tempDir setting of MariaDB to /home/mysqltemp, set the permissions. So far, so good.

Jeff Shields
yaadev.com

Hi Jeff, 

Okay, interesting.  Glad you found the cause, and thanks for letting us know!

Dave Edis - Senior Developer
interactivetools.com