Wednesday, August 29, 2007

HOW TO: Install Fantastico on cpanel server

Install Fantastico on Linux cpanel server

Before installing Fantastico you must replace the buggy version of wget that ships with your OS or Fantastico will not install.

After you fix this you can continue with the installation process:

If you have Fedora Core 5/6 or CentOS 5 or Red Hat Enterprise Linux 5 on your server and are experiencing troubles with respect to upgrades (forced or otherwise) of Click Be! or Fantastico or Universina, please check the wget version that you have on your server.

If it is wget-1.10.2-3.3.fc5 or wget-1.10.2-7.el5 or wget-1.10.2-8.fc6.1, we suggest that you replace it immediately with an older and/or stabler version. This version does not honor the "-P" switch.

An alternate version that we suggest is wget-1.10.2-3.2.1

Fire the following commands from command line:

# rpm -qa wget ;
# wget ftp://fr2.rpmfind.net/linux/fedora/core/5/i386/os/Fedora/RPMS/
wget-1.10.2-3.2.1.i386.rpm;

# rpm -e wget ;
# rpm -ivh --force wget-1.10.2-3.2.1.i386.rpm ;
# rpm -qa wget ;

Note: version of wget included with Fedora Core 7 does not have this problem, so that may be a better option for some people.

Installation process : SSH to your server(s) and enter following commands:

# cd /usr/local/cpanel/whostmgr/docroot/cgi
# wget -N http://files.betaservant.com/files/free/fantastico_whm_admin.tgz
# tar -xzpf fantastico_whm_admin.tgz
# rm -rf fantastico_whm_admin.tgz

Note: if you have problems contacting this server, please try this alternate location:

wget -N http://files.netenberg.com/files/free/fantastico_whm_admin.tgz

Now go to WHM, login as root and follow the link

WHM -> Add-Ons (Plugins on v11.x or higher) -> Fantastico De Luxe WHM Admin (scroll down the left menu).

Upon loading, Fantastico De Luxe WHM Admin will auto-update your existing installation (if existing). All admin files (masterfiles, tarballs, settings etc) will be moved to or created at /var/netenberg.

After the installation is complete, click on "Settings" and go through the settings. While some settings are not important, some other (marked below with an *) are essential for a proper functioning of Fantastico installations.

Remote MySQL server:
Open the file
# /usr/local/cpanel/3rdparty/fantastico/includes/mysqlconfig.php

and follow the instructions.

If you tried to config Fantastico to use a remote MySQL server, without changing Cpanel's MySQL setting (i.e. CPanel uses the local Mysql).
you can create a new file named "mysqlconfig.local.php" with the following content:



Tweak:
In order to use remote MySQL server with Fantastico, you have to use the "Setup Remote MySQL Server" option, in WHM, to config CPanel to use this remote MySQL and
then create the "mysqlconfig.local.php".


You will have to keep update your copy of Fantastico at:

WHM -> Fantastico De Luxe WHM Admin -> Update/Get files -> Install latest Fantastico De Luxe.

Monday, August 27, 2007

'Server Application Unavailable' Error after Applying Security Update for IE

Issue: 'Server Application Unavailable' Error after Applying Security Update for IE

re: Fix for: 'Server Application Unavailable' Error after Applying Security Update for IE

Fire the following commands from command line on server:

CD C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322

aspnet_regiis –u

aspnet_regiis –i

net stop iisadmin /y & net stop aspnet_state

net start w3svc & net start smtpsvc & net start aspnet_state

echo .

Friday, August 24, 2007

Change Exim SMTP IP Address

How to Change Exim SMTP IP Address on Linux Server :

# You can change the IP address that exim uses to send mail by changing the following in my exim.conf a follows:

remote_smtp:
driver = smtp

to:

remote_smtp:
driver = smtp
interface = 123.123.123.123

But the problem is that the change gets overwritten with cpanel updates. But you can use the following solution, which worked perfect until I upgraded to cpanel 11:

http://forums.cpanel.net/showpost.ph...0&postcount=15

There is another way to change the outbound IP for exim from within the configuration editor in WHM so it does not get overwritten?

Resolution :

In WHM on Exim Configuration Editor, rewrite two routers, There is an edit box bellow "ROUTERS CONFIGURATION", Box is before "lookuphost" router,
Put these lines to that box:


(7th box from top in exim configuration)

Quote:
mylookuphost:
driver = dnslookup
condition = "${perl{checkspam}}"
domains = ! +local_domains
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8 : 64.94.110.0/24
headers_add = "${perl{mailtrapheaders}}"
transport = my_remote_smtp

myliteral:
driver = ipliteral
condition = "${perl{checkspam}}"
domains = ! +local_domains
headers_add = "${perl{mailtrapheaders}}"
transport = my_remote_smtp

Then move down to "TRANSPORTS CONFIGURATION", On edit box there (just up the remote_smtp transporter)
put these lines:

(12th box from top in exim configuration)
Quote:
my_remote_smtp:
driver = smtp
interface = 72.29.75.244
This will be permanent and will not change by CPanel updates.

=====================================================================

Bind Exim to a different IP address

Issue : How to bind Exim to a different IP address on Linux server ?

Resolution:

# vi /etc/exim.conf

Inside both incoming and outgoing you will need to add an interface like so:

find
remote_smtp:
driver = smtp

inside:

/etc/exim_outgoing.conf
/etc/exim.conf

and add interface =

example:

=========================
remote_smtp:
driver = smtp
interface = 22.22.22.22
=========================

But you will need to make sure that the ip address should be binded on the server already.

Reminder: If there is an exim update when you upgrade your cpanel you will need to re-enter the interface again

The thing is cpanel uses SMTP auth. and POP3 before SMTP. If you receieve an email via POP it puts your IP into

# /etc/relayhosts

and you can send emails without any authentication for 30 minutes.

To make sure just empty the file /etc/relayhosts and try to send a test email with SMTP auth. turned OFF in your browser. It won't allow you to send.


Issue : How to bind Sendmail to a different IP address on Linux server ?

Resolution:


You may prevent Cpanel from overwriting your exim conf file by chattrib the config itself:
chattr +e /etc/exim.conf

To "unprotect" the file use:
chattr -e /etc/exim.conf

This way the file is protected even with permissions set to 755.
However this method may be problematic with Cpanel upgrades. If possible use Exim editor in

Service Configuration >> Exim Configuration Editor >> Switch to advanced mode. But it is true that you can not enter values for remote_smtp.

If you would like to bind listening interface to certain IP address open /etc/exim.conf and add this line at the beginning of conf file:

local_interfaces = xxx.xxx.xxx.xxx : xxx.xxx.xxx.xxx

You can add more IP address, delimit them with a ":"

If you would like to limit from which IP you are sending mail add to conf file, just under:

begin transports
remote_smtp:
driver = smtp
interface = xxx.xxx.xxx : xxx.xxx.xxx.xxx

cPanel overwrites custom modiffications so change those custom rules in

WHM >> Service Configuration >> Exim Configuration Editor

Open "Advanced Editor" and add in first edit field under

"#!!# cPanel Exim 4 Config":

local_interfaces = xxx.xxx.xxx.xxx : xxx.xxx.xxx.xxx

=======================================================================