adding phpmailer.config.php to /var/www/friendica/config makes 500 Error #1365

Open
opened 2023-04-08 16:20:38 +02:00 by thelaserguy · 19 comments

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.

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.
Owner

Hi @thelaserguy, can you please share the configuration file you're trying to use?

Hi @thelaserguy, can you please share the configuration file you're trying to use?
Author

This is the file I used the second time I tried

<?php

// Warning: Don't change this file! It only holds the default config values for this addon.
// Instead overwrite these config values in config/addon.config.php in your Friendica directory

return [
	'phpmailer' => [
		// smtp (Boolean)
		// Enables SMTP relaying for outbound emails
		'smtp' => true,

		// smtp_server (String)
		// SMTP server host name
		'smtp_server' => 'smtp.office365.com',

		// smtp_port (Integer)
		// SMTP server port number
		'smtp_port' => 587,

		// smtp_secure (String)
		// What kind of encryption to use on the SMTP connection.
		// Options: '', 'ssl' or 'tls'.
		'smtp_secure' => 'ssl',

		// smtp_port_s (Integer)
		// Secure SMTP server port number
		'smtp_port_s' => 587,

		// smtp_username (String)
		// SMTP server authentication user name
		// Empty string disables authentication
		'smtp_username' => 'emailaddress@hotmail.com',

		// smtp_password (String)
		// SMTP server authentication password
		// Empty string disables authentication
		'smtp_password' => 'emailpasswordgoeshere',

		// smtp_from (String)
		// From address used when using the SMTP server
		// Example: no-reply@example.com
		'smtp_from' => 'emailaddress@hotmail.com',
	],
];
This is the file I used the second time I tried ``` <?php // Warning: Don't change this file! It only holds the default config values for this addon. // Instead overwrite these config values in config/addon.config.php in your Friendica directory return [ 'phpmailer' => [ // smtp (Boolean) // Enables SMTP relaying for outbound emails 'smtp' => true, // smtp_server (String) // SMTP server host name 'smtp_server' => 'smtp.office365.com', // smtp_port (Integer) // SMTP server port number 'smtp_port' => 587, // smtp_secure (String) // What kind of encryption to use on the SMTP connection. // Options: '', 'ssl' or 'tls'. 'smtp_secure' => 'ssl', // smtp_port_s (Integer) // Secure SMTP server port number 'smtp_port_s' => 587, // smtp_username (String) // SMTP server authentication user name // Empty string disables authentication 'smtp_username' => 'emailaddress@hotmail.com', // smtp_password (String) // SMTP server authentication password // Empty string disables authentication 'smtp_password' => 'emailpasswordgoeshere', // smtp_from (String) // From address used when using the SMTP server // Example: no-reply@example.com 'smtp_from' => 'emailaddress@hotmail.com', ], ]; ```
Owner

Thank you, please remove the leading whitespace before the PHP opening tag <?php if it exists in your file.

Thank you, please remove the leading whitespace before the PHP opening tag `<?php` if it exists in your file.
Author

This is the first file I attempted; its location was in /var/www/friendica/addon/phpmailer/config

<?php                                                                                         

// Warning: Don't change this file! It only holds the default config values for this addon.  
// Instead, copy this file to config/phpmailer.config.php in your Friendica directory and set the correct values there

return [

'phpmailer' => [
// smtp (Boolean)                                                                            // Enables SMTP relaying for outbound emails                                                  'smtp' => false,

// smtp_server (String)
// SMTP server host name
'smtp_server' => 'smtp.example.com',

// smtp_port (Integer)
// SMTP server port number
'smtp_port' => 25,

// smtp_secure (String)
// What kind of encryption to use on the SMTP connection.                                    // Options: '', 'ssl' or 'tls'.                                                             'smtp_secure' => '',     

// smtp_port_s (Integer)                                                                      // Secure SMTP server port number                                                           'smtp_port_s' => 465,      

// smtp_username (String)                                                                   
// SMTP server authentication user name                                                      // Empty string disables authentication                                                    'smtp_username' => '',  

// smtp_password (String)                                                            
// SMTP server authentication password                                                    
// Empty string disables authentication                                                     'smtp_password' => '',

// smtp_from (String)                                                                        // From address used when using the SMTP server
// Example: no-reply@example.com 
'smtp_from' => '',

],
];
This is the first file I attempted; its location was in /var/www/friendica/addon/phpmailer/config ``` <?php // Warning: Don't change this file! It only holds the default config values for this addon. // Instead, copy this file to config/phpmailer.config.php in your Friendica directory and set the correct values there return [ 'phpmailer' => [ // smtp (Boolean) // Enables SMTP relaying for outbound emails 'smtp' => false, // smtp_server (String) // SMTP server host name 'smtp_server' => 'smtp.example.com', // smtp_port (Integer) // SMTP server port number 'smtp_port' => 25, // smtp_secure (String) // What kind of encryption to use on the SMTP connection. // Options: '', 'ssl' or 'tls'. 'smtp_secure' => '', // smtp_port_s (Integer) // Secure SMTP server port number 'smtp_port_s' => 465, // smtp_username (String) // SMTP server authentication user name // Empty string disables authentication 'smtp_username' => '', // smtp_password (String) // SMTP server authentication password // Empty string disables authentication 'smtp_password' => '', // smtp_from (String) // From address used when using the SMTP server // Example: no-reply@example.com 'smtp_from' => '', ], ]; ```
Author

Thank you, please remove the leading whitespace before the PHP opening tag <?php if it exists in your file.

It doesn't, I think it's just the way I copied it into here, my apologies

> Thank you, please remove the leading whitespace before the PHP opening tag `<?php` if it exists in your file. It doesn't, I think it's just the way I copied it into here, my apologies
Author

This is the first file I attempted; its location was in /var/www/friendica/addon/phpmailer/config

<?php                                                                                         

// Warning: Don't change this file! It only holds the default config values for this addon.  
// Instead, copy this file to config/phpmailer.config.php in your Friendica directory and set the correct values there

return [

'phpmailer' => [
// smtp (Boolean)                                                                            // Enables SMTP relaying for outbound emails                                                  'smtp' => false,

// smtp_server (String)
// SMTP server host name
'smtp_server' => 'smtp.example.com',

// smtp_port (Integer)
// SMTP server port number
'smtp_port' => 25,

// smtp_secure (String)
// What kind of encryption to use on the SMTP connection.                                    // Options: '', 'ssl' or 'tls'.                                                             'smtp_secure' => '',     

// smtp_port_s (Integer)                                                                      // Secure SMTP server port number                                                           'smtp_port_s' => 465,      

// smtp_username (String)                                                                   
// SMTP server authentication user name                                                      // Empty string disables authentication                                                    'smtp_username' => '',  

// smtp_password (String)                                                            
// SMTP server authentication password                                                    
// Empty string disables authentication                                                     'smtp_password' => '',

// smtp_from (String)                                                                        // From address used when using the SMTP server
// Example: no-reply@example.com 
'smtp_from' => '',

],
];

I used the mv command to get it from where I found it, into the /config folder, and then modified it there using nano

image

