Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration issues and guide for others trying to install #189

Open
c4bler opened this issue Feb 28, 2022 · 0 comments
Open

Configuration issues and guide for others trying to install #189

c4bler opened this issue Feb 28, 2022 · 0 comments

Comments

@c4bler
Copy link

c4bler commented Feb 28, 2022

Firstly, I generated SSL certs, set my reverse 80 redirect ->443 web proxy to apache localport.
Set up the sites-available, ports.conf, documentroot, www-data perms the usual web server stuff.
Set up mariaDB, created a blank user, password and database.

Some issues I noticed setting up:

  • I couldn't get the install.php script working as others have said in different issues, due to it looking for /install/install.
    I got around this by manually importing the schema, but did get SOME functionality by simply copying the .php files to a subdirectory called 'install'. It got hung up on the next screen trying to import the database but just deleted the /install dir at that point.

From here, I imagine most of this is configured during the install process, but as I couldn't get it to function (probably could have with a bit more investigation) I had to do the rest manually:

  • Verification email with no verification email server
    I got around this by manually setting the verification flag in the user SQL table to 1

  • Formatting css was not loading properly. It was reaching out to pastethis.in.
    This is linked to the sitename in the SQL tables. mySQL database/site_info/baseurl was set to pastethis.in. I had to replace this with my domain name and it then properly found the js and css. I later found you're able to set this via web admin panel /admin/admin.php but this was my method.
    UPDATE site_info SET baseurl = 'mydomain.tld' WHERE baseurl = 'pastethis.in'

  • Accessing the admin panel
    I had to modify the 'admin' table with my username and password hash and then the admin panel logged in fine. Since this is a local install just for pasting info between servers and PCs, this is fine. I then turned off email verification, etc.

  • Site thinks it's private and disregards the setting configured in the admin panel, hence, not able to access 'Archives' list of pastes
    Here was just a case of modifying /archive.php and setting
    // Set site originally to private.
    $privatesite = 'off';

Now, it works great for my purposes. I'm not sure on the google analytics front what it's trying to do, but I think I turned that off.

You may wish to add some of this to the readme or leave this issue here in case others find themselves in this situation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant