11 posts / 0 new
Last post
#1 Fri, 10/19/2007 - 10:18
sysdot

Urgent

Problem with content and images in Joomla when my clients upload Images they getting (600) permision

This issue need to solved ASAP. I had to change with FTP to 775

Fri, 10/19/2007 - 17:10
Joe
Joe's picture

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&lt;br&gt;&lt;br&gt;Post edited by: Joe, at: 2007/10/19 17:10

--

Check out the forum guidelines!

Fri, 10/19/2007 - 18:10 (Reply to #2)
sysdot

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!!!!

Sat, 10/20/2007 - 09:50 (Reply to #3)
Joe
Joe's picture

Existing files will need to be changed. The mask only effects newly created files.

--

Check out the forum guidelines!

Wed, 01/28/2009 - 13:15 (Reply to #4)
henry.berg

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 &quot;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 ?

Wed, 01/28/2009 - 13:59 (Reply to #5)
andreychek

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

Wed, 01/28/2009 - 14:15 (Reply to #6)
henry.berg

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.

Wed, 01/28/2009 - 14:24 (Reply to #7)
andreychek

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

Wed, 01/28/2009 - 23:20 (Reply to #8)
henry.berg

yes full path (13)Permission denied: file permissions deny server access: /home/domain/...

Thu, 01/29/2009 - 00:13 (Reply to #9)
henry.berg

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

Sat, 10/20/2007 - 12:47
sysdot

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

Topic locked