Login to Members Area

Choose the service you want to log in
     
24x7x365 Presence
1-888-289-2246
Live Chat

Hosting Blog

 

How to solve the problem when special characters are not being displayed correctly on your domain webpages?

Sometimes we see that some special characters are not being displayed correctly on the web pages. For example, the £ sign may be displayed as "£".

Please follow the steps below to take care of this problem:-

1.   Copy all the code inside of the .html file.
2.   Open Notepad (or any basic text editor) and paste the code.
3.   Go to "File -> Save As"
4.   Enter the file name "about.html" (select "Save as type: All Files (.)").
5.   Select the Encoding as UTF-8.
6.   Hit Save. You can now delete your old .html file in order to upload this new modified about.html
     file and the encoding problem should be fixed.

Shubham | Wednesday 27 November 2013 - 4:48 pm | | Default | No comments

XML vs HTML?

XML does not do anything. It structures, stores and transports information. HTML affects how the web page is rendered to the end user. In XML you invent arbitrary tags, unlike HTML. Data from the server is often structured in the XML format.

JODO | Wednesday 27 November 2013 - 4:11 pm | | Default | No comments

What does copyleft mean?

"Copyleft" is a play on the term "copyright". It means that a work can be freely distributed and modified, and that the same applies to the modified versions of that work.

JODO | Wednesday 27 November 2013 - 4:08 pm | | Default | No comments

What is the difference between a DHTML page and an AJAX page?

Both the DHTML and AJAX collection of umbrella technologies allow the user to make changes to the current page and for the current page to actually be updated - without the server reloading a new page. However DHTML pages typically rely more on client-side processing.

JODO | Wednesday 27 November 2013 - 3:55 pm | | Default | No comments

What is the MVC framework?

The MVC framework enables a new paradigm to web development. It is a benefit from the developer's point of view. The same application could of course be developed by this framework or by another perspective.

"Model" stands for data and the software logic, "View" for the pages actually rendered to the end user and "Controller" mediates between the Model and the View - converting input into commands for the Model or View components. Ruby on Rails is an example of the MVC framework.

JODO | Wednesday 27 November 2013 - 3:47 pm | | Default | No comments

Data binding - what is it?

Data binding enables a connection between an application's GUI and the software's logic. This term is more commonly used when developing Java and JavaScript applications.

JODO | Wednesday 27 November 2013 - 3:37 pm | | Default | No comments

Steps to move domains from the Windows server to the Linux server

1) Please take a backup at your end of your domain webfiles and emails and then delete the domain from the existing Windows user account.

2) Create a new user account against a Linux plan.

3) Add the domain in the new user Linux account and upload files there. You will also need to create mailboxes again in the new account.

Shubham | Wednesday 27 November 2013 - 1:04 pm | | Default | No comments

How to resolve the issue "Account not created-- error-- Duplicate MX record exists"?

Run the following command from the CP server as a cPanel user and that will take care of this problem:-

java psoft.hsphere.tools.MailServiceDuplicateRecordsRemover --all

Abhishek | Tuesday 26 November 2013 - 8:12 pm | | Default | No comments

Joomla Administrator: "500 - An error has occurred"

We've seen sometimes that when we log into the Joomla administrator section we suddenly get the error "500 - An error has occurred". However the frontend of the website is working fine.

To fix the issue above check the follow things with your webfiles :-

Step 1: Check the log directory path inside the configuration.php file and if it is not correctly set up then correct this and save the file and then recheck it.

Step 2: Similarily, check the tmp directory path inside the configuration.php file and if it is not correctly setup then correct it and save the file and then recheck it.

Step 3: Check permissions on both the log and tmp directories and they should be writable by the web user as well and if not then grant the permissions and then try again to log into the admin section and this will fix the issue for you.

That's all.

Sachin | Saturday 23 November 2013 - 06:12 am | | Default | Three comments

How to check the Postfix queue with the Qshape tool?

Generally there are many ways to check the emails in the queue on Postfix such as:-

mailq
postqueue -q

But Qshape is another very nice tool which shows the number of emails in the mail queue and which domain it is waiting to deliver by the Postfix MTA. We can check the mail queue as below:-

qshape hold
qshape active
qshape defer
qshape deferred

The above commands will display the output for the number of emails which are respectively in the hold queue, active queue, defer queue and deferred queue.

While running a command above if you get the message "Qshape not found", that means that we need to install it on the server and we can install it with the following package:-

yum install postfix-perl-scripts

Now run the Qshape command and it'll run and give the result.

Sachin | Wednesday 20 November 2013 - 11:29 pm | | Default | No comments

How to enable an SSH port other than 22 on a Linux machine?

Solution:-

1. Make an entry of that port in the file "/etc/ssh/sshd_config".

2. Restart the SSHD service (optional).

That's all.

Abhishek | Tuesday 19 November 2013 - 7:48 pm | | Default | No comments

How to compare the contents of two files

diff command

Using the diff command we can compare the differences in two files:-

diff file1 file2

The command above will compare two files for differences.

Vimal | Sunday 17 November 2013 - 06:47 am | | Default | No comments

How to set the ASP.NET session state timeout value for your application on Windows 2008/2008 R2

Please follow the steps below to set the ASP.NET session state timeout value for a domain/directory:-

1: Open the IIS Manager on the server.
2: Select your domain under 'Sites' and double click on the domain name.
3: After this, the domain settings section will be shown there with the IIS section in it.
4: Under the IIS section, double-click on ASP and then you can see ASP properties.
5: In the ASP settings, find the 'Session Properties' section. Expand it.
6: In Session Properties, you will see 'timeout'. The default value is 00:20:00(HH:MM:SS), 20Min.
7: Increase the timeout value as per your application's need and then click on the APPLY changes option which we can see on the top right side corner for that domain.

Shubham | Saturday 16 November 2013 - 8:55 pm | | Default | One comment

Checking for the enabled modules of Apache in Linux

The quickest and easiest way to check for the enabled modules of Apache on Linux is via the command prompt with the following command:-

apachectl -t -D DUMP_MODULES

This command outputs the names of modules which are enabled in the Apache configuration and also lets us know the status of a module - whether it is a static or shared module of Apache. If on some Linux system we get the error "apachectl not found due to system specific configuration", then we'll have to first find out the exact path of apachectl. We can see this inside the bin folder in the Apache configuration.

In the H-Sphere server, we can find apachectl on the path below:-

/hsphere/shared/apache2/bin/apachectl -t -D DUMP_MODULES

On Ubuntu or Debian, we can get this detail using the command below:-

apache2ctl -M

That's it.

Sachin | Friday 15 November 2013 - 10:40 pm | | Default | No comments

How to enable debugging in WordPress?

Many times we've faced issues with the WordPress blog due to which we either get a blank page or error 500 or some other custom error but not the exact error which was supposed to be shown and the exact reason for the issue.

So enabling debugging for the WordPress website or blog is quite simple as following the steps below:-

Step 1: Go to the domain folder where you've placed all WordPress files.

Step 2: Find the wp-config.php file and open it with the editor.

Step 3: Find the line 'define('WP_DEBUG', false);' in the file - if it exists change "false" to "true" and save the file.

Step 4: However if the line above doesn't exist in the file, then write it above "require_once(ABSPATH.'wp-settings.php');" and save the file.

After this, check the site again and you should get the exact error on the web page.

Sachin | Tuesday 12 November 2013 - 06:14 am | | Default | No comments

SQL query to set/update the MySQL user password in the old style

The following query can be used to set/update the MySQL user password in the old style:-

SET PASSWORD FOR 'user'@'%'=OLD_PASSWORD('password');
FLUSH Privileges;

Abhishek | Monday 11 November 2013 - 8:35 pm | | Default | No comments

A script to update Modlogon manually on the H-Sphere Linux server

You may update the Modlogan stats by running this command on the web server:

/hsphere/shared/bin/sudo -u USERNAME /bin/sh -c "cat /hsphere/local/home/USERNAME/logs/DOMAIN.COM/DOMAIN.COM.XXXXXXXX |/hsphere/shared/bin/modlogan -c /hsphere/local/config/httpd/modlogan/DOMAIN.COM.conf"

where:
USERNAME - FTP user login
DOMAIN.COM - domain name
..logs/DOMAIN.COM/DOMAIN.COM.XXXXXXXX - path to log file

Manoj | Saturday 09 November 2013 - 7:30 pm | | Default | No comments

How to check for the OS version and hardware structure on the Linux server

We can check the installed OS version on the Linux server with the help of the files below:-

[root@testwebserver]# cat /etc/redhat-release
CentOS release 5.X(Final)
[root@testwebserver]# cat /etc/issue
CentOS release 5.X (Final)
Kernel \r on an \m

We can check the hardware structure with the help of the command below:-

[root@testwebserver]# uname -a
Linux testwebserver 2.6.18-348.3.1.el5 #1 SMP Mon Mar 11 19:39:25 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux

Manoj | Friday 08 November 2013 - 7:51 pm | | Default | No comments

How to Disable/Enable SELinux on Linux?

