Login to Members Area

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

Hosting Blog

 

Horde webmail "There are no messages in this mailbox" when there are

Horde webmail may encounter a problem with displaying emails in the inbox - "There are no messages in this mailbox" when in fact emails are there.

We can fix this issue by editing this file:

/hsphere/shared/apache2/htdocs/horde/imp/lib/IMP.php

We have to add these lines:

/* check for empty direction */
if ($ob['dir'] === "") {
$ob['dir'] = $GLOBALS['prefs']->getValue('sortdir');
}

Just before:

/* Can't do threaded searches in search mailboxes. */
if (!IMP::threadSortAvailable($mbox)) {
if ($ob['by'] == SORTTHREAD) {

Abhishek | Friday 30 August 2013 - 09:55 am | | Default | No comments
Used tags: , , , ,

How to change a WordPress website's URL?

You need to add the new URL in the wp-config.php file. For example-

define('WP_HOME','http://<domain>/blog');
define('WP_SITEURL','http://<domain>/blog');

Manoj | Friday 30 August 2013 - 09:49 am | | Default | No comments

Emails bouncing back with error (Sorry, I couldn't find any host named domain.tld?.)

Sometimes we've seen that when we send emails using Outlook and other email programs, they get bounced back with the error message below:-

---------------------------------------------------------------------------------------

<xyz@domain.tld>:
Sorry, I couldn't find any host named domain.tld?. (#5.1.2)

---------------------------------------------------------------------------------------

But emails are getting delivered fine using webmail (Horde, SquirrelMail, etc).

The reason for this is that Outlook and other email programs sometimes add characters (spaces) at the end for the email address. You are not able to see them or you don’t recognize them.

qmail is very sensitive about things which are not completely correct and it rejects the email.

Solution for fixing this error in Microsoft Outlook:-

For Microsoft Outlook, the solution is to export the address book into Excel. Open the .xls file and check if the opening of the file has removed the spaces at the end of the email addresses. You will see that qmail will act normally after this. (IMPORTANT) You have to save the file to overwrite the original.

That's it. Now emails will get delivered properly after fixing the address book in Outlook.

Sachin | Thursday 29 August 2013 - 7:25 pm | | Default | No comments

How to create a virtual directory in H-Sphere on Windows 2008

A virtual directory is a type of directory that is created in the IIS to host a local application or to target a certain physical folder available on the server where the virtual directory is being created.

Please follow the steps below to add a virtual directory:
1) Login to your hosting panel.
2) Select the domain name.
3) Go to Web Services.
4) Go to the Web Directories settings.
5) Click the Add button to create a new web directory.
6) Enter the web directory's name and web directory's path relative to the user home.

Shubham | Wednesday 28 August 2013 - 9:28 pm | | Default | No comments

Sending email in Linux using the "echo" command

Sometimes we need to send an email from the server to test the mail delivery from the server and if we don't have any user/domain to send the email via authentication.

In that case, we can use the "echo" command to send the email from the root to the outside domain or email id. Below is the syntax which can be used to send the email :-

-----------------------------------------------------------------------------------------------------------------------------------------------------

echo "Mail Body" | mail -s "Subject of Mail"  email@domain.tld

------------------------------------------------------------------------------------------------------------------------------------------------------

Also, we can send email from the command line with an attachment like below :-

--------------------------------------------------------------------------------------------------------------------------------------------------------

echo “Mail Body” | mutt -a attachment.zip -s “Subject of mail” xyz@domain.tld

--------------------------------------------------------------------------------------------------------------------------------------------------------

That's it.

Sachin | Wednesday 28 August 2013 - 9:07 pm | | Default | No comments

Download files in the Linux CLI mode

>> We can download any files through the "wget" command in the Linux command mode :-

 wget http://www.example.com/archive.zip

>> We can download and store the above example folder with a different name.

wget -O anothername.zip http://www.example.com/archive.zip

Vimal | Wednesday 28 August 2013 - 09:14 am | | Default | No comments

How to make an archive with the exclusion of a directory/file

