Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Mail Server
  • Search

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

Questions regarding the Mail Server
Dovecot, Exim, RoundCube
Post Reply
  • Print view
Advanced search
17 posts
  • Previous
  • 1
  • 2
SanTi
Posts: 39
Joined: Tue Jan 08, 2019 1:23 am

Os: CentOS 6x
Web: nginx + php-fpm
Re: https://domain.com/webmail gives http 500 error
  • Quote

Post by SanTi » Sun Jun 21, 2020 10:03 pm

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
Last edited by SanTi on Sun Jun 21, 2020 10:06 pm, edited 1 time in total.
Top

peters
Posts: 29
Joined: Thu Jun 18, 2020 9:05 am

Os: CentOS 6x
Web: apache + nginx
Re: https://domain.com/webmail gives http 500 error
  • Quote

Post by peters » Sun Jun 21, 2020 10:05 pm

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
Top

SanTi
Posts: 39
Joined: Tue Jan 08, 2019 1:23 am

Os: CentOS 6x
Web: nginx + php-fpm
Re: https://domain.com/webmail gives http 500 error
  • Quote

Post by SanTi » Sun Jun 21, 2020 10:09 pm

I edit config file and now it is disabled but sttill gives 500 error
Top

peters
Posts: 29
Joined: Thu Jun 18, 2020 9:05 am

Os: CentOS 6x
Web: apache + nginx
Re: https://domain.com/webmail gives http 500 error
  • Quote

Post by peters » Sun Jun 21, 2020 10:13 pm

Could you please post your /etc/php-fpm.d/www.conf ?
Top

SanTi
Posts: 39
Joined: Tue Jan 08, 2019 1:23 am

Os: CentOS 6x
Web: nginx + php-fpm
Re: https://domain.com/webmail gives http 500 error
  • Quote

Post by SanTi » Sun Jun 21, 2020 10:17 pm

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

peters
Posts: 29
Joined: Thu Jun 18, 2020 9:05 am

Os: CentOS 6x
Web: apache + nginx
Re: https://domain.com/webmail gives http 500 error
  • Quote

Post by peters » Sun Jun 21, 2020 10:23 pm

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.
Last edited by peters on Sun Jun 21, 2020 10:26 pm, edited 1 time in total.
Top

SanTi
Posts: 39
Joined: Tue Jan 08, 2019 1:23 am

Os: CentOS 6x
Web: nginx + php-fpm
Re: https://domain.com/webmail gives http 500 error
  • Quote

Post by SanTi » Sun Jun 21, 2020 10:26 pm

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
Top


Post Reply
  • Print view

17 posts
  • Previous
  • 1
  • 2

Return to “Mail Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password