Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. # HABILITAR SWAP
  2. ````
  3. fallocate -l 4G /swapfile &&\
  4. chmod 600 /swapfile &&\
  5. mkswap /swapfile &&\
  6. swapon /swapfile &&\
  7. echo "/swapfile swap swap defaults 0 0" >> /etc/fstab &&\
  8. free -h
  9. ````
  10.  
  11. # CONFIGURAR HORA
  12. ````
  13. dpkg-reconfigure tzdata
  14. ````
  15.  
  16. # LAMP
  17. ````
  18. add-apt-repository ppa:ondrej/php
  19. add-apt-repository ppa:ondrej/apache2
  20. apt-get update
  21. apt-get install apache2 php5.6-fpm php7.1-fpm
  22. apt-get install mysql-server
  23. a2enmod proxy proxy_fcgi headers expires rewrite
  24. apt-get install php5.6-mysql php5.6-xml php5.6-mbstring php5.6-gd php5.6-curl php5.6-zip
  25. apt-get install php7.1-mysql php7.1-xml php7.1-mbstring php7.1-gd php7.1-curl php7.1-zip
  26. sed -i 's/post_max_size.*/post_max_size = 500M/' /etc/php/*/fpm/php.ini
  27. sed -i 's/upload_max_filesize.*/upload_max_filesize = 500M/' /etc/php/*/fpm/php.ini
  28. ````
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement