Author Topic: How do I keep 4images from setting directory permissions 777?  (Read 3404 times)

0 Members and 1 Guest are viewing this topic.

Offline tmesser

  • Pre-Newbie
  • Posts: 2
    • View Profile
For security reasons, my Web host uses PHP-CGI to execute all PHP scripts instead of Apache's mod_php.  This makes all PHP scripts run as the individual user, not as a generic user.  I have changed all directories to 755 because of this, and everything within 4images is working fine.  I am able to add pictures, change settings, etc.

However, when I add images, 4images creates the new directory with 777 permissions.  This is not necessary because of my Web host's setup.  How do I change this?  I do not want to have to manually change permissions every time I upload pictures.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: How do I keep 4images from setting directory permissions 777?
« Reply #1 on: April 11, 2005, 05:25:08 AM »
in includes/constance.php:
Code: [Select]
define('CHMOD_DIRS', 0777);
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline tmesser

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: How do I keep 4images from setting directory permissions 777?
« Reply #2 on: April 11, 2005, 05:35:51 AM »
Fantastic!  Thank you.