Archive for » August 25th, 2009«

How to set name servers from WHM for new Server/VPS?

You will need an IP address for each nameserver which you want to set for your server.

Under ‘Basic cPanel/WHM Setup’ -> Scroll Down to ‘Primary Nameserver’.

Now you should be add your nameservers in the fields available. Click on Assign IP Address next to each nameserver to assign it an IP. Then add an A entry so they will resolve through DNS. As well as make sure that you scroll down and click on ‘Nameserver Setup’ under ‘Service Configuration’ and enable the nameserver.

The main thing you must remember while setting new name server for your domain you need to register the name servers from your domain name registrar end.

For example if you set name servers for your server is as follows.

ns1.example.com ip 91.186.188.188
ns2.example.com ip 91.186.188.189

Then you should be register the above name servers at your domain name registrar end.The domain name registrar is a company where you have buy a domain example.com.The name server will take 24 to 72 hours to resolved worldwide with your server.


Category: VPS  Comments off

Connect and publish files by using Frontpage

Following are the steps to connect the Frontpage and publish the sites files/folders.

1.Begin by starting Microsoft FrontPage Explorer from your Windows Start Menu.

2.Select Open Web… from the File… menu. This will open the Open Web dialogue.

3.In the Open Web dialogue, select the My Network Places icon.

4.Now, enter http://www.yourdomainname.com into the Web Name field. Click Open to continue.

5.You will now be presented with a pop-up window entitled Enter Network Password.Enter your cPanel or FTP Username and Password without any space. Click OK to continue.

6.FrontPage Explorer will open a Folder List window at the left-hand edge of the Explorer screen that will contain the entire directory structure for your webspace.

7.To edit pages using FrontPage, double-click any of the web pages listed in the Folder List. A new FrontPage window will open for each page you select.

8. To upload newly-modified pages to the web, select File… then save… from the FrontPage Explorer tool bar. Your web pages will automatically reflect your latest changes.

How to disable the Directory listing?

To disable the Directory listing for directories you need to create the .htaccess file under the each an every folder under which you want to disable the Directory listing and insert the following code in .htaccess file.

————
Options -Indexes
————

Category: Basic Linux  Tags: ,  Comments off

Enable private PHP Error Logging via .htaccess\disable PHP Error Logging for visitor

To hide PHP errors from visitors insert the following code in .htaccess

# supress php errors
php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off

Once disable the error logs for visitors enable the private PHP error logging by using following code in .htaccess

# enable PHP error logging
php_flag log_errors on
php_value error_log /home/path/public_html/domain/PHP_errors.log

The PHP_errors.log file needs to be permission 755 or 777.

Set email filtering from your cpanel.

You can set the mail filter from your cPanel.Please refer the following steps to set the filter.

1] Go to cPanel
2] Go to Mail >> email filtering
3] Click on Add filter option

This option is also very useful when your clients domain marked as Spam in your mail box.For example if mail came from example.com marked as Spam mail then you can set the filter in following manner to avoid Spam mail problem for your domain example.com

1] Go to cPanel
2] Go to Mail >> email filtering
3] Click on Add filter option
4] Then as per your email headers you can set the filter here
5] Destination should be allow
6] Click on activate option.

So that all the mails from example.com not be treated as spam.

Category: E-mails issue  Tags: , ,  Comments off

Install Magento

Following are the steps to install Magento manually from Shell.

wget http://www.magentocommerce.com/downl…19870.4.tar.gz

wget http://www.magentocommerce.com/downl…0.19870.tar.gz

tar -zxvf magento-1.0.19870.4.tar.gz

tar -zxvf magento-sample-data-1.0.19870.tar.gz

mv magento-sample-data-1.0.19870/media/* magento/media/

mv magento-sample-ta-1.0.19870/magento_sample_data_for_1.0.19870.sql magento/data.sql

cd magento

chmod o+w var var/.htaccess app/etc

chmod -R o+w media

mysql -u DBUSER -pDBPASS DBNAME < data.sql

./pear mage-setup .

./pear install -f magento-core/Mage_All_Latest

rm -rf downloader/pearlib/cache/* downloader/pearlib/download/* .htaccess.sample data.sql index.php.sample ../magento-1.0.19870.4.tar.gz ../magento-sample-data-1.0.19870/ ../magento-sample-data-1.0.19870.tar.gz

find . -type d -exec chmod 777 {} \;

If after installation you are facing the “500 Internal Error Server” problem then check Apache logs and correct the ownership and permission for the folders as per logs.

Authentication failed (bad password) error in outlook?

The most common problem in outlook is “Authentication failed (bad password)”

There was a problem logging onto your mail server. Your Password was rejected. Account: ’192.168.0.2′, Server: ’192.168.0.2′, Protocol: POP3, Server Response: ‘-ERR Authentication failed (bad password?)’, Port: 110, Secure(SSL): No, Server Error: 0x800CCC90, Error Number: 0x800CCC92

To resolve above error refer following steps.

cd /etc/xinetd.d/

rm -f popa3d popa3ds

service xinetd restart

/scripts/courierup –force

/scripts/eximup –force