UninstallNginxFromADTCServer

If you have installed nginx (as a reverse proxy), and for any reason, the installation goes wrong, your DTC server is no more accessible, even with his local ip. Then read this guide to properly uninstall nginx.

First of all, uninstall nginx:

 apt-get --purge remove nginx 

After that, you have many ways to modify manually your DTC configuration. Here, the 'mysql commands' way is described:

 mysql --defaults-file=/etc/mysql/debian.cnf
 use dtc;
 mysql> SELECT * FROM config;
 update config set nated_vhost_ip='xxx.xxx.xxx.xxx.xxx';
 mysql> quit;
 /usr/share/dtc/admin/install/install

xxx.xxx.xxx.xxx must be replaced by an ip address. Depending on your configuration, you can put your public ip or a the local ip of your server.

After the end of the install script, you have to change the resolv.conf file , located in the /etc/ directory.

Once in the right directory, edit resolv.conf:

 nano resolv.conf

Delete this line:

 nameserver 127.0.0.1

Save and exit the file.

Now you have to delete the rpaf files located in /etc/apache2/mods_available and /etc/apache2/mods_enabled. In the 2 directories, just make:

 rm rapf.*

To finish, restart apache:

 /etc/init.d/apache2 restart

Normally, your DTC server is accessible again.

Thank you to GPLHost and jcdirks for your precious help.


Editing this page means accepting its license.

Page last modified on September 22, 2010, at 08:25 PM EST