I tried to install Backlight 3.1 from scratch but after it says it has successfully installed it I get a blank screen …(if I go the root site I get ‘Backlight is not yet configured. Please login to Backlight to continue.’ …)
I did also install an older version (on a different site but the same server ) and this worked fine … any ideas ?
not sure this helps, but the redirect (from http://redfish.accidentalswimming.com/ - which shows ‘Backlight is not yet configured. Please login to Backlight to continu’) happens from this line of code in SQLiteHandler.php.
if (preg_match('/(admin|designer|publisher)\/master.sq3$/', $dsn)) {
$backlightURL = URLHelper::currentPageURL().'backlight/';
die('Backlight is not yet configured. Please <a href="'.$backlightURL.'">login to Backlight 2</a> to continue.');
}
More specifically, it seems it bails on the ‘admin’ check … though not 100% sure
Hi Niels, it looks like Backlight may not have been able to copy over the database files, which would indicate a permissions issue. Are you using shared hosting, or is this a server or VM that you manage yourself?
If you’re on shared hosting then try setting the permissions for backlight/data to 755. If you’re managing your own server then set the ownership and permissions for that directory to something that the web server has permission to write to. You’ll likely need to make the same changes to your galleries directory in order to have Backlight create album files.
If that doesn’t look to solve it, then please provide me with FTP access via direct message.
the permissions were already set to 755 (and the uid/guid is set to the owner of the apache2 process - the installer can fetch and install the modules and create the directory - so the permissions do seem to be correct)
Also, is there anything in the backlight/data directory other than an .htaccess and index.html file? If there are directories, what are they named and do they have any contents?
Thanks for the SFTP access. Once again, are you the administrator of this server? If so, do you know how to configure it so that the right directories are writable?
Backlight assumes that you are using a well-configured server or know what you are doing as a system administrator. If you are stuck, I can help out further if you are able to give me SSH access with the right permissions.
Hi Ben,
yes, server is owned by me (not a VM or container)
all directories are writable by owner (chmod 755)
no real error logs on apache (nothing that indicates a permission problem)
Okay. After a bit of debugging via SFTP I have found two missing settings that you’ll need to fix.
Add index.php to your DirectoryIndex setting in Apache. It likely just has index.html.
Without index.php URLs such as http://redfish.accidentalswimming.com/backlight/ won’t function. Whereas http://redfish.accidentalswimming.com/backlight/index.php?m=admin&c=admin&a=login does respond correctly.
Set AllowOverride All for the redfish.accidentalswimming.com directory so that clean URLs will work