used chown and now domain is broken !

Discussion in 'Installation/Configuration' started by daveporter, Jan 3, 2012.

  1. daveporter

    daveporter New Member

    Hi All,

    First post here!

    I am using ISPConfig on Linode and was having problems getting wordpress updates from within admin working.

    Someone suggested entering this chown command:
    sudo chown -R www-data:www-data /var/www/

    And now the site is broken!
    (Error below!)

    Can anyone help with fixing this please ?
    Is it as easy as reversing the chown command ( if so what would the syntax be ?)
    TIA Dave

    ERROR 500 - Internal Server Error!
    The following error occurred:
    The requested URL caused an internal server error.
    If you get this message repeatedly please contact the webmaster.
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    This was a bad suggestion, as this breaks all exising sites on the server.

    Thats not that easy as the different subfolders in /var/www have different owners. How many websites do you host on that server?
  3. daveporter

    daveporter New Member

    Thanks for the prompt reply !

    I have two domains currently, but only one is important!
    (The other is working - but it is just a simple index.html - nothing else!)

    Regards, Dave
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok. To fix your setup, take a look in the website settings in ispconfig, there you can find the username and group of each website on the options tab. Note down the domain name and user and group for both sites.

    then execute this command for each site:

    chown -R web1:client0 /var/www/domain.tld

    replace web1 with the user of the website and client0 with the group of the website and domain.tld with the doamin name of the website.

    Regarding your original problem with the wordpress updates, ensure that you use the php mode "php-fcgi" in the website settings and that the suexec checkbox is enabled, this ensures that wordpress can write into the website.
  5. daveporter

    daveporter New Member

    Thanks so much Till - will follow that and let you know how I go !
  6. daveporter

    daveporter New Member

    Oops Sorry - I should read more slowly - I see these settings are in the ISPconfig interface - but I can't see the user and group settings !
    & Can't see an Options tab page anywhere...

    Update: I purchased the ISPConfig manual, and can see an image with an Options tab page - but I don't have that on mine ! At least I'm not going mad :)

    Also PHP was set to Fast-CGI and the suexec checkbox is enabled !


    Ignore below!
    Sorry for not working this out, but where is the config file that stores this information ?

    I've been googling and searching and the only reference to config files I can find is:

    And neither seems to contain anything like what you described !

    TIA, Dave
    Last edited: Jan 3, 2012
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    login as admin user, not as client or reseller. Then go to sites, click on the website you want to repair and then you will see several tabs, go to the options tab and there you will see the username and group of the website.

    This information is in the mysql database, not a config file.
  8. daveporter

    daveporter New Member

    Thanks I worked that out eventually !

    OK so that has changed things - I now get an error:
    No input file specified
    When I access the site.

    But now my Linode is also not behaving, so I'l sort that out first...
    (I Don't get the ISPConfig login screen !)

    Cheers, Dave

Share This Page