SELinux (Security Enhanced Linux) is a Linux security module which controls access to files and directories.

However, sometimes we like to enable or disable SELinux as per our server infrastructure. So here we'll learn how to enable (temporarily or otherwise) or to disable SELinux.

There are actually three modes on SELinux which are as follows:-

Enforcing = In this mode SELinux aggressively enables and provides control over accessing or not accessing files and directories.
Permissive = This is the mode where SELinux allow the files to be accessed without being controlled by SELinux.
Disabled = This is the mode where SELinux is completely disabled.

To check which mode is active currently, we can use the command below:-

getenforce

If we get the output as 'Enforcing', this means that SELinux is enabled in the Enforcing mode.

To make it permissive we can use the command below:-

setenforce 0

Then check again with getenforce and you'll get the output as:-

Permissive.

However, the above permissive mode is temporary and will last only till the next system reboot after which SELinux will be again in the enforcing mode. So to disable SELinux permanently across reboots even, one can do as below:-

Open the file /etc/sysconfig/selinux

Find "selinux=enabled" and change it to "selinux=disabled" and then save the file and reboot the system.

After this SELinux will be disabled permanently.

Sachin | Thursday 07 November 2013 - 11:17 pm | | Default | No comments

MySQL Error: Prepared statement needs to be re-prepared

Read More

Abhishek | Wednesday 06 November 2013 - 8:06 pm | | Default | No comments

What is my FTP host name?

If you want to know your FTP host name for using an FTP client, then follow the steps below:-

>> Login to the control panel.

>> Click on FTP/User Account.

>> See the host name.

That's your FTP host name for logging in from the FTP client.

Vimal | Tuesday 05 November 2013 - 08:17 am | | Default | No comments

Steps to install nopCommerce on your domain

Please follow the steps below to install nopCommerce on your domain.

1- Please upload all the nopCommerce files under the domain root folder.
2- After that, create a subfolder under the domain root folder and name it nopCommerce (it is a temporary folder) and move all the root's files to this folder.
3- Give write and read permissions to this subfolder (the nopCommerce folder).
4- Then move all files back to the root domain folder. The nopCommerce folder will be empty now.
5- Create a new database on the MSSQL 2008 server.
6- Launch the installation wizard via yourdomain.com/install and mention all information on the installation page such as admin login details, database details, etc..
7- Click on install - that's it.

It will take some time (10-15 minutes) and then the installation will be completed. This works for me.

Shubham | Tuesday 05 November 2013 - 04:46 am | | Default | Two comments

Runlevels on Unix/Linux

"Runlevel" as a term defines the state of the machine after booting. The following are the runlevels defined for Unix/Linux systems:-

ID     Description
0     Halt
1     Single-user mode
2     Multi-user mode without network services and network interfaces
3     Multi-user mode with networking
4     Not used (Reserved for special purposes)
5     Multi-user mode with networking and GUI
6     Reboot

Abhishek | Monday 04 November 2013 - 8:02 pm | | Default | No comments
Used tags: , ,

How to set the ASP.NET trust levels on applications hosted on Windows 2008/2008 R2

  • Please follow the steps below:-

1: Open the IIS Manager on the server.
2: Select your domain/directory under 'Sites' and double click on the domain name.
3: After this, the domain settings section will be shown there with the IIS section in it.
4: Under the IIS section, double-click on the .NET trust levels which you will get under ASP.NET properties.
5: Select the appropiate level via the dropdown menu and then click on the APPLY changes option which we can see on the top right side corner for that domain.

Shubham | Monday 04 November 2013 - 04:16 am | | Default | No comments

How to get the subscriber list for the ezmlm mailing list on the server?

Read More

Abhishek | Sunday 03 November 2013 - 8:01 pm | | Default | No comments
Used tags: , , , ,

Disabling ping on Windows Server 2008 to stop DDOS attacks on the server

To disable ping on Windows Server 2008 R2, please follow the steps below:

1) Go to the Start Menu.
2) Select Administrative Tools >> Windows Firewall with Advanced Security -> the firewall will open in a new window.
2) In this window, you will see 'Inbound Rules' - click on it.
3) Under Inbound Rules, please search for 'File and Printer Sharing (Echo Request - ICMPv4-IN)'.
4) Right click on 'File and Printer Sharing (Echo Request - ICMPv4-IN)' and then select Disable Rule.

Once ping requests have been disabled, the ICMP flood goes down and services except ping work fine.
To re-enable the ping, select Enable Rule in the last step.

Shubham | Saturday 02 November 2013 - 04:02 am | | Default | No comments
Used tags: , , , , , , , ,