adding phpmailer.config.php to /var/www/friendica/config makes 500 Error #1365
Labels
No labels
2018.09
2019.01
2019.03
2019.06
2019.09
2019.12
2020.03
2020.06
2020.09
2020.12
2021.03
2021.07
2021.09
2022.02
2022.06
2022.09
2022.12
2023.04
2023.05
2023.09
2024.03
2024.06
2024.09
2024.12
dependencies
Hackathon 2021
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: friendica/friendica-addons#1365
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello! I appreciate the time you're all taking to make these projects so dope.
As the title suggests, I'm trying to configure PHPMailer so I can use SMTP in order to register and finish setting up Friendica on Yunohost; however, any time I do; I get an error 500. If I try to append the information into addon.config.php it also fails; but instead of error 500, it just shows the script on the page.
I'm a bit lost as to where to look or what to try next. Any guidance at all would be sincerely appreciated.
Hi @thelaserguy, can you please share the configuration file you're trying to use?
This is the file I used the second time I tried
Thank you, please remove the leading whitespace before the PHP opening tag
<?php
if it exists in your file.This is the first file I attempted; its location was in /var/www/friendica/addon/phpmailer/config
It doesn't, I think it's just the way I copied it into here, my apologies
I used the mv command to get it from where I found it, into the /config folder, and then modified it there using nano
Thank you, we will have to dig in the web server log to figure it out. I'm not sure how you do that in Yunohost, though, but you're looking for
Fatal Error
orException
.After a few hours of searching and confirming, I believe the location for the logs relating to the errors are at
/var/log/nginx/
A dir command shows 4 files relating to Friendica; in one of those files, I was able to pull this bit of information (I do not know how to copy text from the Powershell session into Pastebin or otherwise; all the default commands for copying text fails when I'm SSH'd and in the nano program)
https://pastebin.com/VKrivSyL
My best guess was the permissions; I changed permissions using chmod 755 ; this has rectified the error 500; however, it is still not dispensing emails for password reset or new signups. The following snippet is the last error logged in the nginx, now I'm unsure again as to where to go next... I appreciate your time sincerely
(I honestly don't know if it helps you at all, or makes a difference, however, the webaddress is https://friendica.thelaserguy.online)
any update?
Sorry, I wasn't available until now. It looks like you created/edited the addon configuration file with a specific system user that doesn't share read permission with the web server user. No file reading, no settings.
Can you fiddle with individual file permissions in Yunohost?
No apologies necessary at all! I thought perhaps there was no alert to my previous post as I had forgotten to "reply" to the message directly. I again, appreciate your attention and time, sincerely.
To answer your question; I can; I'm able to use the chmod command as root when I'm ssh'd into Yunohost. What permissions does it require? I apologize for my ignorance
What does a
ls -al
in the Friendica base folder give when ssh'd?Thank, it's just a matter of restoring the permissions to the following folders after editing the config files:
And then they should be available for the web server to read.
This is getting... interesting.. Now, when I go to the address, it's behind a Yuno login.. which it wasn't previously lol
I'm just gonna give up lol maybe try again next year 🤣
Sorry about that!
It's okay! I'm sure that it's me, doing something wrong. It's mind boggling lol
What about
addon/phpmailer/config
?