URGENT: I accidentally uninstalled ispconfig

Discussion in 'General' started by lovendo, May 9, 2014.

  1. lovendo

    lovendo New Member

    Hi, I'll tell you later how I made this big mistake....

    The thing is that I accidentally executed 'php -q uninstall.php' from the ispconfig sources folders. I'm pretty f*cked :mad:

    The good thing is that I have a snapshot of the server as it was last week. I'm writing you to ask some help about how to get (and which are) the essential ispconfig conf files from this snapshot, put them again in the actual server's state and then:
    - php -q update.php?
    - or, php -q install.php?

    Please, some help will be more than welcome :(
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Take a look at the uninstall.php script to see which files and folders have to bre restored.

    Code:
    exec("/etc/init.d/mysql stop");
    exec("rm -rf /var/lib/mysql/".$conf["db_database"]);
    exec("/etc/init.d/mysql start");
    
    // Deleting the symlink in /var/www
    // Apache
    @unlink("/etc/apache2/sites-enabled/000-ispconfig.vhost");
    @unlink("/etc/apache2/sites-available/ispconfig.vhost");
    @unlink("/etc/apache2/sites-enabled/000-apps.vhost");
    @unlink("/etc/apache2/sites-available/apps.vhost");
    
    // nginx
    @unlink("/etc/nginx/sites-enabled/000-ispconfig.vhost");
    @unlink("/etc/nginx/sites-available/ispconfig.vhost");
    @unlink("/etc/nginx/sites-enabled/000-apps.vhost");
    @unlink("/etc/nginx/sites-available/apps.vhost");
    
    // Delete the ispconfig files
    exec('rm -rf /usr/local/ispconfig');
    
    // Delete various other files
    @unlink("/usr/local/bin/ispconfig_update.sh");
    @unlink("/usr/local/bin/ispconfig_update_from_svn.sh");
    @unlink("/var/spool/mail/ispconfig");
    @unlink("/var/www/ispconfig");
    @unlink("/var/www/php-fcgi-scripts/ispconfig");
    @unlink("/var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter");
     
  3. lovendo

    lovendo New Member

    Thanks for the fast reply. I'm working on it ...
     
  4. lovendo

    lovendo New Member

    Everything back to normal, yijaaaa. It took some time for Proxmox to restore the snapshots :rolleyes:

    For those using CentOS and yet ISPConfig 3.0.5.3, the only operations to do are:
    - copy back again the dbispconfig database in /var/lib/mysql/
    - copy back again the ispconfig in /usr/local/

    Symbolic links from /etc/apache are not unlinked since this is not a debian-based distro, so apache runs in /etc/httpd

    Thanks till for the hint
     

Share This Page