Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2016
492
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.55 KB | None | 0 0
  1. First, we need to VPS server where you want to buy it, I use the hosting interserver.net
  2. After purchasing the set on a VPS server Ubuntu 14.04 64 bit.
  3. After that we connect to our server using putty http://putty.org.ru/download.htmlprogram
  4. The putty prescribes login [standard is - root] and password [when you enter a password it will not be displayed]
  5. Once connected introduce strict order, and without missing a command. [Copy and paste into the console RMB]
  6. Teams:
  7. apt-get update
  8. apt-get install sudo
  9. sudo apt-get update
  10. apt-get install bsdutils
  11. apt-get install curl
  12. There is a choice between n y or simply press the enter [Always press enter]
  13. sudo apt-get install -y build-essential
  14. sudo apt-get install -y python-software-properties
  15. sudo apt-get install -y php5
  16. sudo apt-get install -y apache2
  17. sudo apt-get install -y libapache2-mod-php5
  18. sudo apt-get install -y mysql-server
  19. Come up with a password for the database. Next, we need it!
  20. sudo apt-get install -y php5-mysql
  21. sudo apt-get install -y php5-curl
  22. sudo apt-get install -y php5-gd
  23. sudo apt-get install -y php5-mcrypt
  24. sudo apt-get install -y git-core
  25. sudo apt-get install -y phpmyadmin
  26. Enter Y and press enter.
  27. We enter our password on the database.
  28. apt-get install unzip
  29. curl --silent --location https://deb.nodesource.com/setup_0.12| bash -
  30. apt-get install --yes nodejs
  31. apt-get install --yes build-essential
  32. sudo a2enmod rewrite
  33. sudo /etc/init.d/apache2 restart
  34. curl -sS https://getcomposer.org/installer| php
  35. sudo mv composer.phar / usr / local / bin / composer
  36. sudo apt-get update
  37. sudo apt-get install tcl8.5
  38. wget http://download.redi...s-stable.tar.gz
  39. tar xzf redis-stable.tar.gz
  40. cd redis-stable
  41. make
  42. make test
  43. sudo make install
  44. cd utils
  45. sudo ./install_server.sh
  46. Next, go to the folder / etc / redis /
  47. Open 6379.conf file Looking for: #bind 127.0.0.1, we remove #
  48.  
  49. Now go to the directory / etc / apahe2 /
  50. Open the file: apache2.conf, we find 4 line: AllowOverride None, and replace them with: AllowOverride All
  51. At the very end of the line is inserted Include /etc/phpmyadmin/apache.conf
  52.  
  53. Go to the / etc / apache2 / sites-avialable, open the file: 000-default.conf
  54. Change the DocumentRoot / var / www / html to DocumentRoot / var / www / html / public
  55.  
  56. Back in the putty, and prescribes:
  57. service redis_6379 restart
  58. service apache2 restart
  59.  
  60. Most of the work we have done!
  61.  
  62. Now you need to open the folder with the script, and edit it in 2 files.
  63.  
  64. For this, we need a database, we get it in phpmyadmin. To get there go to the link: www.yourdomain.com/phpmyadmin
  65.  
  66. 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;
  67.  
  68. After creating the authorization database
  69.  
  70. 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,
  71.  
  72. Open it, and enter data from our database.
  73.  
  74. Save the file and close it. Now go to the folder / var / www / html / config, find the file: database.php
  75.  
  76. Open it, and as we enter the database.
  77.  
  78. After editing the file in the script, we need to pack it in 1.zip archive.
  79.  
  80. After zapakovke files, we go back to our ftp client, go to the directory / var / www / html, and throws to the archive.
  81.  
  82. We go to the putty, and prescribes:
  83.  
  84. 1. cd
  85. 2. cd / var / www / html
  86. 3.unzip 1.zip
  87.  
  88. Update catalog, and what we see, our archive is unpacked.
  89.  
  90. Now prescribe in putty:
  91.  
  92. 1. chmod -R 777 / var / www
  93.  
  94. 2. chmod -R 777 / var / www / html / storage
  95.  
  96. That's all. If you have any questions then please write in the comment.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement