ispCP - Board - Support
Virtual servers deleted. How to get them back - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: Virtual servers deleted. How to get them back (/thread-13083.html)

Pages: 1 2 3


Virtual servers deleted. How to get them back - Krisxxx - 03-17-2011 06:28 AM

Hi
I was changing my system ip adress with your manual in here. Everything was working except a couple of pages og i was using webmin to check the ip adresses of the virtual server in apache. Then i really screwed up and accidently deleted them all :-/ There was some not in use any more and i wanted to delete them and then it went all wrong.

I have a Debian Lenny with ispcp 1.0.7

Now is there anyway i can get them back in an easy way? Any help would be very appriciated. I really dont know where to begin. I cant even get into the admin area.

Kris the embaressed


I get errors like this in the error.log
[Wed Mar 16 21:01:41 2011] [notice] mod_fcgid: process /var/www/virtual/zoosalon.dk/htdocs/salon/index.php(3689) exit(communication error), terminated by calling exit(), return code: 255

Now i get this when i try to start apache:

Starting web server: apache2apache2: Syntax error on line 281 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/sites-enabled/: No such file or directory
failed!

The folder sites-enabled and ispcp.conf are now made. Is the anyway to copy the virtual server over there?


RE: Virtual servers deleted. How to get them back - Krisxxx - 03-17-2011 07:41 AM

Could it be the /etc/apache2/sites-enabled/ispcp.conf file? How should it look?

The /etc/apache2/sites-available/ispcp.conf look rightly configured with all my virtual hosts and with ispcp


RE: Virtual servers deleted. How to get them back - joximu - 03-17-2011 10:27 AM

Normally there's a backup (or more specific: the original) of the apache config in /etc/ispcp/apache/working/ispcp.conf

and you also have backups in /var/www/ispcp/backup/*

/J
and btw:
the files in /etc/apache2/sites-enabled are symlinks to files in /etc/apache2/sites-available ... so do also make use of symlinks - because ispcp replaces the file in sites-available... :-)

/J


RE: Virtual servers deleted. How to get them back - Krisxxx - 03-18-2011 01:37 AM

Ok found my backups :-), how do i make use of symlinks?


RE: Virtual servers deleted. How to get them back - Krisxxx - 03-18-2011 04:53 AM

It worked!!! All the sites are back online Big Grin Thank you!!!

Now the only problem is that i cant login to ispcp. When i put my web adress for the ispcp server xxxxx.com im being redirected to a customer page on the server.

Where do i change that?
Could it be something in the database after changing the server ip?


RE: Virtual servers deleted. How to get them back - Krisxxx - 03-18-2011 06:18 AM

(03-18-2011 04:53 AM)Krisxxx Wrote:  It worked!!! All the sites are back online Big Grin Thank you!!!

Now the only problem is that i cant login to ispcp. When write my domain adress for the ispcp server "xxxxx.com" im being redirected to a customer page on the server.

Where do i change that?
Could it be something in the database after changing the server ip?



RE: Virtual servers deleted. How to get them back - Krisxxx - 03-19-2011 02:22 AM

As i said before all the sites are up and thats great Big Grin

But my problem is now the i cant access my ispcp server by the server domain name xxxxx.com. It only redirects to another site on the server.

In which file can i change that?

Please help me :-)


RE: Virtual servers deleted. How to get them back - Krisxxx - 03-19-2011 04:03 AM

(03-19-2011 02:22 AM)Krisxxx Wrote:  As i said before all the sites are up and thats great Big Grin

But my problem is now the i cant access my ispcp server by the server domain name xxxxx.com. It only redirects to another site on the server.

In which file can i change that?

Please help me :-)

Or where can i change that. Need my admin interface :-)


RE: Virtual servers deleted. How to get them back - joximu - 03-19-2011 09:14 PM

try "apache2ctl -S" to see which vhosts (including the master-site/ispcp-login) are configured on which ip.

depending on what is written, you have to decide how to continue...

what if you browse to http://1.2.3.4 (ip address of the ispcp)... ?

/J


RE: Virtual servers deleted. How to get them back - Krisxxx - 03-20-2011 01:38 AM

My server domain isnt on the list (ispcp domain) :-( But all the other domains are. If i write the ip of the server i get another site on the server...Sad
(03-20-2011 01:38 AM)Krisxxx Wrote:  My server domain isnt on the list (ispcp domain) :-( But all the other domains are. If i write the ip of the server i get another site on the server...Sad

Help!