You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
449 B
19 lines
449 B
install nginx -y
|
|
|
|
exec('cp '.base_path().'/resources/nginx/snippets/*.conf /etc/nginx/snippets');
|
|
|
|
exec('mkdir /var/www/imateapot');
|
|
exec('cp '.base_path().'/resources/imateapot/public/* /var/www/imateapot');
|
|
exec('chmod 644 /var/www/imateapot/*');
|
|
|
|
echo $(grep ^processor /proc/cpuinfo | wc -l)
|
|
echo $(ulimit -n)
|
|
|
|
ufw allow "Nginx Full"
|
|
|
|
chown -R www-data:www-data /var/www
|
|
chmod -R 775 /var/www
|
|
chmod g+s /var/www
|
|
|
|
usermod -aG www-data <username>
|