> This is the first file I attempted; its location was in /var/www/friendica/addon/phpmailer/config > > > ``` > <?php > > // Warning: Don't change this file! It only holds the default config values for this addon. > // Instead, copy this file to config/phpmailer.config.php in your Friendica directory and set the correct values there > > return [ > > 'phpmailer' => [ > // smtp (Boolean) // Enables SMTP relaying for outbound emails 'smtp' => false, > > // smtp_server (String) > // SMTP server host name > 'smtp_server' => 'smtp.example.com', > > // smtp_port (Integer) > // SMTP server port number > 'smtp_port' => 25, > > // smtp_secure (String) > // What kind of encryption to use on the SMTP connection. // Options: '', 'ssl' or 'tls'. 'smtp_secure' => '', > > // smtp_port_s (Integer) // Secure SMTP server port number 'smtp_port_s' => 465, > > // smtp_username (String) > // SMTP server authentication user name // Empty string disables authentication 'smtp_username' => '', > > // smtp_password (String) > // SMTP server authentication password > // Empty string disables authentication 'smtp_password' => '', > > // smtp_from (String) // From address used when using the SMTP server > // Example: no-reply@example.com > 'smtp_from' => '', > > ], > ]; > ``` I used the mv command to get it from where I found it, into the /config folder, and then modified it there using nano ![image](/attachments/fe4f161c-95fd-4201-86c4-93e0ca7f8c95)
101 KiB
Owner

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 or Exception.

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` or `Exception`.
Author

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

2023/04/08 10:07:57 [error] 3515700#3515700: *832717 FastCGI sent in stderr: "PHP message: PHP Warning:  include(/var/www/friendica/config/addon.config.php): failed to open stream: Permission denied in /var/w>
Stack trace:
#0 /var/www/friendica/src/Core/Config/Util/ConfigFileLoader.php(157): Friendica\Core\Config\Util\ConfigFileLoader->loadConfigFile()
#1 /var/www/friendica/src/Core/Config/Util/ConfigFileLoader.php(107): Friendica\Core\Config\Util\ConfigFileLoader->loadCoreConfig()
#2 /var/www/friendica/src/Core/Config/Factory/Config.php(80): Friendica\Core\Config\Util\ConfigFileLoader->setupCache()
#3 /var/www/friendica/vendor/level-2/dice/Dice.php(150): Friendica\Core\Config\Factory\Config->createCache()
#4 /var/www/friendica/vendor/level-2/dice/Dice.php(96): Dice\Dice->Dice\{closure}()
#5 /var/www/friendica/vendor/level-2/dice/Dice.php(247): Dice\Dice->create()
#6 /var/www/friendica/vendor/level-2/dice/Dice.php(132): Dice\Dice->Dice\{closure}()
#7 /var/www/friendica/vendor/l" while reading response header from upstream, client: 192.168.1.1, server: friendica.thelaserguy.online, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.4>




(I honestly don't know if it helps you at all, or makes a difference, however, the webaddress is https://friendica.thelaserguy.online)

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 ``` 2023/04/08 10:07:57 [error] 3515700#3515700: *832717 FastCGI sent in stderr: "PHP message: PHP Warning: include(/var/www/friendica/config/addon.config.php): failed to open stream: Permission denied in /var/w> Stack trace: #0 /var/www/friendica/src/Core/Config/Util/ConfigFileLoader.php(157): Friendica\Core\Config\Util\ConfigFileLoader->loadConfigFile() #1 /var/www/friendica/src/Core/Config/Util/ConfigFileLoader.php(107): Friendica\Core\Config\Util\ConfigFileLoader->loadCoreConfig() #2 /var/www/friendica/src/Core/Config/Factory/Config.php(80): Friendica\Core\Config\Util\ConfigFileLoader->setupCache() #3 /var/www/friendica/vendor/level-2/dice/Dice.php(150): Friendica\Core\Config\Factory\Config->createCache() #4 /var/www/friendica/vendor/level-2/dice/Dice.php(96): Dice\Dice->Dice\{closure}() #5 /var/www/friendica/vendor/level-2/dice/Dice.php(247): Dice\Dice->create() #6 /var/www/friendica/vendor/level-2/dice/Dice.php(132): Dice\Dice->Dice\{closure}() #7 /var/www/friendica/vendor/l" while reading response header from upstream, client: 192.168.1.1, server: friendica.thelaserguy.online, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.4> ``` (I honestly don't know if it helps you at all, or makes a difference, however, the webaddress is https://friendica.thelaserguy.online)
Author

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 or Exception.

any update?

> 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` or `Exception`. any update?
Owner

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?

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?
Author

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

> 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
Owner

What does a ls -al in the Friendica base folder give when ssh'd?

What does a `ls -al` in the Friendica base folder give when ssh'd?
Author

What does a ls -al in the Friendica base folder give when ssh'd?

total 740
drwxr-x---  21 friendica www-data    4096 Apr  7 22:54 .
drwxr-xr-x+ 13 root      root        4096 Apr  7 15:24 ..
drwxrwx---  88 friendica www-data    4096 Apr  7 15:24 addon
drwxrwx---   3 friendica www-data    4096 Apr  7 15:24 bin
-rw-rw----   1 friendica www-data  122544 Apr  7 15:24 CHANGELOG
-rw-rw----   1 friendica www-data     252 Apr  7 15:24 .codecov.yml
drwxr-xr-x   3 friendica friendica   4096 Apr  7 15:24 .composer
-rw-rw----   1 friendica www-data    3540 Apr  7 15:24 composer.json
-rw-rw----   1 friendica www-data  231848 Apr  7 15:24 composer.lock
drwxrwx---   2 friendica www-data    4096 Apr  9 11:18 config
-rw-rw----   1 friendica www-data    1096 Apr  7 15:24 CONTRIBUTING.md
-rw-rw----   1 friendica www-data    4385 Apr  7 15:24 CREDITS.txt
-rw-rw----   1 friendica www-data  149364 Apr  7 15:24 database.sql
drwxrwx---   2 friendica www-data    4096 Apr  7 15:24 .ddev
drwxrwx---   6 friendica www-data    4096 Apr  7 21:50 doc
-rw-rw----   1 friendica www-data     234 Apr  7 15:24 docblox.dist.xml
-rw-rw----   1 friendica www-data     816 Apr  7 15:24 Doxyfile
-rw-rw----   1 friendica www-data     223 Apr  7 15:24 .editorconfig
drwxrwx---   8 friendica www-data    4096 Apr  7 15:24 .git
-rw-rw----   1 friendica www-data      49 Apr  7 15:24 .gitattributes
drwxrwx---   3 friendica www-data    4096 Apr  7 15:24 .github
-rw-rw----   1 friendica www-data    1456 Apr  7 15:24 .gitignore
-rw-rw----   1 friendica www-data       0 Apr  7 15:24 .gitmodules
-rw-rw----   1 friendica www-data    1554 Apr  7 15:24 .htaccess
-rw-rw----   1 friendica www-data    1554 Apr  7 15:24 .htaccess-dist
drwxrwx---   5 friendica www-data    4096 Apr  7 15:24 images
-rw-rw----   1 friendica www-data    1825 Apr  7 15:24 index.php
-rw-rw----   1 friendica www-data   34523 Apr  7 15:24 LICENSE
drwxrwx---   2 friendica www-data    4096 Apr  7 15:24 mod
drwxrwx---   5 friendica www-data    4096 Apr  7 15:24 mods
-rw-rw----   1 friendica www-data    2303 Apr  7 15:24 .php_cs.dist
-rw-rw----   1 friendica www-data    4164 Apr  7 15:24 README.md
-rw-------   1 friendica friendica   1024 Apr  9 11:09 .rnd
-rw-rw----   1 friendica www-data     549 Apr  7 15:24 ruleset.xml
-rw-rw----   1 friendica www-data     228 Apr  7 15:24 security.txt
drwxrwx---   2 friendica www-data    4096 Apr  7 15:24 spec
drwxrwx---  23 friendica www-data    4096 Apr  7 15:24 src
drwxrwx---   2 friendica www-data    4096 Apr  7 15:24 static
drwxrwx---   6 friendica www-data    4096 Apr  7 15:24 tests
drwxrwx---   2 friendica www-data    4096 Apr  7 15:24 .tx
-rw-rw----   1 friendica www-data   39266 Apr  7 15:24 update.php
-rw-rw----   1 friendica www-data    1875 Apr  7 15:24 Vagrantfile
drwxr-xr-x  39 friendica friendica   4096 Apr  7 15:26 vendor
-rw-rw----   1 friendica www-data       8 Apr  7 15:24 VERSION
drwxrwx---  11 friendica www-data    4096 Apr  7 15:24 view
drwxrwx---   2 friendica www-data    4096 Apr  7 15:24 .woodpecker
> What does a `ls -al` in the Friendica base folder give when ssh'd? ``` total 740 drwxr-x--- 21 friendica www-data 4096 Apr 7 22:54 . drwxr-xr-x+ 13 root root 4096 Apr 7 15:24 .. drwxrwx--- 88 friendica www-data 4096 Apr 7 15:24 addon drwxrwx--- 3 friendica www-data 4096 Apr 7 15:24 bin -rw-rw---- 1 friendica www-data 122544 Apr 7 15:24 CHANGELOG -rw-rw---- 1 friendica www-data 252 Apr 7 15:24 .codecov.yml drwxr-xr-x 3 friendica friendica 4096 Apr 7 15:24 .composer -rw-rw---- 1 friendica www-data 3540 Apr 7 15:24 composer.json -rw-rw---- 1 friendica www-data 231848 Apr 7 15:24 composer.lock drwxrwx--- 2 friendica www-data 4096 Apr 9 11:18 config -rw-rw---- 1 friendica www-data 1096 Apr 7 15:24 CONTRIBUTING.md -rw-rw---- 1 friendica www-data 4385 Apr 7 15:24 CREDITS.txt -rw-rw---- 1 friendica www-data 149364 Apr 7 15:24 database.sql drwxrwx--- 2 friendica www-data 4096 Apr 7 15:24 .ddev drwxrwx--- 6 friendica www-data 4096 Apr 7 21:50 doc -rw-rw---- 1 friendica www-data 234 Apr 7 15:24 docblox.dist.xml -rw-rw---- 1 friendica www-data 816 Apr 7 15:24 Doxyfile -rw-rw---- 1 friendica www-data 223 Apr 7 15:24 .editorconfig drwxrwx--- 8 friendica www-data 4096 Apr 7 15:24 .git -rw-rw---- 1 friendica www-data 49 Apr 7 15:24 .gitattributes drwxrwx--- 3 friendica www-data 4096 Apr 7 15:24 .github -rw-rw---- 1 friendica www-data 1456 Apr 7 15:24 .gitignore -rw-rw---- 1 friendica www-data 0 Apr 7 15:24 .gitmodules -rw-rw---- 1 friendica www-data 1554 Apr 7 15:24 .htaccess -rw-rw---- 1 friendica www-data 1554 Apr 7 15:24 .htaccess-dist drwxrwx--- 5 friendica www-data 4096 Apr 7 15:24 images -rw-rw---- 1 friendica www-data 1825 Apr 7 15:24 index.php -rw-rw---- 1 friendica www-data 34523 Apr 7 15:24 LICENSE drwxrwx--- 2 friendica www-data 4096 Apr 7 15:24 mod drwxrwx--- 5 friendica www-data 4096 Apr 7 15:24 mods -rw-rw---- 1 friendica www-data 2303 Apr 7 15:24 .php_cs.dist -rw-rw---- 1 friendica www-data 4164 Apr 7 15:24 README.md -rw------- 1 friendica friendica 1024 Apr 9 11:09 .rnd -rw-rw---- 1 friendica www-data 549 Apr 7 15:24 ruleset.xml -rw-rw---- 1 friendica www-data 228 Apr 7 15:24 security.txt drwxrwx--- 2 friendica www-data 4096 Apr 7 15:24 spec drwxrwx--- 23 friendica www-data 4096 Apr 7 15:24 src drwxrwx--- 2 friendica www-data 4096 Apr 7 15:24 static drwxrwx--- 6 friendica www-data 4096 Apr 7 15:24 tests drwxrwx--- 2 friendica www-data 4096 Apr 7 15:24 .tx -rw-rw---- 1 friendica www-data 39266 Apr 7 15:24 update.php -rw-rw---- 1 friendica www-data 1875 Apr 7 15:24 Vagrantfile drwxr-xr-x 39 friendica friendica 4096 Apr 7 15:26 vendor -rw-rw---- 1 friendica www-data 8 Apr 7 15:24 VERSION drwxrwx--- 11 friendica www-data 4096 Apr 7 15:24 view drwxrwx--- 2 friendica www-data 4096 Apr 7 15:24 .woodpecker ```
Owner

Thank, it's just a matter of restoring the permissions to the following folders after editing the config files:

chown -R friendica:www-data config addon

And then they should be available for the web server to read.

Thank, it's just a matter of restoring the permissions to the following folders after editing the config files: ``` chown -R friendica:www-data config addon ``` And then they should be available for the web server to read.
Author

This is getting... interesting.. Now, when I go to the address, it's behind a Yuno login.. which it wasn't previously lol

This is getting... interesting.. Now, when I go to the address, it's behind a Yuno login.. which it wasn't previously lol
Author

I'm just gonna give up lol maybe try again next year 🤣

I'm just gonna give up lol maybe try again next year 🤣
Owner

Sorry about that!

Sorry about that!
Author

Sorry about that!

It's okay! I'm sure that it's me, doing something wrong. It's mind boggling lol

root@yuno:/var/www/friendica/config# ls -al
total 20
drwxrwx---  2 friendica www-data 4096 Apr  9 11:18 .
drwxr-x--- 21 friendica www-data 4096 Apr  7 22:54 ..
-rw-r-----  1 friendica www-data 1399 Apr  7 15:24 local.config.php
-rw-rw----  1 friendica www-data 1357 Apr  7 15:24 local-sample.config.php
-rwxr-xr-x  1 friendica www-data  282 Apr  9 11:18 phpmailer.config.php
thelaserguy@yuno:~$ sudo su -
[sudo] password for thelaserguy:
root@yuno:~# cd /var/www/friendica
root@yuno:/var/www/friendica# ls -al
total 740
drwxr-x---  21 friendica www-data    4096 Apr  7 22:54 .
drwxr-xr-x+ 13 root      root        4096 Apr  7 15:24 ..
drwxrwx---  88 friendica www-data    4096 Apr  7 15:24 addon
drwxrwx---   3 friendica www-data    4096 Apr  7 15:24 bin
-rw-rw----   1 friendica www-data  122544 Apr  7 15:24 CHANGELOG
-rw-rw----   1 friendica www-data     252 Apr  7 15:24 .codecov.yml
drwxr-xr-x   3 friendica friendica   4096 Apr  7 15:24 .composer
-rw-rw----   1 friendica www-data    3540 Apr  7 15:24 composer.json
-rw-rw----   1 friendica www-data  231848 Apr  7 15:24 composer.lock
drwxrwx---   2 friendica www-data    4096 Apr  9 11:18 config
-rw-rw----   1 friendica www-data    1096 Apr  7 15:24 CONTRIBUTING.md
-rw-rw----   1 friendica www-data    4385 Apr  7 15:24 CREDITS.txt
-rw-rw----   1 friendica www-data  149364 Apr  7 15:24 database.sql
drwxrwx---   2 friendica www-data    4096 Apr  7 15:24 .ddev
drwxrwx---   6 friendica www-data    4096 Apr  7 21:50 doc
-rw-rw----   1 friendica www-data     234 Apr  7 15:24 docblox.dist.xml
-rw-rw----   1 friendica www-data     816 Apr  7 15:24 Doxyfile
-rw-rw----   1 friendica www-data     223 Apr  7 15:24 .editorconfig
drwxrwx---   8 friendica www-data    4096 Apr  7 15:24 .git
-rw-rw----   1 friendica www-data      49 Apr  7 15:24 .gitattributes
drwxrwx---   3 friendica www-data    4096 Apr  7 15:24 .github
-rw-rw----   1 friendica www-data    1456 Apr  7 15:24 .gitignore
-rw-rw----   1 friendica www-data       0 Apr  7 15:24 .gitmodules
-rw-rw----   1 friendica www-data    1554 Apr  7 15:24 .htaccess
-rw-rw----   1 friendica www-data    1554 Apr  7 15:24 .htaccess-dist
drwxrwx---   5 friendica www-data    4096 Apr  7 15:24 images
-rw-rw----   1 friendica www-data    1825 Apr  7 15:24 index.php
-rw-rw----   1 friendica www-data   34523 Apr  7 15:24 LICENSE
drwxrwx---   2 friendica www-data    4096 Apr  7 15:24 mod
drwxrwx---   5 friendica www-data    4096 Apr  7 15:24 mods
-rw-rw----   1 friendica www-data    2303 Apr  7 15:24 .php_cs.dist
-rw-rw----   1 friendica www-data    4164 Apr  7 15:24 README.md
-rw-------   1 friendica friendica   1024 Apr  9 11:09 .rnd
-rw-rw----   1 friendica www-data     549 Apr  7 15:24 ruleset.xml
-rw-rw----   1 friendica www-data     228 Apr  7 15:24 security.txt
drwxrwx---   2 friendica www-data    4096 Apr  7 15:24 spec
drwxrwx---  23 friendica www-data    4096 Apr  7 15:24 src
drwxrwx---   2 friendica www-data    4096 Apr  7 15:24 static
drwxrwx---   6 friendica www-data    4096 Apr  7 15:24 tests
drwxrwx---   2 friendica www-data    4096 Apr  7 15:24 .tx
-rw-rw----   1 friendica www-data   39266 Apr  7 15:24 update.php
-rw-rw----   1 friendica www-data    1875 Apr  7 15:24 Vagrantfile
drwxr-xr-x  39 friendica friendica   4096 Apr  7 15:26 vendor
-rw-rw----   1 friendica www-data       8 Apr  7 15:24 VERSION
drwxrwx---  11 friendica www-data    4096 Apr  7 15:24 view
drwxrwx---   2 friendica www-data    4096 Apr  7 15:24 .woodpecker
> Sorry about that! It's okay! I'm sure that it's me, doing something wrong. It's mind boggling lol ``` root@yuno:/var/www/friendica/config# ls -al total 20 drwxrwx--- 2 friendica www-data 4096 Apr 9 11:18 . drwxr-x--- 21 friendica www-data 4096 Apr 7 22:54 .. -rw-r----- 1 friendica www-data 1399 Apr 7 15:24 local.config.php -rw-rw---- 1 friendica www-data 1357 Apr 7 15:24 local-sample.config.php -rwxr-xr-x 1 friendica www-data 282 Apr 9 11:18 phpmailer.config.php ``` ``` thelaserguy@yuno:~$ sudo su - [sudo] password for thelaserguy: root@yuno:~# cd /var/www/friendica root@yuno:/var/www/friendica# ls -al total 740 drwxr-x--- 21 friendica www-data 4096 Apr 7 22:54 . drwxr-xr-x+ 13 root root 4096 Apr 7 15:24 .. drwxrwx--- 88 friendica www-data 4096 Apr 7 15:24 addon drwxrwx--- 3 friendica www-data 4096 Apr 7 15:24 bin -rw-rw---- 1 friendica www-data 122544 Apr 7 15:24 CHANGELOG -rw-rw---- 1 friendica www-data 252 Apr 7 15:24 .codecov.yml drwxr-xr-x 3 friendica friendica 4096 Apr 7 15:24 .composer -rw-rw---- 1 friendica www-data 3540 Apr 7 15:24 composer.json -rw-rw---- 1 friendica www-data 231848 Apr 7 15:24 composer.lock drwxrwx--- 2 friendica www-data 4096 Apr 9 11:18 config -rw-rw---- 1 friendica www-data 1096 Apr 7 15:24 CONTRIBUTING.md -rw-rw---- 1 friendica www-data 4385 Apr 7 15:24 CREDITS.txt -rw-rw---- 1 friendica www-data 149364 Apr 7 15:24 database.sql drwxrwx--- 2 friendica www-data 4096 Apr 7 15:24 .ddev drwxrwx--- 6 friendica www-data 4096 Apr 7 21:50 doc -rw-rw---- 1 friendica www-data 234 Apr 7 15:24 docblox.dist.xml -rw-rw---- 1 friendica www-data 816 Apr 7 15:24 Doxyfile -rw-rw---- 1 friendica www-data 223 Apr 7 15:24 .editorconfig drwxrwx--- 8 friendica www-data 4096 Apr 7 15:24 .git -rw-rw---- 1 friendica www-data 49 Apr 7 15:24 .gitattributes drwxrwx--- 3 friendica www-data 4096 Apr 7 15:24 .github -rw-rw---- 1 friendica www-data 1456 Apr 7 15:24 .gitignore -rw-rw---- 1 friendica www-data 0 Apr 7 15:24 .gitmodules -rw-rw---- 1 friendica www-data 1554 Apr 7 15:24 .htaccess -rw-rw---- 1 friendica www-data 1554 Apr 7 15:24 .htaccess-dist drwxrwx--- 5 friendica www-data 4096 Apr 7 15:24 images -rw-rw---- 1 friendica www-data 1825 Apr 7 15:24 index.php -rw-rw---- 1 friendica www-data 34523 Apr 7 15:24 LICENSE drwxrwx--- 2 friendica www-data 4096 Apr 7 15:24 mod drwxrwx--- 5 friendica www-data 4096 Apr 7 15:24 mods -rw-rw---- 1 friendica www-data 2303 Apr 7 15:24 .php_cs.dist -rw-rw---- 1 friendica www-data 4164 Apr 7 15:24 README.md -rw------- 1 friendica friendica 1024 Apr 9 11:09 .rnd -rw-rw---- 1 friendica www-data 549 Apr 7 15:24 ruleset.xml -rw-rw---- 1 friendica www-data 228 Apr 7 15:24 security.txt drwxrwx--- 2 friendica www-data 4096 Apr 7 15:24 spec drwxrwx--- 23 friendica www-data 4096 Apr 7 15:24 src drwxrwx--- 2 friendica www-data 4096 Apr 7 15:24 static drwxrwx--- 6 friendica www-data 4096 Apr 7 15:24 tests drwxrwx--- 2 friendica www-data 4096 Apr 7 15:24 .tx -rw-rw---- 1 friendica www-data 39266 Apr 7 15:24 update.php -rw-rw---- 1 friendica www-data 1875 Apr 7 15:24 Vagrantfile drwxr-xr-x 39 friendica friendica 4096 Apr 7 15:26 vendor -rw-rw---- 1 friendica www-data 8 Apr 7 15:24 VERSION drwxrwx--- 11 friendica www-data 4096 Apr 7 15:24 view drwxrwx--- 2 friendica www-data 4096 Apr 7 15:24 .woodpecker ```
Owner

What about addon/phpmailer/config ?

What about `addon/phpmailer/config` ?
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: friendica/friendica-addons#1365
No description provided.