Current time: 04-27-2024, 06:33 AM Hello There, Guest! (LoginRegister)


Post Reply 
Change IP
Author Message
BulleT Offline
Junior Member
*

Posts: 18
Joined: Mar 2010
Reputation: 0
Post: #1
Change IP
How do I change the IP ?

The IP that I used in the first place to install ispcp is listed in the spamhaus, I have another one which is not. How do I use that one ?
03-12-2010 12:03 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: Change IP
Please read the Docu --> http://www.isp-control.net/documentation...:change_ip

Greez BeNe
03-12-2010 12:07 AM
Visit this user's website Find all posts by this user Quote this message in a reply
BulleT Offline
Junior Member
*

Posts: 18
Joined: Mar 2010
Reputation: 0
Post: #3
RE: Change IP
Thank you very much BeNe.
root@phpqa:~# sed -i "s/86.122.121.252/86.126.159.38/g" /etc/apache2/sites-available/* /etc/bind/* /var/cache/bind/* /etc/ispcp/*/working/*
sed: can't read /var/cache/bind/*: No such file or directory

and

root@phpqa:~# /etc/init.d/apache2 restart
* Restarting web server apache2 [Thu Mar 11 20:14:43 2010] [warn] NameVirtualHost 86.126.159.38:80 has no VirtualHosts
... waiting .[Thu Mar 11 20:14:45 2010] [warn] NameVirtualHost 86.126.159.38:80 has no VirtualHosts

Something gone wrong...


The cp's address is with the old ip address but it's just a 404.
(This post was last modified: 03-12-2010 04:17 AM by BulleT.)
03-12-2010 03:52 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #4
RE: Change IP
Please post your 00_master.conf for the CP problem.

Greez BeNe
03-12-2010 04:28 PM
Visit this user's website Find all posts by this user Quote this message in a reply
BulleT Offline
Junior Member
*

Posts: 18
Joined: Mar 2010
Reputation: 0
Post: #5
RE: Change IP
Code:
root@phpqa:~# cat /etc/ispcp/apache/00_master.conf
# ispCP Ï (OMEGA) a Virtual Hosting Control Panel
# Copyright (C) 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 (C) 2006-2010 by
# isp Control Panel. All Rights Reserved.
#
# The ispCP Ï Home Page is:
#
#    http://isp-control.net
#

#
# Master Begin
#

<VirtualHost {BASE_SERVER_IP}:80>

    ServerAdmin     {DEFAULT_ADMIN_ADDRESS}
    DocumentRoot    {ROOT_DIR}/gui

    ServerName      {BASE_SERVER_VHOST}

    Alias /errors   {ROOT_DIR}/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      {ROOT_DIR}/gui/tools/pma/
    Alias /webmail  {ROOT_DIR}/gui/tools/webmail/
    Alias /ftp      {ROOT_DIR}/gui/tools/filemanager/

    <IfModule suexec_module>
           SuexecUserGroup {APACHE_SUEXEC_USER_PREF}{APACHE_SUEXEC_MIN_UID} {APACHE_SUEXEC_USER_PREF}{APACHE_SUEXEC_MIN_GID}
    </IfModule>

    <Directory {ROOT_DIR}/gui>
        Options -Indexes Includes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>

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

    <IfModule mod_php5.c>
        <Directory {ROOT_DIR}/gui>
            php_admin_value open_basedir "{WWW_DIR}/{DMN_NAME}/:{CONF_DIR}/:{MR_LOCK_FILE}:/proc/:/bin/df:/bin/mount:{RKHUNTER_LOG}:{CHKROOTKIT_LOG}:{PEAR_DIR}/{OTHER_ROOTKIT_LOG}"
            php_admin_value session.save_path "{ROOT_DIR}/gui/phptmp/"
            php_admin_value upload_tmp_dir "{ROOT_DIR}/gui/phptmp/"
        </Directory>
    </IfModule>

</VirtualHost>

#
# Master End
#

I didn't alter it in anyway what so every.

http://isp-control.net/forum/thread-9928.html if you are so kind! Sad

Thank you.
03-13-2010 02:30 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #6
RE: Change IP
This is the ispCP Template and not your ApacheConfig used by the Apache this time - OR ?

What OS is installed on your Server ?

Greez BeNe
03-13-2010 08:17 AM
Visit this user's website Find all posts by this user Quote this message in a reply
BulleT Offline
Junior Member
*

Posts: 18
Joined: Mar 2010
Reputation: 0
Post: #7
RE: Change IP
Ubuntu Server 9.10
03-13-2010 05:47 PM
Find all posts by this user Quote this message in a reply
BulleT Offline
Junior Member
*

Posts: 18
Joined: Mar 2010
Reputation: 0
Post: #8
RE: Change IP
After the change of the IP in the panel it's still the old IP.

[Image: capturejgv.th.jpg]

Probably it's the reason courier-imap is not working ?
03-13-2010 07:44 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #9
RE: Change IP
Change the IP in /etc/ispcp/ispcp.conf and regenerate the configurations:
Code:
cp /etc/ispcp/ispcp.conf /etc/ispcp/ispcp.old.conf
cd /var/www/ispcp/engine/setup
perl ispcp-update
rm /etc/ispcp/ispcp.old.conf

Done Smile
03-14-2010 04:37 AM
Visit this user's website Find all posts by this user Quote this message in a reply
BulleT Offline
Junior Member
*

Posts: 18
Joined: Mar 2010
Reputation: 0
Post: #10
RE: Change IP
Done! Thank you kilburn!
03-14-2010 06:26 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)