Today I decided to make ssh keys with non-password login for the command line, but after getting installed and activated then squirrelmail (website.com/webmail) was showing a blank page instead of a login page. The cli ssh keys are working perfect. I checked my /var/log/maillog file and no errors showed. I then checked /var/log/httpd/errors_log. I got these errors...
I viewed the global.php file it is talking about and line 105 was reading...[Tue Mar 11 13:49:08 2014] [error] [client 198.23.xx.xx] PHP Warning: require_once(/etc/squirrelmail/config.php): failed to open stream: Permission denied in /usr/share/squirrelmail/functions/global.php on line 105
[Tue Mar 11 13:49:08 2014] [error] [client 198.23.xx.xx] PHP Fatal error: require_once(): Failed opening required '../config/config.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/squirrelmail/functions/global.php on line 105
I was not sure how to edit that line, so I tried a few different ways and always got log errors for syntax problems.require_once(SM_PATH . 'config/config.php');
I looked for /usr/share/pear and there is not such file. I also looked up /usr/share/php but that was an empty directory.
I am not sure what to do from here. My next guess is something needs to be done with /etc/squirrelmail/config.php but I am not sure. Or maybe setting up https for squirrelmail would fix the problem along the way.
Does anybody know why the ssh keys broke webmail and how to fix it?
Thanks,
Jeffrey