This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The following PHP modules which can come in handy in case you are planning to install WordPress or other CMS. | |
sudo apt-get install -y php7.0-tidy php7.0 php7.0-fpm php7.0-mysql php-curl php-gd php-mcrypt php-pear php7.0-mbstring php-memcached php7.0-gmp php-zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# HTTPS Server | |
server { | |
listen 443 ssl http2 default_server; | |
listen [::]:443 ssl http2 default_server; | |
root /var/www/html; | |
index index.html index.htm index.php; | |
server_name example.com; | |
ssl_certificate /etc/nginx/ssl/example.com.crt; | |
ssl_certificate_key /etc/nginx/ssl/example.com.key; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install php-pear | |
sudo pear install mail | |
sudo pear install Net_SMTP | |
sudo pear install Auth_SASL | |
sudo pear install mail_mime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# HTTP Server | |
server { | |
listen 80; | |
server_name yourwebsitename.com www.yourwebsitename.com; | |
rewrite ^ https://$server_name$request_uri permanent; | |
} | |
# HTTPS Server | |
server { | |
listen 443; |
NewerOlder