Cannot upload web content

Discussion in 'Installation/Configuration' started by ratebri, Feb 7, 2006.

  1. ratebri

    ratebri New Member

    Hi folks,

    I have ispconfig installed with SuSE 10. Mail, DNS etc works all fine.
    But I have still a problem with uploading websites. When I put a index.html file in /var/www/web1/web/ for example I receive access denied!!
    What is going wrong???
    Best regards
    -----
    Ralf
     
  2. falko

    falko Super Moderator Howtoforge Staff

    You mean you can't upload the file with FTP?
    Please post the output of
    Code:
    ls -la /var/www/web1
    and
    Code:
    ls -la /var/www/web1/web
     
  3. ratebri

    ratebri New Member

    sl102:/var/www/web1/web # ls -al
    total 19
    drwxrwxr-x 5 info web1 152 2006-02-07 19:45 .
    drwxr-xr-x 10 info web1 2976 2006-02-07 19:44 ..
    drwxrwxr-x 2 info web1 352 2005-11-30 20:18 error
    -rw-r--r-- 1 info web1 15897 2006-02-07 16:03 index.html
    drwxr-xr-x 15 info web1 816 2005-12-06 15:49 joomla
    drwxr-xr-x 2 info web1 80 2005-12-01 04:00 stats

    sl102:/var/www/web1 # ls -al
    total 675
    drwxr-xr-x 10 info web1 2976 2006-02-07 19:44 .
    drwxr-xr-x 7 root root 304 2006-02-02 00:28 ..
    drwxrwxr-x 2 info web1 80 2005-11-30 20:18 cgi-bin
    -rw------- 1 info web1 24 2006-02-05 12:16 .forward
    -rw-rw-r-- 1 root web1 248 2006-02-07 04:00 htpasswd.txt
    -rw-r--r-- 1 info web1 15897 2006-02-07 16:05 index.html
    drwxr-xr-x 2 info web1 112 2005-11-30 20:18 log
    lrwxrwxrwx 1 root root 36 2006-02-05 12:16 Maildir -> /var/www/web1/user/rtbrixius/Maildir
    drwxrwxrwx 2 info web1 80 2005-11-30 20:18 phptmp
    -rw-r--r-- 1 root root 424 2006-02-05 12:16 .procmailrc
    drwx------ 2 info web1 144 2006-02-07 18:17 .spamassassin
    drwxr-xr-x 2 info web1 80 2005-11-30 20:18 ssl
    drwx------ 2 info web1 48 2006-02-07 18:17 tmp
    drwxr-xr-x 10 info web1 280 2006-02-05 12:16 user
    lrwxrwxrwx 1 root root 44 2006-02-05 12:16 .vacation.cache -> /var/www/web1/user/rtbrixius/.vacation.cache
    -rw-r--r-- 1 info web1 27 2006-02-04 21:28 ViewerParams.ini
    drwxrwxr-x 5 info web1 152 2006-02-07 19:45 web
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Are you logging in as user info with your FTP client?
     
  5. ratebri

    ratebri New Member

    ...no, I'm logging in with rtbrixius which is the administrator.
    I even have a user info.
    Very, very strange ;-(
     
  6. falko

    falko Super Moderator Howtoforge Staff

    The files are owned by info, so you must login as info (who should be the admin of the site).
    Did you maybe change something manually in the database?
     
  7. ratebri

    ratebri New Member

    Falko, the files are now owned by rtbrixius. I didn't change anything manually in the database. But I have still the same problem and my clients to. There is still access denied Error 403. Can you give me a hint where can I look for.
     
  8. falko

    falko Super Moderator Howtoforge Staff

    The 403 error is now an error from Apache.
    Is the FTP upload working now?
    Please post the output of

    Code:
    ls -la /var/www/web1
    and

    Code:
    ls -la /var/www/web1/web
    again.
     
  9. ratebri

    ratebri New Member

    ls -al /var/www/web1
    total 37
    drwxr-xr-x 10 rtbrixius web1 488 2006-02-08 14:49 .
    drwxr-xr-x 7 root root 304 2006-02-02 00:28 ..
    drwxrwxr-x 2 rtbrixius web1 80 2005-11-30 20:18 cgi-bin
    -rw------- 1 rtbrixius web1 24 2006-02-05 12:16 .forward
    -rw-rw-r-- 1 root web1 248 2006-02-07 04:00 htpasswd.txt
    -rw-r--r-- 1 rtbrixius web1 15897 2006-02-07 16:05 index.html
    drwxr-xr-x 2 rtbrixius web1 112 2005-11-30 20:18 log
    lrwxrwxrwx 1 root root 36 2006-02-05 12:16 Maildir -> /var/www/web1/user/rtbrixius/Maildir
    -rw-rw-r-- 1 root web1 248 2006-02-08 04:00 .mierdapasswd
    drwxrwxrwx 2 rtbrixius web1 80 2005-11-30 20:18 phptmp
    -rw-r--r-- 1 root root 424 2006-02-05 12:16 .procmailrc
    drwx------ 2 rtbrixius web1 144 2006-02-08 17:38 .spamassassin
    drwxr-xr-x 2 rtbrixius web1 80 2005-11-30 20:18 ssl
    drwx------ 2 rtbrixius web1 48 2006-02-08 17:38 tmp
    drwxr-xr-x 10 rtbrixius web1 280 2006-02-05 12:16 user
    lrwxrwxrwx 1 root root 44 2006-02-05 12:16 .vacation.cache -> /var/www/web1/user/rtbrixius/.vacation.cache
    -rw-r--r-- 1 rtbrixius web1 27 2006-02-04 21:28 ViewerParams.ini
    drwxr-xr-x 5 rtbrixius web1 152 2006-02-07 19:45 web


    ls -al /var/www/web1/web
    total 17
    drwxr-xr-x 5 rtbrixius web1 152 2006-02-07 19:45 .
    drwxr-xr-x 10 rtbrixius web1 488 2006-02-08 14:49 ..
    drwxrwxr-x 2 rtbrixius web1 352 2005-11-30 20:18 error
    -rw-r--r-- 1 rtbrixius web1 15897 2006-02-07 16:03 index.html
    drwxr-xr-x 15 rtbrixius web1 816 2005-12-06 15:49 joomla
    drwxr-xr-x 2 rtbrixius web1 80 2005-12-01 04:00 stats
     
  10. ratebri

    ratebri New Member

    Falko, I was checking the apache configuration and realized that when I put a index.html file directly under /var/www/ the content is displayed without any problem. It seems that it is a problem with the virtual host configuration???

    Any hints???
     
  11. falko

    falko Super Moderator Howtoforge Staff

    Is Vhosts_ispconfig.conf included in your Apache configuration? What's in Vhosts_ispconfig.conf?
     

Share This Page