[Solved] Impossible to connect to admin panel

User avatar
Sabcat
Jr. Bludit
Posts: 7
Joined: Thu Aug 17, 2017 3:09 pm
Location: France
Contact:

Hi guys,
I've installed Bludit (latest) on my personnal server. I successfull connect to the site, but i cannot connect to the admin panel. The adress give me httpS://mysite.com/admin and no connection as message error.
I don't have a certificate for https. The server runs Hiawatha (mod_rewrite = on) PHP 7 with all necessary modules on a Debian stable.
Regards

ps: excuse my english.
Last edited by Sabcat on Fri Aug 18, 2017 6:40 pm, edited 1 time in total.
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

1) What happens, when you try http://mysite.com/admin? There is no redirect to https when Bludit is installed.

2) What is in your .htaccess (in the root directory of Bludit)?

3) It should make no difference, but try with PHP 5.6.

P. S. And you have to excuse me, because I have not the knowledge of a server administator.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
User avatar
Sabcat
Jr. Bludit
Posts: 7
Joined: Thu Aug 17, 2017 3:09 pm
Location: France
Contact:

On http://mysite.com/admin, it gaves me a 404 error.
For .htaccess:

Code: Select all

AddDefaultCharset UTF-8

<IfModule mod_rewrite.c>

# Enable rewrite rules
RewriteEngine on

# Deny direct access to .txt files
RewriteRule ^bl-content/(.*)\.txt$ - [R=404,L]

# All URL process by index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*) index.php [PT,L]

</IfModule>
I'm totally noob in dev (PHP etc... ;)
User avatar
diego
Site Admin
Posts: 773
Joined: Sat May 16, 2015 2:53 pm
Been thanked: 1 time
Contact:

Hi,
I don't understand why you have https:// where you find the link with https:// ?

Could you check your php_error.log ? could be on /var/log/

Regards
User avatar
Sabcat
Jr. Bludit
Posts: 7
Joined: Thu Aug 17, 2017 3:09 pm
Location: France
Contact:

Hi,
The link is on the main page (default page at first boot after install)
Or for exemple by accessing the admin login in the top right of the page (https://demo-bludit.rhcloud.com/)
I directly have a https link. :(
I tried on differents browsers, as i have HttpsEveryWhere module installed on Firefox but the result is the same.

For the errors, i only have that type in system.log (/var/www/hiawatha/sabcat/log/system.log):

Code: Select all

145.xxx.xxx.245|Tue 25 Jul 2017 20:50:44 +0200|/var/www/hiawatha/sabcat/404.html|ErrorHandler not found
The site is in that way: /var/www/hiawatha/sabcat/bludit.
I don't find php_error.log in /var/log or whatever, just php7.0-fpm.log
Thanks.
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

Sabcat wrote: Thu Aug 17, 2017 5:43 pm On http://mysite.com/admin, it gaves me a 404 error.
It seems that Hiawata has it's own rewrite rules:

https://www.hiawatha-webserver.org/howt ... rite_rules

Perhaps you can adapt the .htaccess or ask for help in their forum:

https://www.hiawatha-webserver.org/forum
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
User avatar
diego
Site Admin
Posts: 773
Joined: Sat May 16, 2015 2:53 pm
Been thanked: 1 time
Contact:

The problem is your webserver, is not Apache webserver with support to .htaccess.

I was reading the rewrite rules here, https://www.hiawatha-webserver.org/howt ... rite_rules maybe you can use the same as Wordpress the first part.

Code: Select all

UrlToolkit {
    ToolkitID = wordpress
    RequestURI exists Return
    Match [^?]*(\?.*)? Rewrite /index.php$1
}
User avatar
Sabcat
Jr. Bludit
Posts: 7
Joined: Thu Aug 17, 2017 3:09 pm
Location: France
Contact:

I used the rewrites rules from Hiawatha docs, the Nibbleblog part. I think that was the closest way.
But, i really do not know what i'm doing in fact, rewrite-rules seems black magic for me. Before, i used lighttpd and Pelican CMS (without PHP)
Maybe i'd better try to use lighttpd as web server, that seems more simple for me.
However i'll try to change rules for the Wordpress ones, or see in Hiawatha community. But i think it could be great to have more ressources for the 2 communities. Maybe i could write doc for Bludit on Hiawatha if i succeed.

Thanks for the help guys. ;)

PS: I have another site as sub-domain which runs PluXML very well. The rewites-rules in Hiawatha's doc is well documented.
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

Sabcat wrote: Thu Aug 17, 2017 10:12 pm Maybe i could write doc for Bludit on Hiawatha if i succeed.
This would be great!
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
User avatar
Sabcat
Jr. Bludit
Posts: 7
Joined: Thu Aug 17, 2017 3:09 pm
Location: France
Contact:

Hi guys,

Ok so, for the last news, i found the problem in Hiawatha docs (https://www.hiawatha-webserver.org/howto/url_toolkit).
I have my principal domain and a sub-domain on the server. The principal domain isn't a Virtualhost, the second is.
I had to declare the ToolkitID for the principal domain, i did not.

Code: Select all

UrlToolkit {
    ToolkitID = bludit        <----- HERE
    RequestURI exists Return
    Match ^/images Return
    Match ^/data DenyAccess
    Match /(.*) Rewrite /index.php?page=$1
    }
For infos, i used the rules given by Diego:
UrlToolkit {
ToolkitID = bludit
RequestURI exists Return
Match [^?]*(\?.*)? Rewrite /index.php$1
}
All seems to be working now. Just the admin page link (first article) still in https, i changed it in the conf for the access by the menu and it's ok now.

Thanks for your help guys, hope this will help someone else. :P
Last edited by Sabcat on Fri Aug 18, 2017 10:08 pm, edited 3 times in total.
Post Reply