Current time: 11-17-2024, 01:43 AM Hello There, Guest! (LoginRegister)


Post Reply 
Virtual servers deleted. How to get them back
Author Message
Krisxxx Offline
Junior Member
*

Posts: 88
Joined: Feb 2008
Reputation: 0
Post: #1
Virtual servers deleted. How to get them back
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?
(This post was last modified: 03-17-2011 07:15 AM by Krisxxx.)
03-17-2011 06:28 AM
Find all posts by this user Quote this message in a reply
Krisxxx Offline
Junior Member
*

Posts: 88
Joined: Feb 2008
Reputation: 0
Post: #2
RE: Virtual servers deleted. How to get them back
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
(This post was last modified: 03-17-2011 07:44 AM by Krisxxx.)
03-17-2011 07:41 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #3
RE: Virtual servers deleted. How to get them back
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
(This post was last modified: 03-17-2011 10:28 AM by joximu.)
03-17-2011 10:27 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Krisxxx Offline
Junior Member
*

Posts: 88
Joined: Feb 2008
Reputation: 0
Post: #4
RE: Virtual servers deleted. How to get them back
Ok found my backups :-), how do i make use of symlinks?
03-18-2011 01:37 AM
Find all posts by this user Quote this message in a reply
Krisxxx Offline
Junior Member
*

Posts: 88
Joined: Feb 2008
Reputation: 0
Post: #5
RE: Virtual servers deleted. How to get them back
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?
(This post was last modified: 03-18-2011 05:45 AM by Krisxxx.)
03-18-2011 04:53 AM
Find all posts by this user Quote this message in a reply
Krisxxx Offline
Junior Member
*

Posts: 88
Joined: Feb 2008
Reputation: 0
Post: #6
RE: Virtual servers deleted. How to get them back
(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?
03-18-2011 06:18 AM
Find all posts by this user Quote this message in a reply
Krisxxx Offline
Junior Member
*

Posts: 88
Joined: Feb 2008
Reputation: 0
Post: #7
RE: Virtual servers deleted. How to get them back
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 :-)
03-19-2011 02:22 AM
Find all posts by this user Quote this message in a reply
Krisxxx Offline
Junior Member
*

Posts: 88
Joined: Feb 2008
Reputation: 0
Post: #8
RE: Virtual servers deleted. How to get them back
(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 :-)
03-19-2011 04:03 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #9
RE: Virtual servers deleted. How to get them back
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
03-19-2011 09:14 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Krisxxx Offline
Junior Member
*

Posts: 88
Joined: Feb 2008
Reputation: 0
Post: #10
RE: Virtual servers deleted. How to get them back
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!
(This post was last modified: 03-20-2011 01:49 AM by Krisxxx.)
03-20-2011 01:38 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 3 Guest(s)