Skip to content

Instantly share code, notes, and snippets.

View kharbanda14's full-sized avatar
🏠
Working from home

Aman Kharbanda kharbanda14

🏠
Working from home
View GitHub Profile
@kharbanda14
kharbanda14 / force_https_with_www.txt
Created May 4, 2019 04:55
Enable force HTTPS with www for your websites in Apache Web Server.
RewriteCond %{HTTPS} off
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
@kharbanda14
kharbanda14 / linux-lampp.md
Last active June 10, 2020 16:17
Set of instructions/commands to set up LAMPP (PHP, MySQL, Apache2) server on Ubuntu 18.04.

LAMPP Server Ubuntu

  1. Step 1 (Apache+PHP+MySQL)
sudo apt install unzip apache2
sudo apt install php7.2 php7.2-json php7.2-xml php7.2-bcmath php7.2-opcache php7.2-curl php7.2-interbase php7.2-mbstring php7.2-gd php7.2-intl php7.2-mysql php7.2-zip php7.2-pgsql
sudo apt install mysql-server