Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- First, we need to VPS server where you want to buy it, I use the hosting interserver.net
- After purchasing the set on a VPS server Ubuntu 14.04 64 bit.
- After that we connect to our server using putty http://putty.org.ru/download.htmlprogram
- The putty prescribes login [standard is - root] and password [when you enter a password it will not be displayed]
- Once connected introduce strict order, and without missing a command. [Copy and paste into the console RMB]
- Teams:
- apt-get update
- apt-get install sudo
- sudo apt-get update
- apt-get install bsdutils
- apt-get install curl
- There is a choice between n y or simply press the enter [Always press enter]
- sudo apt-get install -y build-essential
- sudo apt-get install -y python-software-properties
- sudo apt-get install -y php5
- sudo apt-get install -y apache2
- sudo apt-get install -y libapache2-mod-php5
- sudo apt-get install -y mysql-server
- Come up with a password for the database. Next, we need it!
- sudo apt-get install -y php5-mysql
- sudo apt-get install -y php5-curl
- sudo apt-get install -y php5-gd
- sudo apt-get install -y php5-mcrypt
- sudo apt-get install -y git-core
- sudo apt-get install -y phpmyadmin
- Enter Y and press enter.
- We enter our password on the database.
- apt-get install unzip
- curl --silent --location https://deb.nodesource.com/setup_0.12| bash -
- apt-get install --yes nodejs
- apt-get install --yes build-essential
- sudo a2enmod rewrite
- sudo /etc/init.d/apache2 restart
- curl -sS https://getcomposer.org/installer| php
- sudo mv composer.phar / usr / local / bin / composer
- sudo apt-get update
- sudo apt-get install tcl8.5
- wget http://download.redi...s-stable.tar.gz
- tar xzf redis-stable.tar.gz
- cd redis-stable
- make
- make test
- sudo make install
- cd utils
- sudo ./install_server.sh
- Next, go to the folder / etc / redis /
- Open 6379.conf file Looking for: #bind 127.0.0.1, we remove #
- Now go to the directory / etc / apahe2 /
- Open the file: apache2.conf, we find 4 line: AllowOverride None, and replace them with: AllowOverride All
- At the very end of the line is inserted Include /etc/phpmyadmin/apache.conf
- Go to the / etc / apache2 / sites-avialable, open the file: 000-default.conf
- Change the DocumentRoot / var / www / html to DocumentRoot / var / www / html / public
- Back in the putty, and prescribes:
- service redis_6379 restart
- service apache2 restart
- Most of the work we have done!
- Now you need to open the folder with the script, and edit it in 2 files.
- For this, we need a database, we get it in phpmyadmin. To get there go to the link: www.yourdomain.com/phpmyadmin
- We are asked to be logged in to do that we need to register a user: root; Password: The one that you came up with when installing mysql;
- After creating the authorization database
- After we have created a database and have filled the base itself, going back to the folder with the script, found in her file: .env,
- Open it, and enter data from our database.
- Save the file and close it. Now go to the folder / var / www / html / config, find the file: database.php
- Open it, and as we enter the database.
- After editing the file in the script, we need to pack it in 1.zip archive.
- After zapakovke files, we go back to our ftp client, go to the directory / var / www / html, and throws to the archive.
- We go to the putty, and prescribes:
- 1. cd
- 2. cd / var / www / html
- 3.unzip 1.zip
- Update catalog, and what we see, our archive is unpacked.
- Now prescribe in putty:
- 1. chmod -R 777 / var / www
- 2. chmod -R 777 / var / www / html / storage
- That's all. If you have any questions then please write in the comment.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement