Installation Issue with Kirby 2 on Nginx

Kirby 2.5.5 requires additional configuration for running on Nginx 1.10.

First, configure Nginx to find the Kirby panel. Refer to “Running Kirby with Nginx”:

location / {
 if (!-e $request_filename) {
 rewrite ^/(.*)$ /index.php last;
 break;
 }
}

location /panel {
 if (!-e $request_filename) {
 rewrite ^/(.*)$ /panel/index.php last;
 break;
 }

try_files $uri $uri/ /index.html;
}

///////////////////////////////
//For subdirectory use this one:
////////////////////////////////

location /subdirectory/ {
 if (!-e $request_filename) {
 rewrite ^/(.*)$ /subdirectory/index.php last;
 break;
 }
}

location /subdirectory/panel {
 if (!-e $request_filename) {
 rewrite ^/(.*)$ /subdirectory/panel/index.php last;
 break;
 }

try_files $uri $uri/ /index.html;
}

Choose one of the code blocks above and restart Nginx.

Then, to resolve the error occurring during Kirby setup. Refer to “Issues with panel install”:

Temporarily place c::set(‘panel.install’, true); in your site/config/config.php. The error should then go away. Please make sure to remove the option again afterwards.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s


%d bloggers like this: