Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo apt-get install curl git
- sudo add-apt-repository ppa:ondrej/php
- sudo apt-get update
- 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
- sudo apt-get install php5.6-curl
- curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
- sudo apt-get install mysql-server
- sudo apt-get update && sudo apt-get upgrade
- sudo iptables -I INPUT -p tcp --dport 3306 -m state --state NEW,ESTABLISHED -j ACCEPT
- sudo iptables -I OUTPUT -p tcp --sport 3306 -m state --state ESTABLISHED -j ACCEPT
- sudo /usr/sbin/update-rc.d mysql defaults
- sudo apt-get install php5.6-gd
- sudo apt-get install php5.6-mbstring
- sudo apt-get install php5.6-dom
- chmod 777 FOLDER
- sudo apt-get install apache2 apache2-doc apache2-utils
- sudo subl /etc/apache2/ports.conf
- sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/invoice.conf
- sudo a2ensite invoice.conf
- sudo service apache2 restart
- sudo a2enmod rewrite
- composer install
- <VirtualHost *:8777>
- ServerAdmin youremail@yahoo.com
- ServerName bigfourinventory.com
- ServerAlias www.bigfourinventory.com
- DocumentRoot "/var/www/BigFourInventory/public"
- <Directory /var/www/BigFourInventory/public>
- Options Indexes FollowSymLinks
- AllowOverride All
- Require all granted
- </Directory>
- </VirtualHost>
- From php5.6 to php7.0:
- Apache:
- sudo a2dismod php5.6 ; sudo a2enmod php7.0 ; sudo service apache2 restart
- CLI:
- sudo update-alternatives --set php /usr/bin/php7.0
- From php7.0 to php5.6:
- Apache:
- sudo a2dismod php7.0 ; sudo a2enmod php5.6 ; sudo service apache2 restart
- CLI:
- sudo update-alternatives --set php /usr/bin/php5.6
- //** SUBLIME
- sudo add-apt-repository ppa:webupd8team/sublime-text-3
- sudo apt-get update
- sudo apt-get install sublime-text-installer
- //**NX NOMACHINE
- download
- https://www.nomachine.com/download/download&id=4
- sudo tar zxvf nomachine_5.3.12_10_x86_64.tar.gz
- sudo NX/nxserver --install
- sudo apt-get install openssh-server
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement