Just installed 3.9.2 and cannot find any "Control Panel"

Post Reply
User avatar
aqk
Jr. Bludit
Posts: 3
Joined: Tue Jul 02, 2019 11:55 pm

Wed Jul 03, 2019 1:31 am

I'm currently using Win-10, and have installed Bludit 392 on my Raspberry server, which runs Nginx and PHP 7.3.
The initial install seems to run OK and asks me to choose a passwd for admin.
Done.
But then, it stops.and later tells me to sign in on the control panel. -
EG-
.....To create, edit or remove content you need to login to the admin panel with the username admin and the password.... etc

So where is the ADMIN folder? All I get is a 404.
As far as I can see, nothing has changed in the whole Bludit folder since the initial unzip.
-Tony (aqk)
OH! DO behave!
User avatar
Edi
Site Admin
Posts: 1624
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Wed Jul 03, 2019 11:54 am

Did you follow the tutorial at

https://pilab.dev/pi-lab-setup
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
User avatar
Jay
Master Bludit
Posts: 73
Joined: Mon Feb 11, 2019 8:41 pm

Wed Jul 03, 2019 2:52 pm

aqk wrote:
Wed Jul 03, 2019 1:31 am
As far as I can see, nothing has changed in the whole Bludit folder since the initial unzip.
Admin panel isn't an uri to physically existing resource. This url is routed and you can change it in /kernel/boot/variables.php

Code: Select all

// Admin URI filter to access to the admin panel
define('ADMIN_URI_FILTER', 'admin');
But I suppose getting this 404 is rather a specific behavior of rpi.
User avatar
aqk
Jr. Bludit
Posts: 3
Joined: Tue Jul 02, 2019 11:55 pm

Thu Jul 04, 2019 7:37 pm

OK... THANX!
I see that I have some problems with htaccess, which is not used by Nginx.
I'll work on this locally and hope to figure out the nginx sites -available default and bludit.conf.
BUT
I then installed bludit with Softaculous, on a remote site that uses Apache.
Two problems-
1. I tried using the subfolder "blu". (I like small names everywhere except in my passwords!).
Bludit did not like this. It seems to like only the folder name "bludit".
2. Once I had signed into admin, When I tried changing the Settings,
it informed me-
Forbidden
You don't have permission to access /bludit/admin/settings on this server..... etc....
-Tony (aqk)
OH! DO behave!
User avatar
Edi
Site Admin
Posts: 1624
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Thu Jul 04, 2019 9:16 pm

aqk wrote:
Thu Jul 04, 2019 7:37 pm
OK... THANX!
I see that I have some problems with htaccess, which is not used by Nginx.
I'll work on this locally and hope to figure out the nginx sites -available default and bludit.conf.
For Nginx please see the documentation:

https://docs.bludit.com/en/webservers/nginx
I then installed bludit with Softaculous, on a remote site that uses Apache.
Two problems-
1. I tried using the subfolder "blu". (I like small names everywhere except in my passwords!).
Bludit did not like this. It seems to like only the folder name "bludit".
Some server environments need the path to the subdirectory with the installation. Try changing the following in your .htaccess if the subdirectory with the installation is blu:

Code: Select all

# Base directory
RewriteBase /blu/
instead of

Code: Select all

# Base directory
# RewriteBase /
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
User avatar
aqk
Jr. Bludit
Posts: 3
Joined: Tue Jul 02, 2019 11:55 pm

Fri Jul 05, 2019 3:01 am

Thanx, Edi!

Using remote Apache and PHP 5.6 (I think) -
With regard to problem #1 above, I will try a folder name other than "bludit" when I have a chance.
Now- regarding Problem #2 above
As Admin, I still cannot save Admin/settings - E.G.
Forbidden
You don't have permission to access /bludit/admin/settings on this server.

I am sure that I have logged in as ADMIN, but there is no place on the page to see which user I am!
(SUGGESTION! In Bludit, show which user (admin, editor or user) is logged in!)

Using local Nginx / php 7.3 with Maria on my Raspberry -
I now (almost!) understand how the Nginx conf stuff works. I currently have two conf files in my nginx 'sites-available' file:
'bludit.conf' and 'default'.
Which file is processed first? And is then overridden by the second one?
Default has

Code: Select all

[b]location / {
		# First attempt to serve request as file, then
		# as directory, then fall back to displaying a 404.
    try_files $uri $uri/ =404;
	} [/b]
The bludit.conf has

Code: Select all

location  /   {
    try_files $uri $uri/ /index.php?$args;
  }
[/b]

Is the / in this correct? My bludit system is in a subfolder of my www SD card.
-Tony (aqk)
OH! DO behave!
Post Reply