LinkStackOrg / LinkStack

LinkStack - the ultimate solution for creating a personalized & professional profile page. Showcase all your important links in one place, forget the limitation of one link on social media. Set up your personal site on your own server with just a few clicks.
https://linkstack.org
GNU Affero General Public License v3.0
2.41k stars 243 forks source link

On new setup, clicking the button to generate the env seed didn't work. #83

Closed accessiblepixel closed 2 years ago

accessiblepixel commented 2 years ago

When I setup my new copy of little-link custom, I had to set that random salt value in the env file manually, since the version to click within the software wouldn't work for me.

I couldn't trace any reason why it wasn't working (there was no output in PHP's error_log) or any errors in apache2's log so I couldn't ultimately figure out what the root cause of the issue was, but I thought I'd better report that I'd had issue with it since it might confuse new (er) users, which from what I can tell is one of the design goals of this version :)

It was fixed by manually generating the salt and adding it to the .env file.

Kind regards, Jessica

lastsamurai26 commented 2 years ago

Thank you for the message. With version 2.6.9 should give a suitable error message if the software can not generate the key. The software automatically calls the artisan key:generate command if appkey is not defined in the .env file.

This is the normal error messege, There is actually no more button chrome_ya6LxYqjqJ

Which version did you installed ?

best regards, frank

lastsamurai26 commented 2 years ago

Hey,

I have tested it again. Installed version 2.6.9. Can you please check if the .env file has 644 permissions and if the webserver can access the files.

accessiblepixel commented 2 years ago

Hi!

I checked permissions and they were all 644 for the files and 755 for the directories, which is what the documentation said, so it should have had full permissions to write to the files.

I thought it didn't make much sense so I looked for a manual way to set that key and then everything magically worked after that... so it must have been something with the call to write to that file, but I can't seen to see anywhere that was telling me it had failed or was denied.

As I remember when I set it up, it appeared to process the command just fine, but wouldn't actually do it (it didn't say permission denied as above).

I'm running it on PHP 7.4 (with Apache hooked in with LSAPI on CloudLinux).

Is there anything else I could check to try and help you find out?

Kind regards, Jessica

JulianPrieber commented 2 years ago

Hi, don't mind me sliding in.

In case you didn't do this already, did you verify the file ownership? In most cases, you can confirm this with: ls -l /path/to/littlelink-custom and or stat /path/to/littlelink-custom

Assuming www-data (it could be something else) is your web server user, you can set file ownership with: sudo chown -R www-data:www-data /path/to/littlelink-custom

There might be some useful information in the Laravel log, located in /path/to/littlelink-custom/storage/logs/laravel.log.

Other than that, you can find a list of required PHP and modules on here.

All the best, Julian