These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Urgent on the new forum.
This website is deprecated, and remains online only for historic access to old issues and docs for historic versions of Virtualmin. It has been unmaintained for several years, and should not be relied on for up-to-date information. Please visit www.virtualmin.com instead.
Virtualmin 3.48 creates the PHP fcgi wrappers with a file mask to correct this problem. To fix it on existing virtual servers, you could either switch the execution mode from fcgi to cgi and back to fcgi (I think this will regen the fcgi wrapper), or just add:
Hi
I have the same or similar problem.. Just moved Joomla 1.0.15 sites to a new pro server they are unable to upload images now, not a file permission problem I tried 777 same results blank thumbnail and when clicked "You don't have permission to access /images/bla..
Same results in FCGId and CGI wrapper
No obvious php problems so far.. just this images upload problem
Virtual server error log:
(13)Permission denied: file permissions deny server access:
Nothing in suexec log about this.
Joomla system page says all files and folders are Writeable.
Is there more to the message in the error log than that? Does it mention the full path to the file or directory containing the permissions problem?
-Eric
Hey miki,
It <i>has been resolved</i> resolved, I believe.
Virtualmin 3.48 creates the PHP fcgi wrappers with a file mask to correct this problem. To fix it on existing virtual servers, you could either switch the execution mode from fcgi to cgi and back to fcgi (I think this will regen the fcgi wrapper), or just add:
umask 022
To the php4.cgi or php5.cgi script in use.
They now look like this:
#!/bin/sh
PHPRC=$PWD/../etc/php4
export PHPRC
umask 022
PHP_FCGI_CHILDREN=4
export PHP_FCGI_CHILDREN
exec /usr/bin/php<br><br>Post edited by: Joe, at: 2007/10/19 17:10
--
Check out the forum guidelines!
Forbidden
You don't have permission to access /images/banners_pages/daily_usage_200607.png on this server.
Apache/2.2.3 (CentOS) Server at www.xyz.com Port 80
Sorrey Not working!!!!
Existing files will need to be changed. The mask only effects newly created files.
--
Check out the forum guidelines!
Hi
I have the same or similar problem.. Just moved Joomla 1.0.15 sites to a new pro server they are unable to upload images now, not a file permission problem I tried 777 same results blank thumbnail and when clicked "You don't have permission to access /images/bla..
Same results in FCGId and CGI wrapper
php5.fcgi
#!/bin/bash
PHPRC=$PWD/../etc/php5
export PHPRC
umask 022
export PHP_FCGI_CHILDREN
SCRIPT_FILENAME=$PATH_TRANSLATED
export SCRIPT_FILENAME
exec /usr/bin/php5-cgi
No solution ?
So what doesn't work, just the image upload? Other PHP code works properly?
What do you see in the error log for that Virtual Server? Also, what about the suexec log in /var/log?
-Eric
No obvious php problems so far.. just this images upload problem
Virtual server error log:
(13)Permission denied: file permissions deny server access:
Nothing in suexec log about this.
Joomla system page says all files and folders are Writeable.
Is there more to the message in the error log than that? Does it mention the full path to the file or directory containing the permissions problem?
-Eric
yes full path (13)Permission denied: file permissions deny server access: /home/domain/...
The new image is uploaded with permission 600 so this is umask issue?, files should be 644 and folders 755 how can I change this globaly ?
The virtual server php5.cgi
#!/bin/bash
PHPRC=$DOCUMENT_ROOT/../etc/php5
export PHPRC
umask 022
SCRIPT_FILENAME=$PATH_TRANSLATED
export SCRIPT_FILENAME
exec /usr/bin/php5-cgi
Sorrey,
It is not working for new files.
I am changed Joomla setup to over ride the problem. (as a temp solution)
The mask is not helping!
Miki