• Зачем заказывать у кодеров на свой страх и риск, когда есть проверенный сервис по созданию сайтов! http://storegamer.ru/ Покупай готовый проект и зарабатывай прямо сейчас. Консультация бесплатна!

How to create roulette.

В этой теме нельзя размещать новые ответы.


By numerous requests, I write the instruction on installation of roulettes on MySQL. That is, you can make a roulette yourself!

For starters, we need a VPS server, buy it wherever you want, but preferably at least 1 GB of RAM.
After purchase, install on the VPS server Ubuntu 14.04 64 bit.

After that, we connect to our server using the PuTTY program.

After this, we enter the following commands one by one:
sudo apt-get update

apt-get install curl

// y and n, just 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 pass for the database. In the 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 our pass from 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.redis.io/releases/redis-stable.tar.gz

tar xzf redis-stable.tar.gz

cd redis-stable

make test

sudo make install

cd utils

sudo ./install_server.sh // enter 6379
Next, go to the / etc / redis /
There we open the file 6379.conf, We are looking for: #bind Replace with: bind

Now go to the / etc / apahe2 /
Open the file: apache2.conf, find 4 lines: AllowOverride None, and replace them with: AllowOverride All

Next, go to the / etc / apahe2 / sites-available /

Open the file: 000-default.conf

We are looking for a line: DocumentRoot / var / www / html /. and add to it / public, (we get: DocumentRoot / var / www / html / public)

We return to putty, and write:
service redis_6379 restart

service apache2 restart
[/ CODE]

The main work we have done!

Now you need to open the folder with the script, and edit 2 files in it.

For this we need a database, we get it in phpmyadmin. To get there we go to the link: www.yoursite.com / phpmyadmin

We will be asked to authorize, for this we must register, user: root; Pass: The one you came up with when installing mysql;

After authorization, we create a database.

After we created the database and filled the database itself, we return to the folder with the script, we find in it the file: .env,

Open it, and enter our data from the database.

Save the file, and close it. Now go to your script / config folder, Find the file: database.php

We open it, and we also enter the database.

After editing the files in the script, we need to load it into the .zip archive, it's mandatory in the zip, the server will only unpack it.

After packing the files, we return to our ftp client, go to the / var / www / html directory, and upload the archive there.

Go to putty, and write:
cd / var / www / html

unzip titlearchive.zip

We update the directory, and what we see, our archive is unpacked.

Now write in putty:
chmod -R 777 / var / www

chmod -R 777 / var / www / html / storage
That's all, we have to earn everything, go to our site and see the script installed by us! (if you have problems write in the comments, we'll help you!)
В этой теме нельзя размещать новые ответы.