Sometimes it is necessary to make an archive with the exclusion of a folder or files. In such a case, the command below helps us do that on the Linux server:-


tar -pczf MyBackup.tar.gz /home/Webfiles/ --exclude "/home/Webfiles/tm"

That's it.

Sachin | Tuesday 27 August 2013 - 8:56 pm | | Default | No comments

Signup getting a 404 error?

Read More

Akash | Tuesday 27 August 2013 - 8:04 pm | | Default | No comments
Used tags: , , , ,

How to get information about the currently running processes in Linux?

Command:-

ps auxww | grep <process name> (It gives the full listing of the process (long listing)).
   
To know the count of remote processes, type the command below:
   ps auxww |grep 'remote' | wc -l

Abhishek | Tuesday 27 August 2013 - 8:04 pm | | Default | No comments
Used tags: , ,

How to change your contact information in H-Sphere

To change your contact information, please follow the steps below:
1. Login to your reseller control panel.
2. Go to Info>>Contact Info
3. Change your details and then press the change button.

Dipesh | Tuesday 27 August 2013 - 08:46 am | | Default | No comments
Used tags: ,

Errors while changing the password for the H-Sphere control panel

Sometimes we get an error while changing the password of the H-Sphere control panel. We get this error because of the password policy of H-Sphere. Please keep the points below in mind:-

>> The minimum password length is 5 characters and the maximum is 12 characters.

>> H-Sphere does not support any special characters besides the ! (exclamation), _ (underscore) and  = (equal) signs.

Vimal | Monday 26 August 2013 - 09:09 am | | Default | Two comments

Stop and start services on Windows

In H-Sphere services, open the command prompt and type the suitable command.

IIS start and restart
command: iisreset

ColdFusion stop/start
command: cfmxrestart

SQL server start
command: services.msc

H-Sphere services start/stop
command: net stop HSSVC
command: net start HSSVC

Dipesh | Sunday 25 August 2013 - 08:21 am | | Default | No comments

How to quickly create an email attachment in Outlook

Sometimes we forget to attach a file or attachment in an email as it can take a lot of time. But we can get rid of this problem by following the step below:-

>> Drag the file into the inbox. This action will create quickly a new mesasge with that attachment and save time.

Vimal | Sunday 25 August 2013 - 07:57 am | | Default | No comments

End user account not getting deleted from the reseller H-Sphere panel?

Read More

Akash | Saturday 24 August 2013 - 2:44 pm | | Default | No comments

Clearing the Cache on the Linux server

We've seen many times that the server takes records from its cache which aren't the same as the real records or the globally updated records. In that scenario, we have to clear the cache on the server to get the new/updated records on the server.

NSCD (Name Service Cache Daemon) is a daemon that provides a cache for the most common name service requests.

To clear the cache, we need to restart the NSCD service as below :-

/etc/init.d/nscd restart

That's it. This will flush the records from the cache and will enable the server to look out for the new records on getting a query.

Sachin | Friday 23 August 2013 - 6:04 pm | | Default | No comments
Used tags: , , ,

Setting up an Error page for your domain

There are times when you would like to set up a custom error page for any particular page or for a page which doesn't exist, and the error page will redirect to the page which you want.

We can use the H-Sphere control panel to set the error page.

To configure Error Pages, follow the steps below:-

Step 1: Login to your H-Sphere control panel.
Step 2: Go to Domain Settings > Web Options for the domain.
Step 3: Scroll down to find the Error option and then click the Add icon on its right.
Step 4: In the form that appears, enter the error document settings:

Error Document Code: Choose the one you need from the drop-down box.

For example: the 404 Not Found message or URL: Any Message you want to display or the path to the page with the ERROR message.
Type: Specify if the text in the previous field must be treated as a URL (Redirect) or as a text message (Message).

Step 5: After this, click on the Submit button at the bottom and you're done with setting up an error page.

That's it. After this, you can test by browsing any of the domains with /xyz.php or /xym.asp - pages which don't exist inside your domain folder and you will be redirected to the page which you've setup.

Sachin | Thursday 22 August 2013 - 6:25 pm | | Default | No comments

How to remove a MySQL database without removing its db user which is being used with another database as well?

In H-Sphere, if we have several databases and have a common db user for all and at some point remove a database then this will remove the database user for all the databases. To prevent this we should first unassign the database user for that database which we want to remove. For that we can follow the steps below:- 

1. Login to the H-Sphere control panel > Go to Databases > MySQL > MySQL DB's.
2. Select the user in question for the respective database.
2. Click on 'Edit user's privilege' and then uncheck all the privilege options there and click on the 'Submit' button.
3. After this, you may see the error 'Internal Error, Tech Support Was Notified' but at that moment you'll see that the db user has disappeared for that database, and then you can remove the database and it won't affect the db user for other databases.

That's it.

Sachin | Tuesday 20 August 2013 - 8:08 pm | | Default | No comments

Changing the MySQL password

Please follow the command below to set your password for the first time for MySQL:-

# mysqladmin -u root password YOURPASSWORD

We can change the root password through the command below :-

# mysqladmin -u root -p'oldpassword' password 'yournewpassword'

Vimal | Tuesday 20 August 2013 - 09:07 am | | Default | No comments
Used tags: , , ,

Transferring Data from One Table to Another

Read More

Dipesh | Tuesday 20 August 2013 - 08:34 am | | Default | No comments
Used tags: , , ,

How to see the records/contents of a MySQL database table?

If you have your own server and have MySQL installed with some database, and would like to view
the contents of a table in that database, then you can follow the steps below:-

Step 1: Login to your Linux server and run the command below on the MySQL command line to login :-
mysql -u root -p [enter]
enter the password

Step 2: View the databases created on the system :-
show databases;

Step 3: Use the database under which you would like to view the contents of the table. For ex-
use abc_db;

Step 4: View the tables in that database using the command below:-
show tables;

Step 5: Now to view the contents of a table, run the command :-
select * from table_a1b2;

After running the command above, you will see the contents of the table.

Sachin | Monday 19 August 2013 - 3:11 pm | | Default | No comments

Creating a password-protected .zip file in Linux

Please follow the command below to create a .zip file with password:

>> zip -P yourpassword file_name.zip file_name  (but the password will show up in history)

>> zip -e file_name.zip file_name (when one runs this command, then one is asked to enter the desired password and the password does not also show up in history).

Vimal | Monday 19 August 2013 - 08:33 am | | Default | One comment
Used tags: , , ,

PLESK not recognizing SmarterMail install?

After installing SmarterMail, it is not showing in the Plesk control panel?

You can fix that problem - you just need to run the server-side command below:

Go to start >> run >> type cmd >> cd %plesk_bin% >> defpackagemng.exe --fix

Akshay | Monday 19 August 2013 - 03:45 am | | Default | No comments

Custom DNS records option not visible in the DNS configuration of the domain in the H-Sphere control panel?

Read More

Akash | Sunday 18 August 2013 - 6:38 pm | | Default | No comments

How to take a MySQL database schema backup using the command line

The following command can be used to take a MySQL database schema backup on the command line :-

command : mysqldump -u dbusername -p passwd datbase_name --no-data=true >> output_file.sql

Abhishek | Sunday 18 August 2013 - 2:33 pm | | Default | No comments
Used tags: , ,

How to run PHP in an HTML page

Add the string below in the .htaccess file:-

addtype application/x-httpd-php .php .htm .inc .html

Manoj | Thursday 08 August 2013 - 05:46 am | | Default | No comments
Used tags: , ,

How to get a partition UUID in Linux

Run the command below:-

[root@mailserver ~]# /sbin/blkid
/dev/sdc1: UUID="f5657f0c-fd89-42ab-8a0c-900253e3a1ed" TYPE="ext4"
/dev/sdc2: UUID="49bf1dff-dc45-4041-aa93-1824c5cee548" TYPE="swap"
/dev/sdc3: UUID="425a0310-5132-4811-9f79-2a1d32d00024" TYPE="ext4"

Manoj | Friday 02 August 2013 - 09:56 am | | Default | No comments
Used tags: , ,