Hi,
I am using cmsms 1.11.4. On my own server the site works fine but on the live server (with fastcgi and php) a problem occurs. When I upload a file in file manager the permissions are 600 and the file is not readable on the website. When I upload an image with the image manager the permissions are fine. Can anyone help me with this?
PHP version is 5.2.4
file upload permissions wrong with fastcgi
-
- Forum Members
- Posts: 59
- Joined: Thu Jan 17, 2008 10:26 am
Re: file upload permissions wrong with fastcgi
What is your setting for umask?
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: file upload permissions wrong with fastcgi
I think i have te same problem with creating thumbnails and deleting images. I have umask set to 022
Re: file upload permissions wrong with fastcgi
Please post System Information from admin
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: file upload permissions wrong with fastcgi
This is my system information of that particular installation:
----------------------------------------------
Cms Version: 1.11.4
Installed Modules:
CMSMailer: 5.2.1
CMSPrinting: 1.0.3
FileManager: 1.4.3
MenuManager: 1.8.5
MicroTiny: 1.2.5
ModuleManager: 1.5.5
ThemeManager: 1.1.7
Showtime: 3.2
Config Information:
php_memory_limit:
process_whole_template:
output_compression:
max_upload_size: 10000000
url_rewriting: mod_rewrite
page_extension:
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true
Php Information:
phpversion: 5.3.2-1ubuntu4.18
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
E_DEPRECATED: 0
memory_limit: 24M
max_execution_time: 200
output_buffering: 4096
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 8M
upload_max_filesize: 10M
session_save_path: /var/lib/php5 (1777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
Server Information:
Server Api: apache2handler
Server Db Type: MySQL (mysqli)
Server Db Version: 5.1.63
Server Db Grants: Could not find a suitable "GRANT ALL" permission. This may mean you could have problems installing or removing modules. Or even adding and deleting items, including pages
----------------------------------------------
----------------------------------------------
Cms Version: 1.11.4
Installed Modules:
CMSMailer: 5.2.1
CMSPrinting: 1.0.3
FileManager: 1.4.3
MenuManager: 1.8.5
MicroTiny: 1.2.5
ModuleManager: 1.5.5
ThemeManager: 1.1.7
Showtime: 3.2
Config Information:
php_memory_limit:
process_whole_template:
output_compression:
max_upload_size: 10000000
url_rewriting: mod_rewrite
page_extension:
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true
Php Information:
phpversion: 5.3.2-1ubuntu4.18
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
E_DEPRECATED: 0
memory_limit: 24M
max_execution_time: 200
output_buffering: 4096
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 8M
upload_max_filesize: 10M
session_save_path: /var/lib/php5 (1777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
Server Information:
Server Api: apache2handler
Server Db Type: MySQL (mysqli)
Server Db Version: 5.1.63
Server Db Grants: Could not find a suitable "GRANT ALL" permission. This may mean you could have problems installing or removing modules. Or even adding and deleting items, including pages
----------------------------------------------
Re: file upload permissions wrong with fastcgi
And when you change/add in your config.php file
Code: Select all
$config['default_upload_permission'] = '777';
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: file upload permissions wrong with fastcgi
Still not working, when i want to view the thumbs.php? file or when i want to delete some file, i get the admin login screen again.. any other tips?!
-
- Forum Members
- Posts: 59
- Joined: Thu Jan 17, 2008 10:26 am
Re: file upload permissions wrong with fastcgi
Hi, the problem is solved! My isp made a new account for me on a server with php 5.3.3 and now it works as expected.
Re: file upload permissions wrong with fastcgi
I'm on another version of PHP, but that shouldn't make a difference...does it? Anyone who could help me with this problem??
Looks like a login problem...
Looks like a login problem...