News:

SMF - Just Installed!

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Rahul Sambre

#1
Hi,

Sometimes you faced the issue that not sending emails from some domains. Follow the below steps if you see error in exim_maillog as below.

Quote[::1]:44068 F=Test@domain.name A=dovecot_login:Test@domain.name temporarily rejected RCPT Test@gmail.com: Could not complete sender verify

Steps to resolve this issue:-

To fix this issue you need disable Sender verification option.

1. Login to WHM.

2. Go to Exim configuration editor and set Off option Sender Verification.

3. Save the configuration and restart exim service.

That's it and your issue will be fixed.  :) :)
#2
Hello Folks,

If someone receives the below error while uploading theme by using wordpress.

QuoteFailed to connect to FTP Server x.x.x.x:21

It is asking me for my hostname, username, and password which I put.

when I try to connect through port 21 (which Wordpress tries to do) it fails and showing error "Failed to connect to FTP Server x.x.x.x:21"

In such issue open wp-config.php file into Wordpress root installation folder and add below code.

Quotedefine('FS_METHOD', 'direct');

After that it won't ask for FTP hostname, username, and password.

That's it  :)

#3
Hello,

Follow below steps to restore MSSQL database from SQL server management studio.

Quote1) Login into your server [VPS/managed dedicated server India] by accessing remote desktop connection.

2) Click on SQL Server Management Studio.

3) Fill the details as below to connect to SQL Server Management Studio.

4) Expand the Databases option. Right click on the database name, which you want to restore, Go to Tasks >> Restore >> Database.

5) Click on Options from the left pane. Then select these options.
  • Under Restore options section, check the option Override the existing database (WITH REPLACE).

6) Now, select the option General from the left pane. Then select these options.
  • Under Destination for restore section, select your database from the drop down list of To database.
  • Under Source for restore section, select the From device option.

7) Select the button beside From device option then keep the Backup media type as File and click on Add button.

8 ) Now, select the path of the backup file of your database.

9) After selecting the file, click on OK button in order to restore the database.

That's it.   :)
#4
How To's / How to configure SpamAssassin in cPanel.
July 26, 2016, 05:20:32 AM
Hello.

How to enable SpamAssassin

1) Log in to your cPanel and navigate to Mail section.
2) Click on Apache SpamAssassin menu.
3) Click on Enable Apache SpamAssassin button.

Filters

Spam Auto-Delete option automatically removes the emails which meet or exceed the spam score set. In order to set it, navigate to Apache SpamAssassin menu and find Filters.

1) You can set the required score in a drop-down menu (from 1 to 10).
2) To enable the filter, simply click on Auto-Delete Spam button. To disable the filter, click on Disable Auto-Delete Spam.

Spam Box

Enable Spam Box button makes Exim create a spam folder a separate folder in your mailbox, which will collect incoming emails marked as spam.

Apache SpamAssassin Configuration

1) Spam score

Each incoming mail is being screened by SpamAssassin and given a score, based on the spam characteristics. By default, email messages with the score 5 are considered to be spam. However, it is possible to adjust the filter according to your needs.

In order to do it navigate to Apache SpamAssassin Configuration widget and click on Configure Apache SpamAssassin.

You will be redirected to a menu where several options are available, setting your own spam score is among them. Find required_score field and insert the new value.

2) Blacklist/Whitelist

Some mails may be incorrectly detected as non-spam by Apache SpamAssassin. If these email messages often come from the specific email senders, you can blacklist them. SpamAssassin will then tag those ones as spam.

To blacklist certain sender, just enter it into the one of blacklist_from fields.

If SpamAssassin often blocks certain email senders and marks its mails as spam (incorrectly), it is possible to add the sender to whitelist.

To whitelist specific sender, just enter it into one of whitelist_from fields.

That's it.  :)
#5
How To's / How to backup your database in cPanel.
July 24, 2016, 05:40:36 AM
Hello,

Follow below steps to backup database in cPanel. it is to download a database backup of your MySQL database from within cPanel.

Quote1) Login to your cPanel.
2) Under the files section, click on Backups
3) Now under the Download a MySQL Database Backup section, click on your database name, in this case username1_wordpress
4) Go to the folder your web-browser downloaded the database backup to, and you should now see the compressed .sql.gz file.

That's it. :)
#6
Hello,

The easiest way to modify your WordPress URLs is via the wp-config.php file. If you've moved your WordPress site or are trying to test it from a temporary URL, this also might be the only method that works for you.

1) Edit your wp-config.php file.
2) Define your WP_HOME and WP_SITEURL settings by inserting below lines to the top.

Quotedefine('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');

That's it.  :)
#7
Hello,

You can also adjust your WordPress URL settings directly from the admin dashboard. This method will typically work if you haven't moved your WordPress installation and aren't having any issues access it.

Quote1) Login to WordPress admin dashboard.
2) Click on Settings >> General.
3) Fill in your WordPress Address and Site Address and click Save.
#8
Hello,

You can also diretly modify your WordPress URL settings in the WordPress database using the phpMyAdmin tool.

Quote1) Backup your database in cPanel prior to making changes.
2) Login to cPanel And select phpMyAdmin.
3) Use phpMyAdmin to manage your WordPress database.
4) phpMyAdmin select WordPress databaseSelect your WordPress database from the left.
5) Then select your wp_options table. Your wp_ prefix may differ depending on your install settings.
6)  Click Edit beside either the site URL or home URL entries.
7) Enter in your new URL in the option_valuie field, then click Go.

