The Awesome Web Development Tutorials

Category Web Server

Treat a subdirectory as root with .htaccess file in Apache

Reference: https://stackoverflow.com/questions/2402140/use-a-subdirectory-as-root-with-htaccess-in-apache-1-3

Asian fonts support on EC2/CentOS

List of all the fonts that are in the Amazon Linux AMI repositories # yum list available font | grep noarch | sed -e “s/noarch.$/noarch/” | sort Install them by this command # yum install -y cjkuni-fonts-common.noarch cjkuni-ukai-fonts.noarch

How to Change or Set System Locales in Linux

How to View System Locale in Linux $ locale LANG=en_US.UTF-8 LANGUAGE=en_US LC_CTYPE=”en_US.UTF-8″ LC_NUMERIC=”en_US.UTF-8″ LC_TIME=”en_US.UTF-8″ LC_COLLATE=”en_US.UTF-8″ LC_MONETARY=”en_US.UTF-8″ LC_MESSAGES=”en_US.UTF-8″ LC_PAPER=”en_US.UTF-8″ LC_NAME=”en_US.UTF-8″ LC_ADDRESS=”en_US.UTF-8″ LC_TELEPHONE=”en_US.UTF-8″ LC_MEASUREMENT=”en_US.UTF-8″ LC_IDENTIFICATION=”en_US.UTF-8″ LC_ALL= $ localectl status System Locale: LANG=en_US.UTF-8 LANGUAGE=en_US VC Keymap: n/a X11 Layout: us X11 Model: pc105… Continue Reading →

How to Configure FTP on AWS EC2

Below are the basic steps to set up an FTP on AWS EC2 instance (I’m using Amazon Linux AMI) Step 1: Getting started Login to your AWS EC2 instance via Terminal sudo yum update -y // To update your server… Continue Reading →

How to Limit Bandwidth in Apache (WAMP/XAMPP)

1. Open httpd.conf, enable this line: LoadModule ratelimit_module modules/mod_ratelimit.so 2. Find DocumentRoot block and add settings like this: 3. Restart Apache Reference: https://youtu.be/lv-8YADwntk

Schedule a nightly reboot Ubuntu

Edit crontab: sudo crontab -e The first time you might have to choose your preferred editor (like vim). 0 4 * * * /sbin/shutdown -r +5 It would reboot your system every day at 4:05am. (4:00am + 5 minutes). Finally,… Continue Reading →

How to Install and Enable Imagick for PHP 7 on Ubuntu 20.04

Imagick is a PHP extension that allows you to manipulate images. Some libraries or packages require that Imagick be installed on your server. However, because Imagick is optional, it’s not installed with PHP by default. Here’s how to install and… Continue Reading →

How to enable gzip compression on Web Server

Website gzip compression makes it possible to reduce the file size of a web file (like HTML, PHP, CSS and Javascript files) to about 30% or less of its original size before these files get sent to the browser of… Continue Reading →

How to Change SSH Port in Ubuntu 20.04

This tutorial explains how to configure Ubuntu OpenSSH server to run on some specific port number rather than the default port number 22, in order to increase the overall security of your Ubuntu server. The SSH server on Ubuntu listen… Continue Reading →

« Older posts

© 2023 HTML Coding World — Powered by WordPress

Theme by Anders NorenUp ↑