• Welcome to Web Hosting Forum - A Web Hosting Community for Webmasters.
 
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 - kumkum

#1
Its very easy to check MySQL version via SSH, you just have to enter below command for it.
MySQL -V

You can check description for this here.

For PHP version you can run below command:
php -v
#2
You can easily enable browser cache by adding below code in .htaccess file.

<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 year"
ExpiresByType text/html "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 year"
ExpiresByType audio/x-wav "access plus 1 month"
ExpiresByType audio/mpeg "access plus 1 month"
ExpiresByType video/mpeg "access plus 1 month"
ExpiresByType video/mp4 "access plus 1 year"
ExpiresByType video/quicktime "access plus 1 month"
ExpiresByType video/x-ms-wmv "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresByType application/x-font-woff "access plus 1 year"
ExpiresDefault "access 1 month"
</IfModule>

You can add this code in your configuration file. To find your .htaccess file you can check steps here.
#3
If you are getting MySQL too many connections error then first you have to check your current connections with below command:
mysql --user="root" --password="PASSWORD" --execute='SHOW VARIABLES LIKE "max_connections";

You will be able to see the number of connections available for your website.
Now you have to open the file /etc/mysql/my.cnf and increase the parameters.

max_connections = 500
max_user_connections = 500
#4
If you are getting error "530 user cannot log in home directory inaccessible" while working on FTP codes then here are few steps to resolve this error.
Mostly this error occur when you are working on sending or receiving data.

You can resolve this error with IIS (Internet Information Service), it is must to have root access.
You can easily resolve 530 User cannot log in error in IIS.
#5
cPanel/WHM / Re: Disable update now link in AwStats
December 25, 2021, 07:24:43 PM
If you are getting any issue related to awstats then you can check from WHM.
You can login to WHM and navigate to Statistics Software Configuration" under Server Configuration Option.
Here you will find all the details related to awstats. You can also take help from this.
#6
cPanel/WHM / Re: Uninstall cPanel from server
December 16, 2021, 08:07:37 PM
If you have installed cpanel on  your Centos server then it not possible to uninstall it.
Is better to rebuild your server.
#7
You can check that your website under brute force attack.
There are few ways to prevent your website from brute force attack.

  • Always use STRONG password.
  • You can also use wordpress plugin.

You can check more steps : https://hoststud.com/resources/how-to-prevent-wp-login-php-from-brute-force-attack.396/
#8
If you are getting error "website does not exist" then first you have to check your domain is pointing or not.
And after that you can try to re-install your Wordpress.

You can check proper steps to install Wordpress with softaculous.
#9
You have to run command to know version. You have to run below command in SSH:
SHOW VARIABLES LIKE "%version%";

You can also get more details to check MySQL version.
#10
You are getting this issue due to mixed content issue, in this you are using http instead of https in your application.
So either you can manually check or use any plugin to resolve this issue.

You can also find few steps to resolve mixed content issue,
#11
You can use UpdraftPlus plugin to take backup and restore your Wordpress website.
You just have to take care of few things for that you can check steps to take backup and restore website with UpdraftPlus plugin.
#12
MySQL / Re: commands to start/stop/restart MySQL server
September 20, 2021, 08:56:45 PM
If you are using Centos server then you can use below commands to start or stop Mysql server.
It is must to have root access of server.

You can check steps to start/stop or restart mysql.
#13
According to me CWP (Centos Web Panel) is default control panel of centos and has most interesting features too.
You can check here about CWP.
#14
The most simple way to prevent from unauthorized access is to add below code in your .htaccess file:
<files ~ "^.*.([Hh][Tt][Aa])">
order allow,deny
deny from all
satisfyall
</files>


If you are using cpanel then you can also add particualr IP address to prevent access from those IP's.
For more details regarding prevent unauthorized access from .htaccess you can check.
#15
WordPress Themes / Re: All-in-one vs Yoast
September 14, 2020, 11:15:42 PM
Hi,
I am also agree that Yoast SEO plugin is better than All-in-one plugin.
With Yoast SEP plugin you can optimize every page of your website with a powerful analysis tool.
There are lots of options available in Yoast SEO plugin so atleast you have to install this plugin and check for better result.
#16
Hi,
You are facing this issue because you are using  "W3 Total Cache" plugin.
So first you have to disabled this plugin and then try to delete your plugin. You will definitely able to delete your plugin.

Hope this will help you.
#17
Hi,
You can use Linux commands to transfer 200GB data from one server to another.
For that you can use either rsync command or scp command.

- scp command: scp -P port -r root@destinationserverIP:/home/path /home/destinationpath
- rsync command : rsync A host:B

These both the commands used to transfer data but rsync command is better because it uses delta transfer algorithm which makes transfer more faster.
#18
Hi everyone,
I know this is old post and you have also post right thing about redirection to https.
I just want to add that you can also redirect from http to https from cpanel:
- Login to cpanel
- Under domain section click on "Force HTTPS Redirect"
- From this you can redirect your website from http to https without adding code in .htaccess file.

According to me this is the easiest way for the https redirection.
#19
WordPress Support / Re: WordPress HTTPS Error
August 22, 2020, 08:10:22 PM
Hi,
If you are on shared server then you can ask your hosting company regarding SSL certificate.
You can ask them to install Free SSL for your website or if they don't provide FreeSSL then you can install paid SSL certificate.

If you have VPS hosting plan then you can yourself install SSL certificate on your server.
You can follow these steps to install SSL on your server:

Login to the WHM by going to yourdomain.com/whm in a browser. Replace yourdomain.com with your domain.
Once you get to the login page enter your username and password.
Username will be root.
Password will be the root password for your server.

The WHM login page.
If this is your first time logging into the WHM you may see a page titled "Feature Showcase". Click on Exit to WHM at the bottom of the page.The Feature Showcase page with 'Exit to WHM' spotlighted.

Access The Install SSL Tool
Once you are logged into the WHM you need to use the SSL installer to upload and activate a certificate on the domain. The easiest way to find it is through the WHM search tool.

In the WHM Search box on the left side enter "Install an SSL Certificate"
Click on the "Install an SSL Certificate on a Domain" link that appears.
You should now be at the Install an SSL Certificate on a Domain page in the WHM.

The Install an SSL Certificate on a Domain page.

Install The SSL
When you purchased the SSL certificate you should have received files for your certificate, key and Certificate Authority bundle. If you do not have these files you will need to get them from the company you purchased the certificate from.

On the "Install an SSL Certificate on a Domain" page enter your domain your certificate was issued for into the "Domain:" The Domain box.
Paste the Certificate, Key and Certificate Authority Bundle into their respective boxes.The certificate, key and CA bundle boxes.
Click the Install button at the bottom.

The SSL certificate should be installed and you can begin using it.
#20
Hi,
I am commenting on this old post because i want to add solution of this problem.
Seems like the update went wrong and some files got corrupted.

You can try this to fix it:

  • Download a new Wordpress installation zip https://wordpress.org/download/
  • Remove the folders wp-admin & wp-includes from your server
  • Reupload those folders from the fresh downloaded Wordpress zip

Note: this does not delete your site content, the content of your website is in the database and in the wp-content folder.
#21
Hi,
I know this is old post but i just want tel about SSH port change. I just want to say that according to security purpose you have to change your SSH port number.
Its because default SSH port is 22 and everyone know this, so for security purpose you have to change it.

You have to change port in sshd_config file and for uncommented port settings line. you can find your "sshd_config" file in /etc/ssh/ path.
After changing it you have to restart sshd service to reflect the changes

For detailed steps you can check this link: https://hoststud.com/resources/how-to-change-ssh-port-on-centos-linux-server.151/
#22
Thanks for the amazing information.... Commands are the difficult to learn and search and i am new in this field and by reading this i am happy to read and run all these commands on Linux server.
#23
Thank you for your description on symlink. It's really very helpful.  :) :)