Topic: 2 php versions /mail showing 404 Not found
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.2.2 MARIADB edition
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Ubuntu 18.04.6 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hello guys,
I have multiple websites(domains) on the server that work just fine with php 7.2 but i have that one website that needed php 7.4, so i installed php7.4-fpm and added the following code to my nginx .conf file for that specific domain:
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
Restarted nginx and the website works just fine, email server works as intended in outlook, phones, etc, but roundcube just shows me a 404 Not found message.
I tried commenting the line that says "include /etc/nginx/templates/roundcube.tmpl;" and add the contents of that file into my .conf file and mess around with it but i couldn't get it to work.
I know i'm missing something but i just can't figure it out.
Any help will be appreciated.
Thanks
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.