Category Archives: My Linux

Centos 7 redirect http to https

<VirtualHost *:80> ServerName example.com Redirect “/” “https://example.com/” </VirtualHost>

Posted in apache, centOS | Comments Off on Centos 7 redirect http to https

How to reset WordPress Admin Password via MySQL Command Line

Step 1 : Generating MD5 hash for WordPress admin password Try to change the current password admin123 to wpadmin123.Create a file called wp.txt, containing nothing but the new password. # vi wp.txt Run the below command to get the MD5 string. # tr -d … Continue reading

Posted in My Linux | Comments Off on How to reset WordPress Admin Password via MySQL Command Line

Change the Time Zone ubuntu

Open the Terminal and enter the following command in order to list all the timezones of the specified zone: Syntax: $ timedatectl list-timezones | grep -i [zone] Example: We will use this command to list all the time zones of … Continue reading

Posted in command line of linux, My Linux, ubuntu | Comments Off on Change the Time Zone ubuntu

resize diskspace instant machine ‘centOS’ on Google Cloud Platform

sudo yum -y install cloud-utils-growpart sudo growpart /dev/sda 1 sudo xfs_growfs /dev/sda1 df -h /dev/[DEVICE_ID]

Posted in apache, centOS | Comments Off on resize diskspace instant machine ‘centOS’ on Google Cloud Platform

remove free SSL let’s encrypt

Right. –dry-run gets fake certificates from the staging environment and doesn’t save them. It tests most aspects of renewal pretty well, but not all of them. If you use –force-renewal, it will issue new certificates from the production environment and … Continue reading

Posted in lets encrypted, My Linux, SSL | Comments Off on remove free SSL let’s encrypt