Advertisement
Guest User

Untitled

a guest
Dec 10th, 2019
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.22 KB | None | 0 0
  1. sudo apt-get install curl git
  2.  
  3. sudo add-apt-repository ppa:ondrej/php
  4. sudo apt-get update
  5. sudo apt-get install php7.0 php5.6 php5.6-mysql php-gettext php5.6-mbstring php-mbstring php7.0-mbstring php-xdebug libapache2-mod-php5.6 libapache2-mod-php7.0
  6. sudo apt-get install php5.6-curl
  7.  
  8. curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
  9.  
  10. sudo apt-get install mysql-server
  11.  
  12. sudo apt-get update && sudo apt-get upgrade
  13.  
  14.  
  15. sudo iptables -I INPUT -p tcp --dport 3306 -m state --state NEW,ESTABLISHED -j ACCEPT
  16. sudo iptables -I OUTPUT -p tcp --sport 3306 -m state --state ESTABLISHED -j ACCEPT
  17.  
  18. sudo /usr/sbin/update-rc.d mysql defaults
  19.  
  20.  
  21.  
  22. sudo apt-get install php5.6-gd
  23. sudo apt-get install php5.6-mbstring
  24. sudo apt-get install php5.6-dom
  25. chmod 777 FOLDER
  26.  
  27.  
  28.  
  29. sudo apt-get install apache2 apache2-doc apache2-utils
  30. sudo subl /etc/apache2/ports.conf
  31.  
  32. sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/invoice.conf
  33.  
  34. sudo a2ensite invoice.conf
  35. sudo service apache2 restart
  36. sudo a2enmod rewrite
  37.  
  38. composer install
  39.  
  40. <VirtualHost *:8777>
  41. ServerAdmin youremail@yahoo.com
  42. ServerName bigfourinventory.com
  43. ServerAlias www.bigfourinventory.com
  44. DocumentRoot "/var/www/BigFourInventory/public"
  45. <Directory /var/www/BigFourInventory/public>
  46. Options Indexes FollowSymLinks
  47. AllowOverride All
  48. Require all granted
  49. </Directory>
  50. </VirtualHost>
  51.  
  52.  
  53. From php5.6 to php7.0:
  54.  
  55. Apache:
  56.  
  57. sudo a2dismod php5.6 ; sudo a2enmod php7.0 ; sudo service apache2 restart
  58.  
  59. CLI:
  60.  
  61. sudo update-alternatives --set php /usr/bin/php7.0
  62.  
  63. From php7.0 to php5.6:
  64.  
  65. Apache:
  66.  
  67. sudo a2dismod php7.0 ; sudo a2enmod php5.6 ; sudo service apache2 restart
  68.  
  69. CLI:
  70.  
  71. sudo update-alternatives --set php /usr/bin/php5.6
  72.  
  73.  
  74. //** SUBLIME
  75. sudo add-apt-repository ppa:webupd8team/sublime-text-3
  76. sudo apt-get update
  77. sudo apt-get install sublime-text-installer
  78.  
  79. //**NX NOMACHINE
  80. download
  81. https://www.nomachine.com/download/download&id=4
  82. sudo tar zxvf nomachine_5.3.12_10_x86_64.tar.gz
  83. sudo NX/nxserver --install
  84.  
  85. sudo apt-get install openssh-server
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement