Archive for the tag 'Changing'

Updating or changing the version of PHP?

To update the PHP instance used by Apache, run

/usr/local/cpanel/scripts/phpup

from the command line.

PHP used by Apache

To change the PHP version used by Apache, access EasyApache, either at Main >> Software >> EasyApache (Apache Update) in WHM, or

/usr/local/cpanel/scripts/easyapache

on the command line.

Changing the Sending IP for Outbound Email in Exim

In order to specify which IP address should handle outbound mail, you will need to disable an option in WHM’s Exim Configuration Editor . You can find the Exim Configuration Editor in the Service Configuration section of WHM. To begin, navigate to the configuration editor and disable the following option:

* Automatically send outgoing mail from the account’s IP address instead of the main IP address.

By default, Exim will send mail from the server’s main shared IP address. Enabling this option forces your users to send mail from their main domain’s IP address. If you choose to enable the option listed above, you will not be able to manually specify the IP addresses from which the domains send mail. This option uses /scripts/updateuserdomains to automatically populate /etc/mailhelo and /etc/mailips.

Upcp Error Message for changing host IP to 0.0.0.0

Error Message
The hostname (domain.server.com) resolves to xxx.xxx.xxx.xxx. It should resolve to 0.0.0.0 Please be sure to correct /etc/hosts as well as the ‘A’entry in zone file for the domain. Some are all of these problems can be caused by /etc/resolv.conf being setup incorrectly. Please check this file if you believe everything else is correct.

Issue is due to wrong ethernet interface specified in “WHM >> Basic cPanel/WHM Setup”.

In order to resolve this check the ethernet configuration file for the value “IPADDR” and add this interface in “WHM >> Basic cPanel/WHM Setup”

Now for crosschecking take the option “Add an A Entry for your Hostname” in WHM.

Finally start “ipaliases” (/etc/rc.d/init.d/ipaliases) service for the new interface.

Changing a certificate in WebHost Manager

WebHost Manager enables you to change your CPanel and WebHost Manager certificate automatically, without having to manually find and replace the certificate files.

Note: The CPanel certificate is used in the https://www.yourdomain.com:2083 address and the WebHost Manager certificate is used in the https://www.yourdomain.com:2087 address.

To change a certificate:

1.Click on the Change CPanel/WHM Certificate link in the SSL/TLS menu.
2.Enter the domain for the certificate in the Domain this CRT is for field.
3.Click on the Fetch button to paste the .key and .crt files for the domain into the available display spaces, if they are currently on your server. Otherwise, copy and paste the .key and .crt files into the available display areas.

Note: If you generated the certificate using WebHost Manager, the certificate files will be available.

SBDavid

Changing the SSH Port Number

Changing the SSH Port Number

To change the SSH port number login as root, and edit /etc/ssh/sshd_config

Find the line that says Port 22 and change 22 to any number between 1024->65535 (above 30000 is best) and save the file.

Once done, run:

/etc/init.d/sshd restart

Now start a new SSH session (don’t close your existing one), to make sure that you can get in.

-p port
Port to connect to on the remote host. This can be specified on a per-host basis in the configuration file.

Next »