HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   Apache user on ISPconfig (SUSE 10) (http://www.howtoforge.com/forums/showthread.php?t=10702)

nox171 19th February 2007 14:17

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

falko 20th February 2007 17:54

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/*

nox171 1st March 2007 14:13

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... :p

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

falko 2nd March 2007 14:07

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.

orasis 18th March 2007 00:28

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 ?

falko 18th March 2007 20:41

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. :o

orasis 18th March 2007 20:47

aaaaah good :)

orasis 18th March 2007 20:54

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 ?

till 19th March 2007 11:25

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.

nox171 19th March 2007 20:53

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?


All times are GMT +2. The time now is 16:31.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.