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
apt-get -y install php7.0-fpm php7.0-curl php7.0-gd php7.0-imap php7.0-mcrypt php7.0-readline php7.0-common php7.0-recode php7.0-mysql php7.0-cli php7.0-curl php7.0-mbstring php7.0-bcmath php7.0-mysql php7.0-opcache php7.0-zip php7.0-xml php-memcached php-imagick php-memcache memcached graphviz php-pear php-xdebug php-msgpack php7.0-soap |
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://www.google.com/adsense/app?hl=en&noaccount=false#main/upgrade |
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
On Ubuntu/Debian distros, you can easily change the timezone by running the command : | |
sudo dpkg-reconfigure tzdata | |
You will be prompt with a list of timezones that you can select from. |
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
Every time I have to go to terminal, ssh and do this to change the permissions between Joomla (www-data) and FileZilla (ubuntu) | |
sudo chown -R www-data.www-data /var/www/html (Joomla) | |
sudo chown -R ubuntu /var/www/html (File Zilla) | |
How do I set it so that I don't have to change this every time? | |
Solution | |
Add the ubuntu user to the www-data group |
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
user www-data; | |
worker_processes auto; | |
pid /run/nginx.pid; | |
worker_rlimit_nofile 100000; | |
error_log /var/log/nginx/error.log crit; | |
events { | |
worker_connections 4000; |
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
(for %i in (*.mp4) do @echo file '%i') > mylist.txt | |
ffmpeg -f concat -i mylist.txt -c copy output.mp4 |
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
server { | |
listen 443 ssl http2; | |
listen [::]:443 ssl http2; | |
root /var/www/example.com; | |
index index.html index.htm index.php; | |
server_name example.com www.example.com; | |
location / { | |
#try_files $uri $uri/ =404; | |
try_files $uri $uri/ /index.php?q=$uri&$args; | |
} |
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 |