NellielProject / Nelliel

A lightweight and expandable imageboard.
BSD 3-Clause "New" or "Revised" License
12 stars 1 forks source link

Installation general #14

Open OtakuMegane opened 11 months ago

OtakuMegane commented 11 months ago

Installation is an obviously critical function and has been a common source of bugs in the past. Any bugs or problems with the installer go here.

Releasement commented 5 months ago

Had the wrong port with my previous question. Now I'm just stuck on the generated peppers page.

OtakuMegane commented 5 months ago

Small bug in creating the database tables slipped by which is likely what you were stuck on. Should be fixed now.

Releasement commented 5 months ago

Getting error 1s now despite files seemingly being generated both on the database and on localhost. Is this a personal error?

OtakuMegane commented 5 months ago

Usually the cause for error 1 is authentication failure or the database is down/inaccessible. Made a minor update that'll add the SQL error code which may narrow it down.

Releasement commented 5 months ago

Sorry to bother again, stuck back on the "peppers file already present". Should I have customized hashing?

OtakuMegane commented 5 months ago

The hashing config has no effect on peppers, which has completed successfully. The next step after peppers is to create the database tables, so something is failing in that stage. If you aren't seeing anything then PHP errors and exceptions are likely being sent to the error log instead of being displayed (for security purposes). You'll have to check the log for details on the problem.

anonymousmaggot commented 3 months ago

I'm able to get through setup (I can't get Sqlite to work even if it gives me the option but that might be my fault) but when I click 'submit' to create an account at the end I'm left with a blank white screen. The login link in the index is the same, no option to log in just a blank page. This is the PHP error in the log: setcookie(): "path" option cannot contain ",", ";", " ", "\t", "\r", "\n", "\013", or "\014" in /var/www/html/Nelliel/core/include/accessors.php:157 I've tried on two computers, one with a direct IP the other over a domain name and I have the same issue on both.

Releasement commented 3 months ago

I've seemed to get past it. Check where the sqlite database itself is located maybe? Could just be a bug.

OtakuMegane commented 3 months ago

This is the PHP error in the log: setcookie(): "path" option cannot contain ",", ";", " ", "\t", "\r", "\n", "\013", or "\014" in /var/www/html/Nelliel/core/include/accessors.php:157

That turned out to be a bug leftover from setting cookies on older PHP versions. Fixed now.

As to SQLite, did you change 'Path' or leave it blank (the default)? If you changed it, the given location may not be writable or otherwise invalid (I've now added a note to the installer page about the Path field). Nevermind, think I found what was happening. Should also be fixed now.

anonymousmaggot commented 3 months ago

That was fast, thanks! When choosing Sqlite I now get the options instead of a blank screen, but when I get to the part where it generates a bunch of files the installer times out. I tried to redo the installation and it claimed it was finished, and prompted me to log in, but I couldn't since I wasn't able to set up an account. The installation succeeds if I choose another DB type but trying to make a board displays Error 81 A database error has occurred: 42S22 in file Domain.php. It looks like I can do everything except creating boards and creating word filters: PHP Fatal error: Uncaught Error: Class "Nelliel\Admin\AdminWordFilters" not found in /var/www/html/Nelliel/core/include/Dispatch/Controls/DispatchWordfilters.php:26

OtakuMegane commented 3 months ago

Both of those should be corrected now as well. Fortunately most of this has been minor stuff that's easily fixed once found.

Freakazoitt commented 3 months ago

How to install it if SSH is not allowed?

OtakuMegane commented 3 months ago

How to install it if SSH is not allowed?

Installation requires running composer so some kind of shell access is mandatory. If SSH is not available then some other form of shell access on the server would be needed. The only other way is to do the composer step on a local system then upload the vendor directory that it generates.