forked from deStrO/eBot-CSGO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.txt
56 lines (50 loc) · 1.68 KB
/
install.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
apt-get install gcc make libxml2-dev autoconf ca-certificates unzip nodejs curl libcurl4-openssl-dev pkg-config
mkdir /home/install
cd /home/install
wget http://be2.php.net/get/php-5.5.15.tar.bz2/from/this/mirror -O php-5.5.15.tar.bz2
tar -xjvf php-5.5.15.tar.bz2
cd php-5.5.15
./configure --prefix /usr/local --with-mysql --enable-maintainer-zts --enable-sockets --with-openssl --with-pdo-mysql
make
make install
cd /home/install
wget http://pecl.php.net/get/pthreads-2.0.7.tgz
tar -xvzf pthreads-2.0.7.tgz
cd pthreads-2.0.7
/usr/local/bin/phpize
./configure
make
make install
echo 'date.timezone = Europe/Paris' >> /usr/local/lib/php.ini
echo 'extension=pthreads.so' >> /usr/local/lib/php.ini
#### opt #####
apt-get install mysql-server
#and make database
#############
mkdir /home/ebot
cd /home/ebot
wget https://github.com/deStrO/eBot-CSGO/archive/master.zip
unzip master.zip
mv eBot-CSGO-master ebot-csgo
cd ebot-csgo
curl --silent --location https://deb.nodesource.com/setup_0.12 | bash -
apt-get install -y nodejs
npm install [email protected] archiver formidable
curl -sS https://getcomposer.org/installer | php5
php5 composer.phar install
# edit config config/config.ini with IP/PORT and MySQL access
cd /home/ebot
wget https://github.com/deStrO/eBot-CSGO-Web/archive/master.zip
unzip master.zip
mv eBot-CSGO-Web-master ebot-web
cd ebot-web
cp config/app_user.yml.default config/app_user.yml
# edit config config/app_user.yml with ebot_ip and ebot_port
# edit database config/database.yml
mkdir cache
php5 symfony cc
php5 symfony doctrine:build --all --no-confirmation
php5 symfony guard:create-user --is-super-admin admin@ebot admin admin
#To start ebot daemon
/home/ebot/ebot-csgo
php bootstrap.php