MyTrueHost launched Web Hosting for Indian clients just in Rs 60/Month with various payment options(netbanking, debit card, credit card,cash card or paypal).
Please Visit at https://www.mytruehost.in

Configure Cute FTP Client

Step by step procedure to configure Cute FTP client :

To configure CuteFTP, please follow the instructions provided below:

1) Goto File, and open the site manager, the site setting window below will open.

2) Click on the NEW button

3) In the “Label for your site” field, type just the name of your website.

4) In the FTP Host Address field, type ftp.xxx.tld where xxx is your website name and tld is the extension.

5) In the “FTP Site User Name” field, type the username.

6) In the “FTP Site Password” field, type the password

7) Leave FTP site connection port alone, it will default automatically.

8) Click on the “Login Type” checkbox to “Normal”

9) Click Exit to save the site. It will automatically connect.

 

Configuring Passive ports in PROFTPD

Configuring Passive ports in PROFTPD

Edit /etc/proftpd.conf or whatever your conf file is:
PassivePorts 40000 40100
Now enable this port range in iptables.

 

 

Unable to update main FTP account password

Unable to update the main (default) FTP account password via control panel. The following error occurred:

 

Attempting to modify nonexistent username
Couldn't delete previous ProFTPd user config file.

 

OR

Unable to update the main FTP user password.

The issue is occurring due to the absence of password entry in the passwd.vhosts file.

 

#cd /etc/proftpd/
Server:/etc/proftpd#grep userName: passwd.vhosts
Server:/etc/proftpd#

 

This shows that password entry is missing in the /etc/proftpd/passwd.vhosts. Add the corresponding entry from /etc/proftpd/userName.

The entry can be found from /etc/proftpd/userName.

 

Server:/etc/proftpd#grep userName: userName
(example:- userName:$1$MAwZd0to$A8U6GQNGwkC0c7DA0P/7..:1697:1697:domainName:/home/userName:/nonexistent)

 

Add the above entry in /etc/proftpd/passwd.vhosts.

 

Server:/etc/proftpd#cat >> passwd.vhosts
userName:$1$MAwZd0to$A8U6GQNGwkC0c7DA0P/7..:1697:1697:userName:/home/userName:/nonexiste

 

This will fix the issue.

Note: Replace the userName, domainName by corresponding values. Also make sure that you are using “>>” instead of “>”. The “cat > passwd.vhosts” will wipe out the entire content in the passwd.vhosts file.

This is applicable to Cpanel, vDeck control panels.

Ftp error “553 Disk full – please upload later”

Problem: You get the ftp error “553 Disk full – please upload later”, even when the quota of the user has not been exceeded and the disk partition in which all the user accounts reside (say /dev/sda5) is not full.

Cause: The value of the variable ‘MaxDiskUsage’ in the pure-ftpd configuration file (/etc/pure-ftpd.conf ) will be equal to or less than the percent use of the partition.
——————————————–
root@ [~]# grep MaxDiskUsage /etc/pure-ftpd.conf
MaxDiskUsage 90
——————————————–
#df
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 144G 59G 78G 90% /
——————————————–

Solution: Change the MaxDiskUsage value to 99 (Some high value) and restart pure-ftpd.Ā šŸ™‚

 

Hiding folders to avoid deletion via FTP

It is better to hide tmp/usr/lib/var folders via the conf file(when accessing ftp) so that these folders will not be accessed by the users.

If it is proftpd, find out the proftpd.conf

Add the following to the proftpd.conf file:

<Directory ~>
HideGroup wheel
</Directory>

<Directory ~>
HideNoAccess yes
</Directory>

Enter the directory path near to “<Directory >”, like “<Directory /var/www/vhosts/domainName/httpdocs/folder>”

After modification, restart the FTP.

Update now button missing from awstats page

PROBLEM

The update now option is missing from awstats page in control panel, even though the option allows users to update stats is checked in tweak settings of control panel.

RESOLUTIONĀ 

Open the file ~user/tmp/awstats/awstats.domainname.com.conf and edit the following line.AllowToUpdatefromBrowser=0Change this value to 1

How to access webalizer directly (outside of cPanel)

It is very easy to view webalizer stats directly without logging into cPanel. You can follow the steps below to access webalizer stats using the URL http://domain.com/stats/.

1- cd /home/username/public_html2- ln -s /home/username/tmp/webalizer stats

3- chown username.username stats

4- chmod 755 /home/username/tmp/

5- chmod 755 /home/username/tmp/webalizer

Now access webalizer using the URL:http://domain.com/stats/.

 

 

How to get awstats to view directly (outside of cPanel)

You can follow the steps below (in cPanel server) to view Awstats directly through browser.

1- Download awstats from http://awstats.sourceforge.net.

wget http://prdownloads.sourceforge.net/awstats/awstats-6.7.tar.gz

2- Uncompress it.

tar -zxf awstats-6.7.tar.gz

This can be uncompressed to domain’s cgi-bin folder.
That is to /home/username/public_html/cgi-bin/awstats-6.7

3- Change the ownership to the username.

chown -R username.usernameĀ  /home/username/public_html/cgi-bin/awstats-6.7

4- Copy the contents of awstats-6.7/wwwroot/cgi-bin to the domains cgi-bin folder.(this includes awstats.pl, awstats.model.conf, and the lang, lib and plugins sub-directories).

cp -prf /home/username/public_html/cgi-bin/awstats-6.7/wwwroot/cgi-bin/* /home/username/public_html/cgi-bin/

5- Copy the awstats-6.7/wwwroot/icon folder and its contents to the document root.

cp -prf /home/username/public_html/cgi-bin/awstats-6.7/wwwroot/icons/ /home/username/public_html/

6- make sure that the first line of awstats.pl is #!/usr/bin/perl and edit it if necessary to the correct path to perl in server.

7- Copy awstats.model.conf file into a new file named awstats.domainname.conf. This file must be stored in the cgi-bin directory of the domain.

cp -p /home/username/public_html/cgi-bin/awstats.model.conf /home/username/public_html/cgi-bin/awstats.domainname.conf

8- Edit this new config (awstats.domainname.conf) file.

1- Change LogFile value with full path to the web server log file.

LogFile=”/usr/local/apache/domlogs/domain.com”

2- Change DirIcons parameter to reflect relative path of icons directory.

DirIcons=”/icons”

3- Edit SiteDomain parameter with the name of the domain.

SiteDomain=”www.domain.com”

4- Change DirData to use the Statics file.

DirData=”/home/user/tmp/awstats/”

5- Set AllowToUpdateStatsFromBrowser=1,Ā so stats can be updated through browser.

6- Save the config file.

9- Now try to access awstats using the URL :

Ā Ā http://www.domain.com/cgi-bin/awstats.pl?config=domain.com

10- Click on “Update now” to update the stats.

 

Enable BING support in AWSTATS

By default the Bing is not recognized as a search engine in AWStats 6.9 and older versions.

We can make it possible by doing some changes in the configuration file.

To add BING support, we have to edit search_engines.pm in the lib directory.

Just go through the steps

1. SSH into the server with root privilege.

2. Go to “usr/local/cpanel/3rdparty/bin/lib

3. List the file “search_engines.pm” [ls -l search_engines.pm].

4. Before doing any change, take a backup of the file that need to edit.
[cp -p search_engines.pm search_engines.pm.`date +%F`]

5. To enable BING support, we need to edit the following sections as mentioned below:

@SearchEnginesSearchIDOrder_list1

Find
msn\.‘,
Insert this line right after that:
bing\.com‘,

%SearchEnginesHashID

Find
‘msn\.’,’msn’,
Insert this line right after that:
‘bing\.com’,’bing’,

%SearchEnginesKnownUrl

Find
‘msn’,’q=’,
Insert this line right after that :
‘bing’,’q=’,


%SearchEnginesHashLib

Find
‘msn’,'<a href=”http://search.msn.com/” title=”Search Engine Home Page [new window]” target=”_blank”>MSN Search</a>’,
Insert the following line right after that:
‘bing’,'<a href=”http://www.bing.com/” title=”Search Engine Home Page [new window]” target=”_blank”>Bing</a>’,

At last the AWStats search_engines.pmĀ  has been updated in such a way to support Bing. Now the “Bing” visitors will be listed in the search engines section and will find their keywords under Search Keyphrases and Search Keywords.

Please note that the ‘Bing” visitors will be listed after the next awstats update. After the awstats update, you can verify the “Bing support” from the following sections.

Awstats [for the particular domain] >> Referrers: >> Origin >> Referring search engines
Awstats [for the particular domain] >> Referrers: >> Search >> Search Keyphrases & Search Keywords

 

 

 

 

 

Problem with RoundCube

You might have come across the problem where, in a cPanel server, when you try to send an email from roundcube, it will go on and on for long time without sending email. To fix the problem follow the steps given below.

/scripts/autorepair net_smtp_fix

After running the above script try to send the emails again.