Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # HABILITAR SWAP
- ````
- fallocate -l 4G /swapfile &&\
- chmod 600 /swapfile &&\
- mkswap /swapfile &&\
- swapon /swapfile &&\
- echo "/swapfile swap swap defaults 0 0" >> /etc/fstab &&\
- free -h
- ````
- # CONFIGURAR HORA
- ````
- dpkg-reconfigure tzdata
- ````
- # LAMP
- ````
- add-apt-repository ppa:ondrej/php
- add-apt-repository ppa:ondrej/apache2
- apt-get update
- apt-get install apache2 php5.6-fpm php7.1-fpm
- apt-get install mysql-server
- a2enmod proxy proxy_fcgi headers expires rewrite
- apt-get install php5.6-mysql php5.6-xml php5.6-mbstring php5.6-gd php5.6-curl php5.6-zip
- apt-get install php7.1-mysql php7.1-xml php7.1-mbstring php7.1-gd php7.1-curl php7.1-zip
- sed -i 's/post_max_size.*/post_max_size = 500M/' /etc/php/*/fpm/php.ini
- sed -i 's/upload_max_filesize.*/upload_max_filesize = 500M/' /etc/php/*/fpm/php.ini
- ````
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement