Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

How to use a skeleton?

Started by Muut Archive 11 years ago · 82 replies · 2240 views
11 years ago

I have had been in love with MySQL for about 20 years, so I'm not sure "shackled" has a negative connotation. I do agree that a small site does not need a DB.

11 years ago

I installed admin, ran the bin/grav newuser command, but www.example.com/admin gives a 404.

11 years ago

Do I need to add a Nginx rule? In drupal everything gets rewritten to index.php

11 years ago

No rules, Grav uses actual files instead of routes.

11 years ago

There's no admin dir and no nginx rule to redirect

11 years ago

Admin is a plug-in under the user/plugins folder.

11 years ago

No, I think that's right. At least that's how mine works. I don't know what's up with the 404.

11 years ago

I think it should work as just www.example.com/admin.

11 years ago

It works about as well as the css on the striped theme

11 years ago

27 rewrite ^/user/(.*).(txt|md|html|php|yaml|json|twig|sh|bat)$ /error redirect;

So anything under /user gets rewritten. Seems absolutely backwards.

11 years ago

Perhaps backwards for Drupal, but maybe not Grav.

11 years ago

[02-Sep-2015 01:01:48] WARNING: [pool www0] child 17909 said into stderr: "NOTICE: PHP message: PHP Fatal error: Class 'Grav\Common\Plugin' not found in /var/www/html/jaz2.sendthemtomir.com/user/plugins/admin/admin.php on line 15"

11 years ago

You still need to get your routing working:

https://jaz2.sendthemtomir.com/blog/sunshine-in-the-hills

for example is 404 because its not routing properly. There is a sample nginx.conf in the root, but I have used this simpler one with success in my nginx testing on my raspberry pi:

TXT
server {
        #listen 80 default_server;
        index index.html index.php;
        root /home/pi/www/blog;

        server_name localhost;

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

        location ~ \.php$ { 
                fastcgi_split_path_info ^(.+\.php)(/.+)$;
                fastcgi_pass unix:/var/run/php5-fpm.sock;
                fastcgi_index index.php;
                include fastcgi_params;
                fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
        }
}
11 years ago

I use pi's for Runeaudio, Kodi, and Octoprint.

11 years ago

Let's keep this on the forum ok.. i can't reply to both here and the blog comments :)

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1336 9 years ago
Archive · by Muut Archive, 9 years ago
2 925 9 years ago
Archive · by Muut Archive, 9 years ago
2 4056 9 years ago
Archive · by Muut Archive, 9 years ago
1 2941 9 years ago
Archive · by Muut Archive, 9 years ago
3 1112 9 years ago