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


RE: Virtual servers deleted. How to get them back - kilburn - 03-20-2011 03:56 AM

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


RE: Virtual servers deleted. How to get them back - Krisxxx - 03-20-2011 06:33 PM

(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?


RE: Virtual servers deleted. How to get them back - Krisxxx - 03-20-2011 09:00 PM

Still cant get them restored :-(

This is driving me insain...

Any help anyone :-) ?


RE: Virtual servers deleted. How to get them back - Krisxxx - 03-21-2011 12:28 AM

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?


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

You have to find the 00_master (and maybe the awstats) config file.

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

/J


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

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 :-) ?


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

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


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

(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?


RE: Virtual servers deleted. How to get them back - joximu - 03-22-2011 11:07 PM

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


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

(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
#