The steps I'm trying to install Flarum on Ubuntu 18.04 with LEMP ....
Where am I doing wrong?
Ubuntu Update
sudo apt update
Setting up Nginx
sudo apt install nginx
Install MySQL server
sudo apt install mysql-server
MySQL Secure Install
sudo mysql_secure_installation
PHP İnstall
sudo apt install php-fpm php-mysql
installing required php lengths
sudo apt install php7.2-fpm php7.2-common php7.2-mbstring php7.2-xmlrpc php7.2-soap php7.2-mysql php7.2-gd php7.2-xml php7.2-cli php7.2-zip
İnstall Composer
sudo apt install curl git
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
create and install the folder where flarum will live
mkdir /var/www/html/flarum
cd /var/www/html/flarum
sudo composer create-project flarum/flarum . --stability=beta
I am configuring the server block
sudo nano /etc/nginx/sites-available/flarum
`server {
listen 80;
root /var/www/html/flarum/public;
index index.php index.html index.htm index.nginx-debian.html;
server_name mydomain.com www.mydomain.com;
location / {
try_files $uri $uri/ =404;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
}
location ~ /\.ht {
deny all;
}
}`
(I write mydomain.com domain name directed to my server)
Next, run the commands below to change the root folder permissions…
sudo chown -R www-data:www-data /var/www/html/flarum/
sudo chmod -R 755 /var/www/html/flarum/
sudo ln -s /etc/nginx/sites-available/flarum /etc/nginx/sites-enabled/
sudo systemctl reload nginx
The result is unreachable
when I check syntax errors:
nginx: [emerg] open() "/etc/letsencrypt/options-ssl-nginx.conf" failed (2: No such file or directory) in /etc/nginx/sites-enabled/flarum:121
nginx: configuration file /etc/nginx/nginx.conf test failed
I get 403 error when I go to the field step after these operations