File does not exist: /var/www/

Discussion in 'Installation/Configuration' started by pineapple, Sep 26, 2011.

  1. pineapple

    pineapple New Member

    Hello

    I moved the Linode running our ISPConfig2 system from one Linode to another on the weekend (image transfer) and got it back up an running just fine but our website no longer shows correctly (no images, no styles, links don't work).

    When I check the Apache logs I get a whole lot of File does not exist errors:

    Code:
     [Sun Sep 25 10:25:24 2011] [error] [client 65.52.110.19] File does not exist: /var/www/robots.txt
    [Sun Sep 25 10:26:02 2011] [error] [client 65.52.110.19] File does not exist: /var/www/index.php
    [Sun Sep 25 10:28:30 2011] [error] [client 65.52.110.19] File does not exist: /var/www/plugins, 
    [Sun Sep 25 10:28:30 2011] [error] [client 65.52.110.19] File does not exist: /var/www/plugins, 
    
    Which is correct - the files live under /var/www/web1/web - I am assuming I have mucked up the vhosts somehow if anyone can point me in the right direction?

    best regards

    Andrew
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Did you adjust the IP addresses in your Vhosts_ispconfig.conf? They must match your eth0 address from the
    Code:
    ifconfig 
    output.
     
  3. pineapple

    pineapple New Member

    I didn't Falko, but I have done now. Restarting Apache gives me the following:

    Code:
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    Restarting web server: apache2shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
     ... waiting shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    I've missed something?

    Andrew
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    you are currentld in a non existing directory: run:

    cd /

    and then try to restart apache again as falko suggested.
     
  5. pineapple

    pineapple New Member

    You're a legend! Thanks very much.

    Always learning.

    Andrew
     

Share This Page