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) {
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');
Sometimes we've seen that when we send emails using Outlook and other email programs, they get bounced back with the error message below:-
---------------------------------------------------------------------------------------
<[email protected]>:
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.
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.
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 protected]
------------------------------------------------------------------------------------------------------------------------------------------------------
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” [email protected]
--------------------------------------------------------------------------------------------------------------------------------------------------------
That's it.
>> 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
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.
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
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.
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.
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
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.
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.
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.
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.
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'
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.
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).
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
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
Add the string below in the .htaccess file:-
addtype application/x-httpd-php .php .htm .inc .html
Run the command below:-
[[email protected] ~]# /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"
|
|