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

Install instructions for Hiawatha?

Started by Muut Archive 10 years ago · 10 replies · 743 views
10 years ago

I would like to install GRAV on Hiawatha, and am wondering how this is possible.
I have PHP-FPM installed and am running as FastCGI.

php -version
PHP 5.6.22 (cli) (built: May 26 2016 15:36:45)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies

What do I need to enable or change to make GRAV install and work.
I see mention to mod_rewrite, and also Hiawatha does not use .htaccess files.

I will be installing GARV as a sub domain for testing. so how will this work as
regards installing, will there be a problem as it will be in a sub folder off root folder.

Any help would be much appreciated

Thanks, john

10 years ago

Hi flaviocopes, thanks forvresponding, the link opens an error page.
I have php working. but if GRAV is setup for .htaccess will it install on hiawatha, and just not run properly, a lot will dependvon the install script and what it looks for.
Could a developer look at this and tell me if it is correct or alter it to suit.

UrlToolkit {
ToolkitID = grav

Match base64_encode[^(]([^)]) DenyAccess
Match (<|%3C)([^s]s)+cript.(>|%3E) DenyAccess
Match GLOBALS(=|[|\%[0-9A-Z]{0,2}) DenyAccess
Match _REQUEST(=|[|\%[0-9A-Z]{0,2}) DenyAccess

Match ^/(.git|cache|bin|logs|backup|webserver-configs)/(.) DenyAccess
Match ^/(system|vendor)/(.
).(txt|xml|md|html|yaml|php|pl|py|cgi|twig|sh|ba t)$ DenyAccess
Match ^/(user)/(.*).(txt|md|yaml|php|pl|py|cgi|twig|sh|bat)$ DenyAccess
Match .md$ DenyAccess
Match ^/(LICENSE.txt|composer.lock|composer.json|.htaccess)$ DenyAccess

RequestURI exists Return
Match .* Rewrite /index.php
}

This was supplied by the Hiawatha Developer, but he did not test it.
Perhaps someone on here will know to look at it if it is suitable, or is in a position to alter it to suit, or try it out, I could try installing GRAV, but I would not be able to tell if it is this script of my lack of experience in other fields that
may be causing any errors.

Regards, john

10 years ago

web.config is the configuration file used by Microsoft IIS server. If you would like to submit a PR to add that Hiawatha config file, that would be great.

10 years ago

Hi rhukster, long time since I thought of IIS,
I don't know what a PR is let alone how to add one, sorry, but if you mean adding the code snippet I posted above with the others on Git, perhaps someone would need to test it first.

Regards, john

10 years ago

Tried to add a PR to have the rewrite code for hiawatha installations added to the installation section but link greyed out on GitHub, so cant do so.
Regards, john

10 years ago

First let's make sure it works :)

I have never used that web server so you are the one to test-drive it, if you want to use it. I can set it up tomorrow to check, but I have to do it from scratch so it will take some time.

If that config file was provided you by the web server developer, then it should definitely work, let us know!

10 years ago

I posted another thread in relation to two install errors I got when trying to install GRAV on Hiawatha, but because of the code in this post I need to explain there is a small typo in it, at the end of one line, there is ba t ,there should be no space and it should read bat ,Hiawatha pointed to the line of code having an error and when I looked it was obvious.
As this post was mainly about the script that is required for the hiawatha.conf file.
I will post back here to let people know if the script works, otherwise I will post in my new thread regarding the install problems that have most likely nothing to do
with hiawatha.

Regards, john

10 years ago

For anyone who might run across this later, I used the post above with the latest files in the github repository for server configuration to create the following:

TXT
UrlToolkit {
    ToolkitID = getgrav
    Match base64_encode[^(]\([^)]\) DenyAccess
    Match (<|%3C)([^s]s)+cript.(>|%3E) DenyAccess
    Match GLOBALS(=|\[|\%[0-9A-Z]{0,2}) DenyAccess
    Match _REQUEST(=|\[|\%[0-9A-Z]{0,2}) DenyAccess
    Match ^/(.git|cache|bin|logs|backup|webserver-configs|tests)/(.) DenyAccess
    Match ^/(system|vendor)/(.)\.(txt|xml|md|html|yaml|php|pl|py|cgi|twig|sh|bat )$ DenyAccess
    Match ^/(user)/(.)\.(txt|md|yaml|php|pl|py|cgi|twig|sh|bat)$ DenyAccess
    Match \.md$ DenyAccess
    Match ^/(LICENSE.txt|composer.lock|composer.json|\.htaccess)$ DenyAccess
    RequestURI isfile Return
    RequestURI exists Return
    Match [^?]*(\?.*)? Rewrite /index.php$1
}

This works for me so far installing and using Grav ( only played around with it for a day so far ). Version used via the download grav-admin-v1.1.3.zip. If I come across any more issues I can post them here.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1343 9 years ago
Archive · by Muut Archive, 9 years ago
2 930 9 years ago
Archive · by Muut Archive, 9 years ago
2 4058 9 years ago
Archive · by Muut Archive, 9 years ago
1 2943 9 years ago
Archive · by Muut Archive, 9 years ago
3 1116 9 years ago