Current time: 04-26-2024, 09:11 AM Hello There, Guest! (LoginRegister)


Post Reply 
Virtual servers deleted. How to get them back
Author Message
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #11
RE: Virtual servers deleted. How to get them back
You are missing the "master" configuration file (and probably the awstats site if you enabled stats). To restore them, use:
Code:
cp /etc/ispcp/apache/00_master.conf /etc/apache2/sites-available/
cp /etc/ispcp/apache/01_awstats.conf /etc/apache2/sites-available/
a2ensite 00_master
a2ensite 01_awstats
/etc/init.d/apache2 restart

Done Smile
03-20-2011 03:56 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: #12
RE: Virtual servers deleted. How to get them back
(03-20-2011 03:56 AM)kilburn Wrote:  You are missing the "master" configuration file (and probably the awstats site if you enabled stats). To restore them, use:
Code:
cp /etc/ispcp/apache/00_master.conf /etc/apache2/sites-available/
cp /etc/ispcp/apache/01_awstats.conf /etc/apache2/sites-available/
a2ensite 00_master
a2ensite 01_awstats
/etc/init.d/apache2 restart

Done Smile

You are right, but when i enter "a2ensite 00_master" its just says that the file i missing?
What am i doing wrong?
03-20-2011 06:33 PM
Find all posts by this user Quote this message in a reply
Krisxxx Offline
Junior Member
*

Posts: 88
Joined: Feb 2008
Reputation: 0
Post: #13
RE: Virtual servers deleted. How to get them back
Still cant get them restored :-(

This is driving me insain...

Any help anyone :-) ?
(This post was last modified: 03-20-2011 11:51 PM by Krisxxx.)
03-20-2011 09:00 PM
Find all posts by this user Quote this message in a reply
Krisxxx Offline
Junior Member
*

Posts: 88
Joined: Feb 2008
Reputation: 0
Post: #14
RE: Virtual servers deleted. How to get them back
I can see that im missing the file xxx.com (main domain) in my virtual hosts with the ip 127.0.0.1. Could this have something to do with the problem?
03-21-2011 12:28 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: #15
RE: Virtual servers deleted. How to get them back
You have to find the 00_master (and maybe the awstats) config file.

Try
find /etc -name 00_master.conf
to list them...

/J
03-21-2011 09:22 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: #16
RE: Virtual servers deleted. How to get them back
Here they are:
/etc/apache2/sites-enabled/00_master.conf
/etc/apache2/sites-available/00_master.conf
/etc/ispcp/apache/00_master.conf
/etc/ispcp/apache/working/00_master.conf

What to do now :-) ?
03-22-2011 12:30 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: #17
RE: Virtual servers deleted. How to get them back
ok, the sites-enabled/00_master.conf is a symlink to sites-available/00_master.conf

so you can compare the three real files. They contain only one VirtualHost entry - with the admin-URL as ServerName.

Hope you find the right...

/J
03-22-2011 10:09 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: #18
RE: Virtual servers deleted. How to get them back
(03-22-2011 10:09 AM)joximu Wrote:  ok, the sites-enabled/00_master.conf is a symlink to sites-available/00_master.conf

so you can compare the three real files. They contain only one VirtualHost entry - with the admin-URL as ServerName.

Hope you find the right...

/J

What do i do when i find the right?
03-22-2011 06:19 PM
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: #19
RE: Virtual servers deleted. How to get them back
copy to /etc/apache2/sites-available/...
then remove the symlink (or file?) /etc/apache2/sites-enabled/00_master.conf and then "a2ensite 00_master.conf"

and then go and read a good book about how to administrate a linux server...

/J
03-22-2011 11:07 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: #20
RE: Virtual servers deleted. How to get them back
(03-22-2011 11:07 PM)joximu Wrote:  copy to /etc/apache2/sites-available/...
then remove the symlink (or file?) /etc/apache2/sites-enabled/00_master.conf and then "a2ensite 00_master.conf"

and then go and read a good book about how to administrate a linux server...

/J

Could this be the 1?

# ispCP ω (OMEGA) a Virtual Hosting Control Panel
# Copyright © 2006-2010 by isp Control Panel - http://ispcp.net
#
# Version: $Id: 00_master.conf 2505 2010-01-06 20:30:53Z nuxwin $
#
# The contents of this file are subject to the Mozilla Public License
# Version 1.1 (the "License"); you may not use this file except in
# compliance with the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS"
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
# License for the specific language governing rights and limitations
# under the License.
#
# The Original Code is "ispCP ω (OMEGA) a Virtual Hosting Control Panel".
#
# The Initial Developer of the Original Code is ispCP Team.
# Portions created by Initial Developer are Copyright © 2006-2010 by
# isp Control Panel. All Rights Reserved.
#
# The ispCP ω Home Page is:
#
# http://isp-control.net
#

#
# Master Begin
#

<VirtualHost 192.168.1.50:80>

ServerAdmin 123@123.com
DocumentRoot /var/www/ispcp/gui

ServerName xxxx.com

Alias /errors /var/www/ispcp/gui/errordocs/

ErrorDocument 401 /errors/401.html
ErrorDocument 403 /errors/403.html
ErrorDocument 404 /errors/404.html
ErrorDocument 500 /errors/500.html
ErrorDocument 503 /errors/503.html

Alias /pma /var/www/ispcp/gui/tools/pma/
Alias /webmail /var/www/ispcp/gui/tools/webmail/
Alias /ftp /var/www/ispcp/gui/tools/filemanager/

<IfModule suexec_module>
SuexecUserGroup vu2000 vu2000
</IfModule>

<Directory /var/www/ispcp/gui>
Options -Indexes Includes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<IfModule mod_fcgid.c>
<Directory /var/www/ispcp/gui>
FCGIWrapper /var/www/fcgi/master/php5-fcgi-starter .php
Options +ExecCGI
</Directory>
<Directory "/var/www/fcgi/master">
AllowOverride None
Options +ExecCGI MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mod_fastcgi.c>
ScriptAlias /php5/ /var/www/fcgi/master/
<Directory "/var/www/fcgi/master">
AllowOverride None
Options +ExecCGI MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>

<IfModule mod_php5.c>
<Directory /var/www/ispcp/gui>
php_admin_value open_basedir "/var/www/ispcp/gui/:/etc/ispcp/:/var/run/ispcp.lock:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:/var/log/chkrootkit.log:/usr/share/php/"
php_admin_value session.save_path "/var/www/ispcp/gui/phptmp/"
php_admin_value upload_tmp_dir "/var/www/ispcp/gui/phptmp/"
</Directory>
</IfModule>

</VirtualHost>

#
# Master End
#
03-23-2011 04:08 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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