This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

fuzeboxsoftware8691
fuzeboxsoftware8691

I installed OctoberCMS via command line but having issues of viewing it. Setup the database and the nginx configuration but when viewing the url, it downloads the page instead of displaying anything. Not sure what I am missing. Here is my nginx setup (which I suspect to be the culprit but not sure).

server
{
    server_name stormcoded.dev *.stormcoded.dev;

    error_log /var/log/stormcoded_error.log;

    root /home/crb/public_html/stormcoded/public;

    index index.php index.html index.htm;

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

    rewrite ^themes/.*/(layouts|pages|partials)/.*.htm /index.php break;
    rewrite ^bootstrap/.* /index.php break;
    rewrite ^config/.* /index.php break;
    rewrite ^vendor/.* /index.php break;
    rewrite ^storage/cms/.* /index.php break;
    rewrite ^storage/logs/.* /index.php break;
    rewrite ^storage/framework/.* /index.php break;
    rewrite ^storage/temp/protected/.* /index.php break;
    rewrite ^storage/app/uploads/protected/.* /index.php break;
}
fuzeboxsoftware8691
fuzeboxsoftware8691

Here is what it needed to be, just in case it helps others in the future:

server
{
    server_name stormcoded.dev *.stormcoded.dev;

    error_log /var/log/stormcoded_error.log;

    root /home/crb/public_html/stormcoded;

    index index.php index.html index.htm;

    location ~ \.php$
    {
        fastcgi_pass unix:/var/run/php5-fpm.sock;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
    }

    location / {
        try_files $uri $uri/ /index.php;
    }

    rewrite ^themes/.*/(layouts|pages|partials)/.*.htm /index.php break;
    rewrite ^bootstrap/.* /index.php break;
    rewrite ^config/.* /index.php break;
    rewrite ^vendor/.* /index.php break;
    rewrite ^storage/cms/.* /index.php break;
    rewrite ^storage/logs/.* /index.php break;
    rewrite ^storage/framework/.* /index.php break;
    rewrite ^storage/temp/protected/.* /index.php break;
    rewrite ^storage/app/uploads/protected/.* /index.php break;
}

Last updated

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.