Page 2 of 2

Re: https://domain.com/webmail gives http 500 error

Posted: Sun Jun 21, 2020 10:03 pm
by SanTi
I used "setenforce 0" command and reboot

then I used "sestatus" command
-------------------------
SELinux status: enabled
SELinuxfs mount: /sys/fs/selinux
SELinux root directory: /etc/selinux
Loaded policy name: targeted
Current mode: permissive
Mode from config file: permissive
Policy MLS status: enabled
Policy deny_unknown status: allowed
Max kernel policy version: 31


-----------

I think the problem is related with this -> https://github.com/serghey-rodin/vesta/issues/1707

Re: https://domain.com/webmail gives http 500 error

Posted: Sun Jun 21, 2020 10:05 pm
by peters
Edit the /etc/selinux/config file and set the SELINUX to disabled to make it persistent.

Reboot the Linux server
Verify it by running the sestatus and getenforce again

Re: https://domain.com/webmail gives http 500 error

Posted: Sun Jun 21, 2020 10:09 pm
by SanTi
I edit config file and now it is disabled but sttill gives 500 error

Re: https://domain.com/webmail gives http 500 error

Posted: Sun Jun 21, 2020 10:13 pm
by peters
Could you please post your /etc/php-fpm.d/www.conf ?

Re: https://domain.com/webmail gives http 500 error

Posted: Sun Jun 21, 2020 10:17 pm
by SanTi
I have solved problem. I am happy. The problem has caused of file permissions. I tink file permissions was changed after upgrade or another reason that I dont know.

I chandeg file permissions of /etc/roundcube/config.inc.php , /etc/roundcube/defaults.inc.php and /etc/roundcube/mimetypes.php from 640 to 644 and now it is working.

Thank you very much for your good effort. I have solved the problem now by changing file permissions.

Re: https://domain.com/webmail gives http 500 error

Posted: Sun Jun 21, 2020 10:23 pm
by peters
Thats great news you are welcome! This may happen after roundcube is upgraded. VestaCP does not set the file system permissions after an upgrade only at installation time as roundcube is updated by yum. You may face the problem again on a major roundcube upgrade so you hopefully remember this fix.

Re: https://domain.com/webmail gives http 500 error

Posted: Sun Jun 21, 2020 10:26 pm
by SanTi
Now I can access to my roundcubemail server without any problem. I have changed file permissions of .php files at /etc/roundcube from 640 to 644. It begun to work nice. Yes this will be a fix guide if this error happen again in future. I looke on all internet and anyone does not mention about file permissions. I tried million things until find this basic problem :D