Apache user on ISPconfig (SUSE 10)

Discussion in 'Installation/Configuration' started by nox171, Feb 19, 2007.

  1. nox171

    nox171 New Member

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

  2. falko

    falko Super Moderator

    On SuSE, the Apache user is called wwwrun, and the group is www, so the command should be

    chown -R -v -f wwwrun:www-data web/*
  3. nox171

    nox171 New Member

    I used this command
    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.

  4. falko

    falko Super Moderator

    Yes, because you're not logged in as wwwrun or root...

    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.
  5. orasis

    orasis Member

    falko you say this:

    On SuSE, the Apache user is called wwwrun, and the group is www, so the command should be
    chown -R -v -f wwwrun:www-data web/*
    shouldn't the command be this ?:

    chown -R -v -f wwwrun:www web/*
    on suse 10.1 your command returns error for the group as invalid.

    what do you think ?
  6. falko

    falko Super Moderator

    Yes, you're right. :eek:
  7. orasis

    orasis Member

    aaaaah good :)
  8. orasis

    orasis Member

    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 ?
  9. till

    till Super Moderator

    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.
  10. nox171

    nox171 New Member

    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:
    chown -R -v -f web01_xx:web01 /var/www/web01/web/*
    And again when I've finished:
    chown -R -v -f wwwrun:root /var/www/web01/web/*
  11. orasis

    orasis Member

    hey till you say:

    but here: http://www.howtoforge.com/joomla_ispconfig
    .. it says:
    generally, is wwwrun the best owner to be set before uploading a dynamic site ?

    thanks alot
  12. falko

    falko Super Moderator

    You'd have to add web01_xx to the root group against which I strongly advise! :eek:
  13. SamTzu

    SamTzu HowtoForge Supporter

    There is an option in ISPConfig...

    Apache Directives

    Can you put here something that could loosen the php scripts so you didn't have to take away the PHPsafe mode?


Share This Page