How to Find and Replace Text using sed Command in Linux

In this post i will show to to find and replace text using sed command. We take /etc/host file as an example. We will replace any text “linodelinux.com” to “linodelinux.local” in /etc/hosts # cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.8.111 www.linodelinux.com 192.168.8.111 website1.linodelinux.com 192.168.8.111 website2.linodelinux.com Just issue this command […]

Read More

How to Configure SSL Certificate in Apache Web Server

This article will show how you can enable ssl on you Apache web server container. ServerAdmin support@domain.com ServerName domain.com DocumentRoot /var/www/html/domain.com <Directory “/var/www/html/domain.com”> Options FollowSymLinks MultiViews AllowOverride All #Allow from all <Directory “/var/www/html/domain.com/wp-content/uploads/”> <Files “*.php”> Order Deny,Allow Deny from All ErrorLog logs/domain.com_ssl_error.log TransferLog logs/domain.com_ssl_access.log # SSL Engine Switch: # Enable/Disable SSL for this virtual host. […]

Read More