• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

Changing server IPs

H

hakkrdan

Guest
Hello, all -

I'm going to be moving my Plesk setup to another location here soon. With that, I'll be having to change IPs on the server.

I know how to move a server, I've had lots of experience doing it. However, I don't have any experience donig this with Plesk.

How should I go about re-configuring Plesk to accomodate for the new IPs, incluiding updating DNS information in Plesk, as well as the IPs that Web Sites are assigned to?

Thanks for the time
-dant
 
Hello -

This sounds like a good idea, but as one of the commentators had replied on the other board, this script only reconfigures IPs on the base interface, and no aliased or virtual interfaces.

Perhaps I can modify it. I'll take a look.

Thanks!
-dant
 
7.5.3 now has /usr/local/psa/admin/bin/websrvmng which has add/delete IP from webserver, haven'tr tried it, but I would imagine it would also have the same limitations as the old reconfigurator script (regarding alias and virtual interfaces)

I imagine that Plesk *assumes* that you have a single NIC in the server for the outside world. Sad.

Usage: websrvmng [OPTIONS]...

-a, --reconfigure-all
create configuration files for all domains
-m, --change-admin-email --email=<admin_email>
change admin email
-n, --install-vhost --vhost-name=<domain_name>
creates virtual hosting in webserver (physical, frame forward, standard forward)
-u, --reconfigure-vhost --vhost-name=<domain_name>
webserver reconfiguration for one given host
-d, --remove-vhost --vhost-name=<domain_name>
removes virtual hosting from server
-i, --set-certificate --ip-address=<ip_address>
change certificate associated with IP address. Affects all SSL virtual hosts on given IP (SSL certificate should be changed on those hosts)
--set-default-domain --ip-address=<ip_address> --vhost-name=<domain_name>
sets default domain for IP address. Thus, all HTTP requests which have come on given IP and for which there is no appropriate domain, should come on given default domain
--reset-default-domain --ip-address=<ip_address>
delete default domain for IP address
--add-ip-address --ip-address=<ip_address>
adds IP address to webserver
--remove-ip-address --ip-address=<ip_address>
removes IP address from webserver

--add-protection --vhost-name=<domain> --directory=<dir>
adds protection to directory
--remove-protections --vhost-name=<domain>
removes protection from directory
--update-protection --vhost-name=<domain> --directory=<dir>
change protected directory properties
--add-web-user --vhost-name=<domain> --web-user=<user>
add webuser to webserver configuration
--update-web-user --vhost-name=<domain> --web-user=<user>
updates webuser configuration in webserver
--remove-web-users --vhost-name=<domain>
delete webuser from webserver configuration
--features
returns PHP code which reflects state of several features support in websrvmng.
--install-fp --vhost-name=<domain> --user-name=<user> --port=<443|80> --admin-name=<admin>
The noncrypted admin password is transferred in the environment variable PSA_PASSWORD
--remove-fp --vhost-name=<domain> --user-name=<user> --port=<443|80>

--enable-fp --vhost-name=<domain> --user-name=<user> --port=<443|80>

--disable-fp --vhost-name=<domain> --user-name=<user> --port=<443|80>

--rename-admin-fp --vhost-name=<domain> --user-name=<user> --port=<443|80> --new-name=<new_admin> [--old-name=<old_admin>]
The noncrypted admin password is transferred in the environment variable PSA_PASSWORD
--change-password-fp --vhost-name=<domain> --user-name=<user> --port=<443|80> --admin-name=<admin>
The noncrypted admin password is transferred in the environment variable PSA_PASSWORD
-w, --without-restart
without restart apache & tomcat. Can used with another options
-p, --start
start webserver
-o, --stop
stop webserver
-s, --status
webserver status
-r, --restart
restart webserver
-t, --restart-tomcat
with restart tomcat
-v, --no-daemon
non-daemon mode without delay on restart apache
-h, --help
display this help and exit
 
Back
Top