Question

Unable to install scripts

I followed tutorials from DO on LEMP installation. Nginx. Able to install wordpress. Now trying to install a script call teachify from codecanyon.

Installation folder is at xxx.com/source/public/installations/ Server requirements all met. But when click next, url changed to xxx.com/source/public/installations/step/2

And it returns a 404.

is my nginx settings correct?

part of it :

index index.html index.htm index.php;

location / {
    #try_files $uri $uri/ =404;
    try_files $uri $uri/ /index.php$is_args$args;
}

location ~ \.php$ {
    include snippets/fastcgi-php.conf;
    fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
 }

location ~ /\.ht {
    deny all;
}
Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @webierscom,

You are missing the port your droplet should be listening on as well as the server_name (domain). It should look something like this

server {
    
    listen 80;
    server_name domain.com;
    
    root /var/www/domain.com/

    index index.html index.htm index.php;

    location / {
        #try_files $uri $uri/ =404;
        try_files $uri $uri/ /index.php$is_args$args;
    }

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
     }

    location ~ /\.ht {
        deny all;
    }
}

Please note you’ll need to change the server_name domain with yours and the root directive with your documentroot.

Regards, KFSys