Archive for the tag 'site'

Configuring AwStats to show the country of site visitors.

By default AwStats does not show the source country for visitors viewing a domain. To enable this feature, the GeoIP plugin should be configured. Here is the information about this plugin from /etc/awstats/awstats.conf:

# Plugin: GeoIP
# Perl modules required: Geo::IP or Geo::IP::PurePerl (from Maxmind)
# Country chart is built from an Internet IP-Country database.
# This plugin is useless for intranet only log files.
# Note: You must choose between using this plugin (need Perl Geo::IP module
# from Maxmind, database more up to date) or the GeoIPfree plugin (need
# Perl Geo::IPfree module, database less up to date).
# This plugin reduces AWStats speed of 8% !

Usually, geoip.pm plugin comes with AwStats package, but the Perl modules necessary for the plugin to work (Geo::IP or Geo::IP::PurePerl) should be installed. You can get all the necessary installation instructions and downloadable plugin files (for example, “Geo::IP::PurePerl Module” library) from here:

http://awstats.sourceforge.net/docs/awstats_contrib.html#geoip

http://www.maxmind.com/app/perl?rId=awstats

The plugin needs to be enabled in the main AwStats configuration files:

/etc/awstats/awstats.conf
/etc/awstats/awstats.model.conf

And the files that were already configured by Plesk for every domain which can be found in /usr/local/psa/etc/awstats/*. The line that should be added into all these files looks like:

LoadPlugin=”geoip GEOIP_STANDARD /pathto/GeoIP.dat”

Latest GeoIP.dat can be found at http://www.maxmind.com/

HOWTO: Set default site for IP address in Plesk Control Panel

You can select and change which of your Domains your IP address points to by making a simple change in your Plesk Control Panel. This is also useful if you want to preview a site before changing your DNS settings.

1. First, log in to your Plesk control panel,
2. Click on Server.
3. Click the icon for IP Addresses, and you will see a number X under the heading hosting on the far right which indicates how many domains you have on each corresponding IP address.
4. Click on the number you see for the IP address in question.
5. On the next page, you’ll see radio buttons next to each of your domains. Select the radio button for the Domain that you want to see when browsing to your IP address, and then click Set as Default.

Now, when you browse to your IP address, you’ll see the domain that you have selected as Default.

Problem with resume a site previously imported from PPCPL 4.x

The following error message while resuming a site: Failed to link file file system template for service siteinfo. Error 1.

This problem is due to sites imported from version 4.x have the following entry in virtual file-system as link: /home/virtual//fst/usr/lib/X11. In version 10.x the entry is present as directory. When such site is resumed, system is unable to override the entry.

To solve this, link /home/virtual//fst/usr/lib/X11 should be deleted after site import and /home/virtual//fst/usr/lib/X11 directory should be added.

Reference : http://parallels.com

CGI is not working for sub-domain after the site has been imported

This is because the /home/virtual//fst/var/subdomain//html link which points to ../../../home//public_html doesn’t export because this link does not belong to exported user.

To resolve this issue, Create the mentioned link after export manually.

Login to the server as root

Change directory to home of a site administrator of exported site

chroot ~adminN

Where N is an ID of the site administrator.

Create the necessary link by executing the following command:

ln –s ../../../home//public_html/var/subdomain//html

4. After link has been created the CGI for sub-domain(s) should be working.

Reference : http://parallels.com

How to track which site is using the apache processes.

For apache 1.3, edit your /etc/httpd/conf/httpd.conf and add

ExtendedStatus On
<Location /httpd-status>
SetHandler server-status
</Location>

just after the code that says “ServerSignature On”. Save, exit, then restart apache. You can access the stats page by going to http://192.168.1.1/httpd-status where 192.168.1.1 is your server’s IP.

If you’re running apache 2.x with custombuild, then it’s already in the file:

/etc/httpd/conf/extra/httpd-info.conf

Change the “Allow from” lines to include your IP, or remove the line completely to allow from all.

Source : http://directadmin.com/