forked from deStrO/eBot-CSGO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.txt
45 lines (43 loc) · 1.4 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
apt-get install gcc make libxml2-dev autoconf
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
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
mkdir /home/ebot
cd /home/ebot
wget https://github.com/deStrO/eBot-CSGO/archive/threads.zip
unzip threads.zip
mv eBot-CSGO-threads ebot-csgo
cd ebot-csgo
npm install socket.io@0.9.12 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
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