/tmp folder full od sess_ files

Discussion in 'Server Operation' started by labsy, Nov 16, 2016.

  1. labsy

    labsy Member

    Hi,
    I recently found my /tmp folder on Ubuntu 12.04 (web server with ISPConfig 3) is full of sess_ files. Obviously PHP session files, comming from at least one of 500+ hosted web sites.
    The main question is, how did that happen all of the sudden? I did push some updates of Ubuntu and ISPConfig, but have no idea, how to find out which site is filling up my /tmp folder. Sess_ files themselves give no clue.
    My web server *should* be setup to use eash site's chrooted /tmp folder for those files, not root's /tmp folder. So at least one site is violating this setup.

    Any idea, how to find out the problematic site?
     
    Last edited: Nov 16, 2016
  2. elmacus

    elmacus Active Member

    Who owns the files?
    Check with: ls -lah
     
  3. labsy

    labsy Member

    Well, it is www-data group and owner.
    So, my ISPConfig web sites normally use webXY and clientXZ group and owner syntax. www-data is used only by few processes:
    /usr/sbin/apache2 -k start
    /usr/bin/php-cgi -d open_basedir=........
    php-fpm: pool www

    Hmmm, anyone help me think further?
     
  4. elmacus

    elmacus Active Member

    Other vhost might use www-data, like phpmyadmin, webmail roundcube.
     

Share This Page