#1 (permalink)  
Old 06-21-2009, 06:09 AM
Kailash1's Avatar
Registered User
 
Join Date: Nov 2006
Location: webhostingdiscussion.net
Posts: 209
Kailash1 is on a distinguished road
value for upload_tmp_dir

Hi,

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

Thanks,
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-21-2009, 10:08 AM
Registered User
 
Join Date: Nov 2005
Posts: 40
jasonhk is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-21-2009, 10:40 PM
Registered User
 
Join Date: Jul 2005
Location: New Jersey, USA
Posts: 385
PlatinumServerM is on a distinguished road
Yes /tmp is the common value for that
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-22-2009, 03:06 AM
Spiral's Avatar
Registered User
 
Join Date: Jun 2005
Location: Area 51
Posts: 1,501
Spiral is on a distinguished road
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')
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
WHM Information (RE: upload_tmp_dir and PHP) g3b cPanel and WHM Discussions 4 02-19-2003 04:37 PM


All times are GMT -5. The time now is 11:56 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc