๐งฐ Fullstack & Mobile Dev
๐ Prague & Sydney
๐ฅณ Chipmunks & Coffee
๐ Currently the tech lead at Circul8
lucien144 / lemp-stack Goto Github PK
View Code? Open in Web Editor NEW๐ค LEMP w/ PHP7.X & MariaDB on Ubuntu 16/17/18 x64
๐ค LEMP w/ PHP7.X & MariaDB on Ubuntu 16/17/18 x64
$ apt-get install -y sendmail
$ sudo sendmailconfig
$ hostname
$ sudo nano /etc/hosts # 127.0.0. localhost localhost.localdomain hostname
$ sudo ufw allow 587
$ sudo service ufw restart
Based on some of these tips https://github.com/A5hleyRich/wordpress-nginx
Include fail2ban
?
Nginx โ /etc/nginx/sites-available/new-site.tld
client_max_body_size 128M;
PHP โ /etc/php/7.0/fpm/php.ini
upload_max_filesize = 128M
...
Add to the /etc/bash.bashrc
alias rm='echo "This is not the command you are looking for. Use trash-put instead."; false'
Install trash-cli apt install trash-cli
$ sudo usermod -s /bin/bash USER
After I completed the tutorial my domain name started to redirect to www.tqode.com and I see no response at all, and even if I hit the ip http://178.62.76.82/ I get 403 error, if you can help please.
Like if WP is in subdirectory:
location / {
try_files $uri /wordpress/index.php?q=$uri&$args;
}
location /wordpress {
index index.php index.html index.htm;
try_files $uri $uri/ /index.php?q=$uri&$args;
}
$ sudo groupadd sftp
$ sudo usermod -g sftp yournewuser
$ sudo nano /etc/ssh/sshd_config
Change the /etc/ssh/sshd_config
# override default of no subsystems
#Subsystem sftp /usr/lib/openssh/sftp-server
# ๐
Subsystem sftp internal-sftp
Add this to the end of the /etc/ssh/sshd_config
Match group sftp
X11Forwarding no
ChrootDirectory %h
AllowTcpForwarding no
ForceCommand internal-sftp
$ sudo chown root: /var/www/vhosts/USERSHOME
$ sudo chmod 755 /var/www/vhosts/USERSHOME
$ sudo service ssh restart
To disable the bash entirely for this user, you can run $ sudo usermod -s /bin/false USER
Reference: https://shapeshed.com/chroot-sftp-users-on-ubuntu-intrepid/
Include automatic security updates with unattended-upgrades
Since it's not complete and valid... ?
Especially include the HTTPS version -> https://irulan.net/nginx-http-and-https-default-server/
Include the logrotate for each vhost in logrotate config?
Renaming the vhost logs to $HOSTNAME-{access,error}.log for better logrotate logging?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.