Open hcho3 opened 4 years ago
Enabling YAML parser in PHP:
sudo apt-get install php-dev php-pear libyaml-dev
sudo pecl install yamL
sudo sh -c "echo 'extension=yaml.so' >> /etc/php/7.2/fpm/php.ini"
sudo service php7.2-fpm restart
sudo systemctl restart nginx
I've set up a website from a subdirectory of xgboost-ci.net: https://xgboost-ci.net/dashboard/. In #6, we chose Nginx for the web server, so we modify the Nginx configuration here.
/var/www/xgboost-ci.net/html/dashboard
.index.php
in/var/www/xgboost-ci.net/html/dashboard
with the following content:sudo apt install php7.2-fpm php7.2-mbstring php7.2-xml php-pear
./etc/nginx/sites-enabled/xgboost-ci.net
. Add the following configuration block to theserver
block:Also, change the line
index index.html index.htm;
toindex index.html index.htm index.php;
.sudo nginx -t
to verify the modified configuration.sudo systemctl reload nginx
.index.php
we created earlier.