problem recreating deleted site

Discussion in 'Installation/Configuration' started by jusdisgi, Jun 2, 2008.

  1. jusdisgi

    jusdisgi New Member

    Hi everyone. I just ran into my first problem, and while it was originally caused by my own folly I think it may have uncovered a bug.

    I had created two clients with 1 site each. By accident I overwrote /var/www/web1/ which was the home of the first client/site. That was the aforementioned folly. But then I decided that to get it back to normal I'd just go into ISPConfig, delete the site and recreate it. That's when I got unexpected results.

    I deleted it fine. When I went to create it again, ISPConfig told me the name was already in use. So I went into the Recycle bin and emptied it, and then it allowed me to create the site, and acted like everything was fine. However, I got a browser error when I tried to go there. Looking at the directories and the /etc/apache2/vhosts/Vhosts_ispconfig.conf file, it was obvious why. The system had removed the /var/www/web1 directory and created a new /var/www/web4 directory, which was expected, consistent with the naming shown in the ISPConfig interface. But in the Vhosts_isponfig.conf file all the instances of 'web1' remained. At this point it should be noted that Apache would not restart, because the config was broken. Replacing all the 'web1' instances with 'web4' seems to have fixed the problem.

    Anyway, this isn't a big deal for me...it's an easy enough problem to fix and should only happen rarely anyway. But it does seem like ISPConfig is missing a step someplace there, so I thought I'd provide this report.

    That's the only problem I've encountered so far...this thing is really slick. Thanks!
     
  2. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    What you did is a common task and it works for me fine in ISPConfig. Maybe the process was somehow interrupoted on your server. I'am sure that this is not a general bug.

    Plesae have a look in /home/admispconfig/ispconfig/ispconfig.log if there are any wrnings or errors.
     
  3. jusdisgi

    jusdisgi New Member

    Thanks Till, your quick responses are always appreciated. And also, I'm glad you had me look at that (tremendously verbose) logfile...there's a lot of clues to how stuff is being done in there.

    I've posted the whole log here: http://pastebin.com/m21303c6d

    The relevant lines are about 165-275. There are no errors, but several warnings of this type: "WARNING: could not . /etc/apache2/envvars && httpd -t &> /dev/null" and a few others.

    Some time later I did delete and recreate another site without a problem. The only difference in procedure was that I emptied the recycle bin prior to recreating it. Anyway, thanks again for your help.
     
  4. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    What's the output of
    Code:
    ls -la /etc/apache2/vhosts
    ?
     
  5. jusdisgi

    jusdisgi New Member

    debian:~# ls -la /etc/apache2/vhosts
    total 72
    drwxr-xr-x 2 root root 4096 2008-06-02 14:39 .
    drwxr-xr-x 8 root root 4096 2008-06-02 12:31 ..
    -rw-r--r-- 1 root root 4360 2008-06-02 14:43 Vhosts_ispconfig.conf
    -rw-r--r-- 1 root root 4360 2008-06-02 14:43 Vhosts_ispconfig.conf~
    -rw-r--r-- 1 root root 4358 2008-06-02 13:03 Vhosts_ispconfig.conf_02-06-08_13-03-44
    -rw-r--r-- 1 root root 4358 2008-06-02 13:04 Vhosts_ispconfig.conf_02-06-08_13-04-17
    -rw-r--r-- 1 root root 2378 2008-06-02 13:11 Vhosts_ispconfig.conf_02-06-08_13-11-29
    -rw-r--r-- 1 root root 2378 2008-06-02 13:13 Vhosts_ispconfig.conf_02-06-08_13-13-14
    -rw-r--r-- 1 root root 4358 2008-06-02 13:14 Vhosts_ispconfig.conf_02-06-08_13-14-09
    -rw-r--r-- 1 root root 4358 2008-06-02 13:15 Vhosts_ispconfig.conf_02-06-08_13-15-04
    -rw-r--r-- 1 root root 4358 2008-06-02 13:15 Vhosts_ispconfig.conf_02-06-08_13-15-59
     
  6. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

Share This Page