That's it.  :)
#9
Hi,

If you run a website, you may find out one day that you have a mail account containing thousands of messages. The most common reason this happens is because the default email account is set up as a "catch-all" address. This will direct all email sent to invalid usernames at your domain to the default Inbox. Because spammers send out spam messages to invalid email addresses all the time, the number of emails received by the default mailbox can grow by thousands of messages each day.

Just follow below steps to delete thousands email messages.

1) Log into the Horde Mail system.
2) Click the "Folders" icon at the top of the window.
3) Check the box next to "Inbox" or the mailbox that contains the messages you want to delete.
4) From the "Choose Action:" drop-down menu, select "Empty Folders."
5) Click "Empty Selected Folders" to clean out the mailbox.

Depending on how many messages are stored in your Inbox, this operation may take a few seconds to several minutes to complete. The only catch is that if the mailbox contains too many messages, the operation will time out and will not empty the mailbox.
You may have to delete the message folders manually. To do this, you will first need to navigate to the mail folder, which is located in the following directory.

Quote/home/username/mail/

where "username" is the username for the mail account.

The two folders you will need to delete are the cur and new folders, which contain the messages. You may be able to do this with an SSH.

Use below commands to recursively delete the cur and new directories.

Quotecd /home/username/mail

Quoterm -rf cur

Quoterm -rf new

I hope this information is helpful to you.

That's it.  :)

#10
Hi,

If you wish to restore the database backup from the ones you have taken from Plesk. Login to your Plesk panel & access option Backup Manager . Click on the backups from which you wish to restore the backup. From the option ' What do you want to restore?', tick the radio button for Selected objects & select Database from dropdown for 'Type of object to restore'. From the Available, select the appropriate database and then click on restore by selecting the correct Restoration options .

That's it.  :)
#11
Hi,

Our client was facing an issue with "Hotlink protection" while enabling hotlink protection, Below is the error message.


There was an error while enabling hotlink protection.

Apache detected an error in the Rewrite config.

/usr/local/apache/bin/httpd: line 18: ulimit: virtual memory: cannot modify limit: Operation not permitted
/usr/local/apache/bin/httpd: line 26: /usr/local/lsws/logs/ap_cmd_param.log: Permission denied
AH00526: Syntax error on line 1 of /home/fashionstation/public_html/.htaccess.0YxkU_RIdkP33Cu7PvxwVISwuf5KAN64:
Invalid command 'CacheDisable', perhaps misspelled or defined by a module not included in the server configuration

Please try again.


You receive this error because the permissions on the log file is incorrect OR the .htaccess file has a incorrect rules which conflicts with litespeed.

Set permissions on the log file so that it can be modified/written easily.

Quotechmod 755 /usr/local/lsws/logs/ap_cmd_param.log

Modify the .htaccess under the account and remove the conflicting rules OR modify them.

That's it  :)
#12
Hi,

Ever needed to make a quick adjustment to the php.ini file but you weren't sure where it was? Here is a quick command you can use on server.

Quotephp -i | grep php.ini

That's all.  :)
#13
Hi,

If you are making any changes directly in the apache configuration file on cPanel servers then please don't forget to run the apache distiller to update the template, userdata and apache configuration data files. Otherwise, the changes will get revert back in next apache update.
For example, if you are editing virtualhost entry of any domain then use
the below command to update the userdata.

Quote/usr/local/cpanel/bin/apache_conf_distiller --update

This will prevent cPanel and Apache from removing any changes you made whenever Apache gets restart.

Or

When you need to edit the httpd.conf file or settings for a specific cPanel user you should do so from the below command.

Quote/var/cpanel/userdata/USERNAME folder

After you update any of those files you need to tell cPanel to rebuild the apache configuration file, the easiest way to do that is to run below command.

Quote/scripts/rebuildhttpdconf

That's it.  :)
#14
Hi,

PHP has many environmental variables that you are able to update as needed. For example, you may need to update your php memory_limit to prevent certain scripts from running out of memory. In order to change these values, you must first be able to see what they are. To do that, you will need to create a phpinfo page. A phpinfo page shows you all of your php environment settings.

A phpinfo page is simply a php page with the below code.

Quote<?php
phpinfo();
?>

Follow below steps to create phpinfo page using file manager.

1) Log into your cPanel.
2) Open your File Manager.
3) We are viewing the php settings for our main domain, so open the public_html folder.
4) Click on new file.
5) When prompted for the file name, enter phpinfo.php.
6) Open the phpinfo.php and add below code.

Quote<?php
phpinfo();
?>

Then click on save changes and open it in a browser, URL should be "yourwebsite.com/phpinfo.php" and it will give all the information which is related to PHP which is compiled on your shared hosting server.

That's all  :)
#15
Hi,

Simply follow below steps to create an email signature in RoundCube.

QuoteLogin to webmail >> select RoundCube  >> Click on Settings >> Click on preferences >> Click on identities.

Or else follow below steps.
1) Log into your Webmail dashboard and choose the RoundCube option.
2) From the RoundCube dashboard, click on the Settings option in the upper right corner of the screen.
3) This brings you to the RoundCube Settings screen. Locate and click on the Identities tab.
4) You are now on the Identities list screen. Find and click on the desired identity in the left hand panel. Clicking on the identity brings up two tabs in the right hand panel. Click on the Signatures tab.
5) Enter your desired custom signature in the Signature field. Once entered, click on the Save button.

That's it.  :)