/var/www/ rights altered

Discussion in 'General' started by ppeelen, Jan 12, 2008.

  1. ppeelen

    ppeelen New Member


    Don't ask me why, but I've manished to manually change the chown rights on /var/www/..

    The /var/www/ is still under root:root, but so are even the underlying directories. I am searching for a way to solve this problem, and to restore it to the rights it was before (web1_admin:web1 ect.)

    Does anyone know how to do this?

    Best regards,
    Paul Peelen
  2. tensor

    tensor New Member

    If there are a lot of sites on your ISPConfig installation I suggest writing the script which would query the ispconfig MySQL database and change the permissions accordingly. If the are only a few sites, doing it by hand may be quicker.
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    You can try the following procedure:

    1) Run the following SQL statement in the ispconfig database:

    UPDATE isp_isp_web SET status = 'u' WHERE status = '';

    Then change a setting of one of your websites in ISPConfig, e.g. quota, and click on save. ISPConfig will now update all your sites and will most likely be able to restore the correct permissions.
  4. ppeelen

    ppeelen New Member

    Allright, great. That really fixed the problem.

Share This Page