Home >Backend Development >PHP Tutorial >Flarum installation
<codecourier new monospace font-size: border-radius: border: none background-color: transparent>location / { try_files <span>$uri</span><span>$uri</span>/ /index.php?<span>$query_string</span>; } location /api { try_files <span>$uri</span><span>$uri</span>/ /api.php?<span>$query_string</span>; } location /admin { try_files <span>$uri</span><span>$uri</span>/ /admin.php?<span>$query_string</span>; } location /flarum { deny all; <span>return</span><span>404</span>; } location ~ .php$ { fastcgi_split_path_info ^(.+.php)(/.+)$; fastcgi_pass unix:/<span>var</span>/run/php5-fpm.sock; fastcgi_index index.php; <span>include</span> fastcgi_params; }</codecourier>
<codecourier new monospace font-size: border-radius: border: none background-color: transparent>mail_driver: smtp mail_host: <span>...</span>mail_port: <span>...</span>mail_username: <span>...</span>mail_password: <span>...</span>mail_encryption: <span>...</span></codecourier>
The above has introduced the installation of Flarum, including various aspects. I hope it will be helpful to friends who are interested in PHP tutorials.