auto renew letsencrypt ssl apache on linux

For auto renew SSL certificate I added following code in crontab. 0 0 */10 * * certbot renew >> /logs/certbot-cron.log 2>&1 Log of certbot renew command. [root@vps147238 ep]# certbot renew Saving debug log to /var/log/letsencrypt/letsencrypt.log Processing /etc/letsencrypt/renewal/purabtech.com.conf – – – – – – – – – – – – – – – – – – …

Open 443 and 80 port on linux VM

If your apache or Nginx or tomcat server is configured properly still your site is not opening then check firewall and port is opened on the internet. Check the status of your firewall. use this command firewall-cmd –state running Check which zones are active [root@vps147238 purab]# firewall-cmd –get-active-zonespublicinterfaces: eth0 Open port 80 and port 443 …

Solved: letsencrypt certbot KeyError: ‘Directory field not found’

While running certbot command I got following error: [root@vps147238 letsencrypt]# certbot –apache certonly –cert-name purabtech.com -d purabtech.inSaving debug log to /var/log/letsencrypt/letsencrypt.logPlugins selected: Authenticator apache, Installer apacheEnter email address (used for urgent renewal and security notices) (Enter ‘c’ tocancel): purab@test.inStarting new HTTPS connection (1): acme-v02.api.letsencrypt.orgAn unexpected error occurred:KeyError: ‘Directory field not found’Please see the logfiles in …

create self signed certificate for website and use in linux

Within in 5 minutes you can can create self signed certificate on linux machine. First you need to open console and execute following command. Before executing following command first check openssl utility is installed on your linux machine. # openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout mysitename.key -out mysitename.crt Then open your apache …

delete some days old files and folder linux command

Linux systems are always used as server. Many times we need to cleanup the server. I found nice solution for deleting older files and folders from server without any issue. For deleting files or folder you can use following command: rm -rf `find /home/purab/* -type d -mtime +90` Above command will find all files and …

Install drush on CentOS using command line with simple steps

Drush is great native application for development of drupal project. I really like to use this tool in every project. There are some good steps to install drush on Linux or windows environment. I recently installed drush on my centos machine