Apache folder creation problem

9 posts / 0 new
Last post
#1 Thu, 08/13/2009 - 12:21
dean1979

Apache folder creation problem

Hi, I'm using Virtualmin 3.71GPL version. I have a trouble with apache and uploading to web server. I have a page with a wordpress installed and when i try to upload image it is uploaded with apache:apache permissions, not user:user. Can someone help me with this problem?

P.S. I put a simple upload script in a directory ~/public_html/upload/ and tried to upload a file and the result was the same - the file was created with "apache:apache" user, not the "user:user". So i think it is a server-side problem.

Thu, 08/13/2009 - 18:14
andreychek

Howdy,

Sounds like your system isn't using suexec.

PHP would need to run as your user in order for files uploaded via the web to be owned as your own user rather than Apache.

That's the default setup using Virtualmin Pro, but is something you can manually get working with Virtualmin GPL.

You can read about how to do that here:

http://www.virtualmin.com/node/8462

Fri, 08/14/2009 - 04:11
dean1979

I have added the cgi in the skel directory, modifyed the ExecGCI in the server templates, but no result.

Got IT! Thanks to the last post in the link u gave me.

Cheers

Dean

Tue, 08/18/2009 - 19:09
dean1979

Can someone help to make php works normal like before, not with fastcgi? I'm asking because i have a site with free cms and it doesn't work with fcgi. No rendering at all. When i remove fcgi directive from virtualserver the cms is working, but uploaded files are with wrong owner.

Thu, 08/20/2009 - 22:54 (Reply to #4)
jdamron

Hey John here Email me at sales@lynkerworld.com i will give you a hand.. John

Fri, 08/21/2009 - 01:16
ronald
ronald's picture

in fact you need a free cms that works with fcgi, like joomla or drupal.

Fri, 08/21/2009 - 11:24
dean1979

In fact there is some sites that aren't mine... Can anyone help me with the this ?

Fri, 08/21/2009 - 11:57
ronald
ronald's picture

did you try the forum from the CMS? As it seems an issue with the script rather than how your server operates.

Fri, 08/21/2009 - 12:21
dean1979

I prefer to use suexec, not fcgi... With suEXEC i had no problem with the sites.

Topic locked