The easiest way to recreate /var/www/webX directory

Discussion in 'Installation/Configuration' started by cvladan, May 8, 2009.

  1. cvladan

    cvladan New Member

    My ISPConfig accidentally removed the whole /var/www directory.

    Tragedy! Here it is, from log file:

    08.05.2009 - 02:46:28 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2584: mv -f /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf_08-05-09_02-46-28
    08.05.2009 - 02:46:59 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2663: rm -fr /var/www/
    08.05.2009 - 02:46:59 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2664: rm -fr /var/www/web72

    Notice in the second line: rm -fr /var/www/
    This happened when I removed some domains from recycle bin.

    Anyway - there should be a simple check for that, just before it.

    What happened - it's past. Now, for the future.

    What is the easiest method for ISPConfig to recreate all /var/www/web22 (for example) content, for some domain (and users), from MySQL database records (they are all there).

    This one?
    /root/ispconfig/php/php -q /root/ispconfig/scripts/writeconf.php

    Please, it's quite urgent :(
    I need help.
  2. falko

    falko Super Moderator ISPConfig Developer

    That's the first time I hear of such a problem.

    Before you do this, you must set the status fields of all web sites in the ISPConfig database to 'n'.

Share This Page