Topic: NextCloud Error 404 - /index.php/apps/files/
================ Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7 MARIADB edition
- Linux/BSD distribution name and version: CentOS Linux release 7.4.1708 (Core)
- 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.
========================================
Hi to all,
first of all thanks for your work for iRedMail and for your support.
I'm quite new with Nginx but as that default version for next upgrade i choose to use it on my personal server.
After configure mail to 'webmail.magri.email', i've try to install nextcloud on the same server.
To solve the problem with the php version, I did an upgrade following the steps below :
yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum-config-manager --enable remi-php56
yum update
After that i've just download nextcloud in the directory '/var/www/nextcloud/', change the owner to nginx, group nginx, files permission to 0755 and try to install with the following configuration as vhost :
server {
listen 80;
listen [::]:80;
server_name nextcloud.magri.email;
return 301 https://$server_name$request_uri;
}
server {
listen 443;
listen [::]:443;
include /etc/nginx/templates/hsts.tmpl;
root /var/www/nextcloud;
index index.php index.html;
server_name nextcloud.magri.email;
ssl on;
ssl_dhparam /etc/nginx/ssl/dhparam.pem;
ssl_certificate /etc/letsencrypt/live/nextcloud.magri.email/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/nextcloud.magri.email/privkey.pem;
ssl_protocols TLSv1.2;
ssl_ciphers "DHE-RSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-GCM-SHA384 !RC4 !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS";
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
location ~ \.php$ {
include /etc/nginx/templates/fastcgi_php.tmpl;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location ~ ^/(bin|SQL|README|INSTALL|LICENSE|CHANGELOG|UPGRADING)$ { deny all; }
}
It appear fine, but after installation a page with error 404 was report back to me and the adress change to 'https://nextcloud.magri.email/index.php/apps/files/'.
I've try to manage how to solve it without solve the issue.
Can someone tell me where i wrong ?
Thanks again.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.