sudo apt install php php-curl libcurl4-openssl-dev php-mysql php-memcache mysql-server libmysqlclient-dev nginx memcached screen libldap2-dev libidn11-dev librtmp-dev libkrb5-dev sendmail
First, make sure there you have no configs already specified as "default_server" or "server_name _". Then, create /etc/nginx/sites-enabled/pool.conf:
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/web;
index index.html index.htm;
server_name _;
location / {
try_files $uri @rewrite;
}
location @rewrite {
rewrite ^/(.*)$ /index.php?r=$1;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
}
}
sudo service nginx restart
sudo service nginx status
mysql> CREATE DATABASE pool;
mysql> CREATE USER 'php'@'localhost' IDENTIFIED BY 'password';
mysql> GRANT ALL PRIVILEGES ON *.* TO 'php'@'localhost' WITH GRANT OPTION;
mysql> CREATE USER 'yiimp'@'localhost' IDENTIFIED BY 'password';
mysql> GRANT ALL PRIVILEGES ON *.* TO 'yiimp'@'localhost' WITH GRANT OPTION;
cd sql
mysql -u yiimp -p pool < yaamp-2018-06-21-06.sql
cd ..
sudo cp -rf web /var/www/
sudo cp web/keys.sample.php /var/www/web/keys.php
mkdir /var/www/sql
sudo vim /var/www/web/keys.php
sudo mv /var/web/serverconfig.sample.php /var/web/serverconfig.php
sudo vim /var/web/serverconfig.php
... need to change YAAMP_DBNAME, YAAMP_DBUSER, and YAAMP_DBPASSWORD
... also set YAAMP_RENTAL to false, YAAMP_SITE_NAME to preferred name, and configure YAAMP_ADMIN_EMAIL and YAAMP_ADMIN_IP
cd bin
./yiimp checkup
cd /var/www/web
screen
./main.sh
... switch screen ...
./loop2.sh
... switch screen ...
./block.sh
Now your webserver should be running! Check it in your web browser
apt install golang-1.10
add the following to your ~/.bashrc
export GOPATH=$HOME/.go
export PATH=$PATH:/usr/lib/go-1.10/bin:$GOPATH/bin
source ~/.bashrc
git clone https://github.com/ToastPool/Sia.git
mv ./Sia ~/.go/src/github.com/NebulousLabs/Sia
cd ~/.go/src/github.com/NebulousLabs/Sia
make dependencies
make release
mkdir ~/siad_data && cd ~/siad_data
cp ~/.go/src/github.com/NebulousLabs/Sia/sampleconfigs/sia.yml ~/siad_data/
vim sia.yml
siad -M cgtwp
cd lara
cp env-example .env
vi .env (change mysql part)
docker network create rpc_net
cd lara
make up
cd lara
docker-compose up -d mysql
make in (go into php-fpm container)
apt-get update
apt-get install mysql-client -y
mysql -uroot -proot -hmysql < sql/{newestsqlfile}
cd web
cp keys.sample.php keys.php
cp serverconfig.sample.php serverconfig.php
(change both config file)
make in
chown www-data:www-data web/serverconfig.php
chown www-data:www-data web/keys.php
docker-compose logs -f php-fpm
docker-compose logs -f nginx
tail -f ./logs/web/debug.log
tail -f ./web/yaamp/runtime/application.log
make in