Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Mar 2003
    Posts
    427

    Default Mod_Security thinks user/tmp is main /tmp and blocking ?

    Hello!

    Mod_security is reading commands wrong or something is really messed
    up with apache/php cause it's the wrong /tmp path used.

    Domain/Account BBBB.com is trying to create a session file but is blocked
    by mod_secuity cause it say BBBB.com is trying to create the file in
    AAA accounts /tmp folder!

    [Mon Aug 25 23:12:26 2008] [error] [client xxx]
    mod_security: Access denied with code 406. read_post_payload:
    Failed to create file "/home/AAA/tmp/xxxxrequest_body-PQp5Xo"
    because 13("Permission denied") [hostname "BBBBB.com"] [uri "/admin/categories.php?action=insert_category&cPath=154"]

    BBBB has it's own /tmp and home folder and is not realted to AAA at all.
    But it's not only BBBB being blocked due to this, it a lot of accounts.

    I restarted mysql and apache and it helped.


    What happened ?
    Something with mod_Sec mysql maybe ?
    Why did mod_sec think they all wanted to use AAA /tmp folder ?
    or did they really trying that .....

    (edit) NOTE: /tmp path in php is set to /tmp all the time

  2. #2
    Registered User
    Join Date
    Mar 2007
    Posts
    1

    Default

    For me the issue is fixed by uncommenting 'session.save_path = /tmp' in php.ini

Similar Threads & Tags
Similar threads

  1. /tmp/ writeable and chmod of /home/user/tmp/
    By khorinis in forum cPanel and WHM Discussions
    Replies: 13
    Last Post: 09-11-2010, 08:37 AM
  2. cpanel.tmp file in users /tmp folder
    By BPmedia-David in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-08-2007, 06:13 AM
  3. mysql failed - i change size of /tmp /var/tmp use this command
    By dlthhost in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-13-2007, 03:39 AM
  4. How can I delete /tmp and /var/tmp files?
    By Izkabola in forum E-mail Discussions
    Replies: 5
    Last Post: 01-02-2005, 04:25 AM
  5. Mod_security and /tmp
    By latpanel in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 11-17-2004, 04:08 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube