Messed up installation

Discussion in 'Installation/Configuration' started by JamesH106, Sep 23, 2007.

  1. JamesH106

    JamesH106 New Member

    Hi,

    I just got my new server. I installed ISPConfig on it perfectly, but then I accidentally deleted /root/ispconfig. In my haste I deleted /home/admispconfig and [insert other directory here] and tried to reinstall.

    I've tried upwards of 3 times, each time unsuccessful.

    How can I revert back to a "clean" system - no apache, bind, etc.. without reformatting?

    I'm on Debian Etch.


    Thanks.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    If you deleted several directories beside /root/ispconfig and /home/admispconfig manually, you will have to reinstall your server as we can not tell you waht to do without knowing what was deleted exactly.
     
  3. JamesH106

    JamesH106 New Member

    I think I only remove /home/admispconfig, but after an unsuccessful reinstall I then deleted /root/ispconfig and /home/admispconfig.



    Thanks,
    James.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, if you just deleted these two directories, you dont have to reinstall your server.

    1) Run the following commands to make sure that you really deleted ISPConfig:

    rm -rf /home/admispconfig
    rm -rf /root/ispconfig

    2) Delete the ISPConfig database, the esaiest way is to delete the directory that is has the same name then the database in /var/lib/mysql/

    3) Unpack the ispconfig installer tar.gz file in /tmp/ again and run the setup script to reinstall ISPConfig.
     
  5. JamesH106

    JamesH106 New Member

    Hi,

    I reinstalled ISPConfig and created a domain, but I see the Shared IP page on it.

    How can I sort this out?

    Thanks.


    EDIT: I gave it some time and then it worked. The problem I have now is with php files [Example]. I've enabled php in the site management.
     
    Last edited: Sep 23, 2007
  6. falko

    falko Super Moderator ISPConfig Developer

    PHP is working now. :)
     
  7. JamesH106

    JamesH106 New Member

    Yeah. I had to manually mode php5.load and php5.conf to mods-enabled and add the php lines to Vhosts_ispconfig.conf, though :(

    I also created some new domains. The DNS is working, but the Vhosts haven't been added to Vhosts_ispconfig.conf though. This might be because root saved the file - what user needs to own it?
     
  8. falko

    falko Super Moderator ISPConfig Developer

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

    JamesH106 New Member

    Hi,

    The output is:

    Code:
    drwxr-xr-x 2 root root 1024 2007-09-23 11:31 .
    drwxr-xr-x 8 root root 1024 2007-09-23 10:11 ..
    -rw-r--r-- 1 root root 1985 2007-09-23 13:24 Vhosts_ispconfig.conf
    -rw-r--r-- 1 root root 1811 2007-09-22 17:57 Vhosts_ispconfig.conf_22-09-07_17-57-11
    -rw-r--r-- 1 root root 1811 2007-09-23 10:31 Vhosts_ispconfig.conf_23-09-07_10-32-00
    -rw-r--r-- 1 root root 1811 2007-09-23 10:32 Vhosts_ispconfig.conf_23-09-07_10-32-23
    -rw-r--r-- 1 root root 3118 2007-09-23 11:18 Vhosts_ispconfig.conf_23-09-07_11-18-59
    -rw-r--r-- 1 root root 3118 2007-09-23 11:19 Vhosts_ispconfig.conf_23-09-07_11-19-12
    -rw-r--r-- 1 root root 3118 2007-09-23 11:20 Vhosts_ispconfig.conf_23-09-07_11-20-24
    -rw-r--r-- 1 root root 3118 2007-09-23 11:20 Vhosts_ispconfig.conf_23-09-07_11-20-55
    -rw-r--r-- 1 root root 3118 2007-09-23 11:21 Vhosts_ispconfig.conf_23-09-07_11-21-06
    -rw-r--r-- 1 root root 4489 2007-09-23 11:29 Vhosts_ispconfig.conf_23-09-07_11-29-18
    -rw-r--r-- 1 root root 4474 2007-09-23 11:31 Vhosts_ispconfig.conf_23-09-07_11-31-01
    
     
  10. falko

    falko Super Moderator ISPConfig Developer

  11. JamesH106

    JamesH106 New Member

    I renamed the latest Vhosts_ispconfig.conf_xx file to Vhosts_ispconfig.conf, restarted apache and it all seems to be good.

    Thanks :)
     
  12. falko

    falko Super Moderator ISPConfig Developer

    Did you run
    Code:
    httpd -t
    ?
     

Share This Page