
19th February 2007, 13:17
|
|
Member
|
|
Join Date: Dec 2006
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Apache user on ISPconfig (SUSE 10)
Hi,
I'm installing Joomla on one of my ISPconfig's sites.
I'm following the guide Joomla CMS On An ISPConfig Server Within 10 Easy Steps
but when it says to change the permission to according apache to have access to the web folder I get stuck.
This is the command that the guide provide
( chown -R -v -f www-data:www-data web/* )
when I try to type it in, I receive an error:
chown: `www-data:www-data': invalid user
Do you know what is the right command for me?
I'm running ISPconfig under SUSE 10.0
I think my user for apache is different but I don't know which one I have to use...
Thanks
|

20th February 2007, 16:54
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
On SuSE, the Apache user is called wwwrun, and the group is www, so the command should be
Code:
chown -R -v -f wwwrun:www-data web/*
|

1st March 2007, 13:13
|
|
Member
|
|
Join Date: Dec 2006
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I used this command
Code:
chown -R -v -f wwwrun:root web/*
following this article
I know, it's in italian but... i'm italian...
Is it correct? The installetion worked fine.
Now I can't upload file using FTP client. Is it normal? Is there a way to permit the FTP user to access the folder?
Logically I'm not using the root user but the user concerning this website.
Thanks
|

2nd March 2007, 13:07
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
Quote:
|
Originally Posted by nox171
Now I can't upload file using FTP client. Is it normal?
|
Yes, because you're not logged in as wwwrun or root...
Quote:
|
Originally Posted by nox171
Is there a way to permit the FTP user to access the folder?
|
Either do a chmod 777 on the directory, or change the group to the group that your FTP user belongs to, and make the directory writable for the group.
|

17th March 2007, 23:28
|
|
Member
|
|
Join Date: Mar 2007
Posts: 82
Thanks: 3
Thanked 1 Time in 1 Post
|
|
falko you say this:
Code:
On SuSE, the Apache user is called wwwrun, and the group is www, so the command should be
Code:
chown -R -v -f wwwrun:www-data web/*
shouldn't the command be this ?:
Code:
chown -R -v -f wwwrun:www web/*
on suse 10.1 your command returns error for the group as invalid.
what do you think ?
|

18th March 2007, 19:41
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
Quote:
|
Originally Posted by orasis
shouldn't the command be this ?:
Code:
chown -R -v -f wwwrun:www web/*
on suse 10.1 your command returns error for the group as invalid.
what do you think ?
|
Yes, you're right.
|

18th March 2007, 19:47
|
|
Member
|
|
Join Date: Mar 2007
Posts: 82
Thanks: 3
Thanked 1 Time in 1 Post
|
|
aaaaah good
|

18th March 2007, 19:54
|
|
Member
|
|
Join Date: Mar 2007
Posts: 82
Thanks: 3
Thanked 1 Time in 1 Post
|
|
by the way, what is the best owner to be set if say a site is ready to upload on an real hosting provider ? if that is the same as on a home linux, what is it ? talking about security.
I am working on joomla sites and I have many questions about this ownership story / security. Especialy when it is a online shop (virtuemart for joomla).
any good links to read about this ? or any comments ?
|

19th March 2007, 10:25
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,896
Thanks: 693
Thanked 4,190 Times in 3,208 Posts
|
|
First, you should always enable PHP safemode if possible.
If you want to run a virtual hosting enviroment with different file owners, you should consider to install SuPHP and enable this in ISPConfig. SuPHP runs the PHP scripts under the user that owns the website, so you would not have to chmod the files as described above.
|

19th March 2007, 19:53
|
|
Member
|
|
Join Date: Dec 2006
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
But, for example if I want to add this user web01_xx to use the web folder like the root user, which command do I have to type?
Now, when I want to add something using the FTP I need to chmod the /web folder like this:
Code:
chown -R -v -f web01_xx:web01 /var/www/web01/web/*
And again when I've finished:
Code:
chown -R -v -f wwwrun:root /var/www/web01/web/*
Suggestion?
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 09:35.
|
Recent comments
3 hours 47 min ago
10 hours 29 min ago
14 hours 19 min ago
15 hours 58 min ago
1 day 23 min ago
1 day 9 hours ago
1 day 10 hours ago
1 day 14 hours ago
1 day 18 hours ago
1 day 19 hours ago