Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member Kailash1's Avatar
    Join Date
    Nov 2006
    Location
    webhostingdiscussion.net
    Posts
    225
    cPanel/Enkompass Access Level

    Root Administrator

    Default value for upload_tmp_dir

    Hi,

    What should we set for upload_tmp_dir in php.ini for shared hosting server (suPHP disabled)?

    Thanks,

  2. #2
    Member
    Join Date
    Nov 2005
    Posts
    44

    Default

    Quote Originally Posted by Kailash1 View Post
    Hi,

    What should we set for upload_tmp_dir in php.ini for shared hosting server (suPHP disabled)?

    Thanks,
    I think it's normally blank and defaults to /tmp

  3. #3

  4. #4
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Lightbulb

    Quote Originally Posted by PlatinumServerM
    Yes /tmp is the common value for that
    While on the issue of /tmp, something worth noting not so much
    for you as much as for the benefit of everyone reading this thread ....

    Most servers generally have /tmp setup incorrectly for security
    by default and this is one of the largest and most exploited
    security holes that is ironically most often overlooked when
    most people try to harden the security on their servers.

    The good news is this is an easy issue to fix ...

    Though it doesn't always work, cpanel provides a script that may help:
    Code:
    # /scripts/securetmp 
    
    Would you like to secure /tmp & /var/tmp at boot time? (y/n) y
    Would you like to secure /tmp & /var/tmp now? (y/n) y
    It is a good idea to double check things ...

    1. Edit your /etc/fstab file and look for the line that says "/dev/shm"
    and you may see something like the following:
    Code:
    tmpfs     /dev/shm       tmpfs   defaults   0 0
    If it isn't already set as below, change the line to the following:
    Code:
    tmpfs     /dev/shm       tmpfs   noexec,nosuid   0 0
    2. Remount the partition ('mount -o remount /dev/shm')

Similar Threads & Tags
Similar threads

  1. WHM Information (RE: upload_tmp_dir and PHP)
    By g3b in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 02-19-2003, 04:37 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube