June 30, 2006

Enable/Disable directory listings using .htaccess

by @ 9:56 pm. Filed under Linux Hosting
Disabling directory listings using .htaccess

By default when accessing any directory which does not contain an index file (ex: http://yourdomain.com/images/) a directory listing will be shown displaying a list of the files in that folder. Simply adding a blank/0 byte text file named “index.html” will prevent this directory list from being displayed, however another way to disable directory listings by adding the following line to the .htaccess file in your public_html folder of your web hosting account :Options -IndexesThat’s it, with this line in place folders which do not contain index files will no longer show the default directory list.

What’s especially nice about doing it this way is all sub-directories of that directory will also get their directory listings turned off. You could then turn on indexes for one of those sub-directories just by making a .htaccess file in that directory with:Options +indexes
If you want the directory contents to be listed, but only if they were HTML pages and not images. Adding the following line to the .htaccess file. IndexIgnore *.gif *.jpg This would return a list of all files not ending in .jpg or .gif, but would still list .txt, .html, etc .
« Previous entries

Awstats issues.

by @ 9:30 pm. Filed under Linux Hosting

1) Awstats/webalizer/analog stats disappeared from cpanel >> web/ftp stats or you want to disable any type of stats then you can do it from WebHostManager.

Ans: - whm >> server configuration >> tweak settings >> stats programs. Check or uncheck as per your requirement.

2) If you want to enable statistics process time schedule then you can enable it from

Whm >> server configuration >> Statistics Software Configuration >> Statistics Processing Configuration Summary. >> configure statistic process time schedule.

3) If you are getting following error when you try to access Awstats from cpanel web hosting >> web/ftp stats.

Awstats

Error: Couldn’t open config file “awstats.domainname.com.conf” nor “awstats.conf” after searching in path “.,/home/username/tmp/awstats/,/etc/opt/awstats,/etc/awstats,/etc,/usr/local/etc/awstats”: No such file or directory

- Did you use the correct URL ?
Example: http://localhost/awstats/awstats.pl?config=mysite
Example: http://127.0.0.1/cgi-bin/awstats.pl?config=mysite
- Did you create your config file ‘awstats.domainname.com.conf’ ?
If not, you can run “./../../tools/awstats_configure.pl” from command line, or create it manually.

Ans :- You get this error because awstats.domainname.com.conf file is not created under /home/username/tmp/awstats folder run the following script it will automatically create .conf file.

/scripts/runweblogs username

It solves issue most of the time but if you are still facing problem then copy a .conf file from another domain change the file name with proper domain name and also changes domain in conf file. Please check you replace new domain name properly.

4) “Update Now” button is disappeared from awstats page.
Ans :- Please check whm >> server configuration >> tweak settings >> Stats and Logs >> Allow users to update Awstats from cPanel is enable. Save the changes.

On server open following file
]# vi /home/username/tmp/awstats/awstats.domainname.com.conf

check following line

AllowToUpdatefromBrowser=0

Change value to from 0 to 1.

It shows “Update Now” button on awstats page.

« Previous entries

BOXTRAPPER

by @ 8:29 pm. Filed under Linux Hosting

boxtrapper enables email hosting verification for those not on your white list.Any email address that is not present in the whitelist will be required to send back a verification mail to verify that they are not spammer.

Boxtrapper protects your mail from spam.The boxtrapper enables to set mail addresses that are associated with the boxtrapper and how long the logs and messages are kept for that account.

This function can be quite useful in preventing automatic mailings that you do not wish to receive from reaching your inbox.

Inorder to configure boxtrapper use the following steps,

To access the Mail Menu, click on the icon above the word Mail on the main screen of your cPanel hosting interface.

Click on BoxTrapper Spam Trap.

To enter the BoxTrapper menu, click on the word Manage.

Click on the words Configure Settings.

Change the settings to what you need

Email addresses going to this account:

Place all of the email addresses that you wish to have the BoxTrapper enabled on in the field next to this option.The mail addresses should be separated by commas.

You need to also specify how many days the logs and the messages should be kept for the accounts.

Enabling boxtrapper can be done through the cpanel reseller hosting control panel:

mail>>boxtrapper spam trap>>manage>>enable

« Previous entries

June 29, 2006

How to change cpanel language.

by @ 7:34 pm. Filed under cPanel Hosting

First make sure that your reseller web hosting server has rvskin hosting installed. To change the cpanel hosting language you must select any rvskin theme. For example select rvblue theme, login to your cpanel web hosting and there you will find the option to change the language.

« Previous entries

Error in fantastico :

by @ 7:30 pm. Filed under cPanel Hosting

When you get this error “extension_dir does not exists
/usr/local/cpanel/3rdparty/lib/php/extensions/no-debug-non-zts-20020429″
error in Fantastico hosting account

Then do the following —

Steps

1)cd /usr/local/cpanel/3rdparty/lib/php/

2)mkdir extensions

3)cd extensions

4)mkdir no-debug-non-zts-20020429

5)Disable sourceguardian option in WHM > tweak settings and re-enable it.
Edit/Delete Message

This will fixed the error.

« Previous entries

Enable/Disable register_globals

by @ 7:26 pm. Filed under Server Security

The most common setting that clients will want to change are the “register_globals” settings. If you want to enable register_globals, you will need to create a .htaccess file in your site’s main directory (or the main directory of your site that contains PHP hosting scripts). Your .htaccess file should contain the following line:

php_flag register_globals on

If you want to disable register_globals then your .htaccess file should contain the following line:

php_flag register_globals off

« Previous entries

RESELLER HOSTING | DEDICATED SERVER | PREMIUM HOSTING | VPS HOSTING

Micfo Hosting

Micfo International LLC Leading the hosting Industry with Cheap and Affordable Linux Web Hosting Packages.

internal links:

categories:

archives:

Services:

Micfo Hosting

Micfo, delivering the best cpanel web hosting with maximum reliability is our exclusive focus.
Micfo International LLC

search blog:

TOP 10 POSTS:

Pages:

General Links:

Syndicate

other:

39 queries. 0.123 seconds