Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 26th September 2008, 21:15
dabro dabro is offline
Junior Member
Join Date: May 2006
Posts: 10
Thanks: 4
Thanked 0 Times in 0 Posts
Default Changing default file upload permissions in PHP-CGI

I have just realized file uploads using PHP, the permissions are defaulted to 600 and the webserver cannot see them. I'm running php5-cgi and the owner and group are being set properly, eg. web##_admin, web##. But the permissions should be set to 644. I don't see any way to change the default umask in the php.ini config file.

I originally set this server up using SU-PHP in a tutorial available here. Since that time I have updated and upgraded my server using apt. Everything appeared to still be functioning fine. What did I break? How can I tell what user Apache is running under? I'm using Drupal and it is still operating properly, if I create a directory inside Drupal it, it creates the directory with owner- web##_admin and group- web## with default permission of 775, which appears properly. But if I upload a file inside drupal the ownership is correct but the permission is 600. Not viewable. Any help would be appreciated, Dave

BTW my ISPConfig version is 2.2.23
Reply With Quote
Sponsored Links
Old 27th September 2008, 10:53
till till is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts

The ownership is correct. To set another umask of the uploaded file, you can e.g. use the chmod command in php.
Till Brehm
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote


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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig virtual web pages not working mike_phi Installation/Configuration 8 7th May 2008 17:51
Mail System Error - Returned Mail tristanlee85 General 16 16th March 2008 10:40
Apache2 Freezes celtic Server Operation 31 28th May 2007 18:18
Debian3.1 | PHP Binary planet_fox Installation/Configuration 2 26th September 2006 01:52
jamed up my table borders?? Boon-Dog-Danny Installation/Configuration 5 23rd September 2006 17:12

All times are GMT +2. The time now is 03:18.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.