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.
Do I need to add a Nginx rule? In drupal everything gets rewritten to index.php
No rules, Grav uses actual files instead of routes.
There’s no admin dir and no nginx rule to redirect
Admin is a plug-in under the user/plugins folder.
From http://getgrav.org/blog/beta-admin-plugin-available : By default you can access the admin by pointing your browser to http://yoursite.com/admin.
This is incorrect.
No, I think that’s right. At least that’s how mine works. I don’t know what’s up with the 404.
I think it should work as just www.example.com/admin
.
It works about as well as the css on the striped theme
27 rewrite ^/user/(.*).(txt|md|html|php|yaml|json|twig|sh|bat)$ /error redirect;
So anything under /user gets rewritten. Seems absolutely backwards.
Perhaps backwards for Drupal, but maybe not Grav.
Backwards for common sense.
Goodnight…
[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”
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:
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;
}
}
I use pi’s for Runeaudio, Kodi, and Octoprint.
Let’s keep this on the forum ok… i can’t reply to both here and the blog comments