zyx0814/dzzoffice

ubuntu20.04打开安装页面显示空白

Opened this issue · 9 comments

k5nn5x commented

重新做过系统也还是不行,不知道什么问题 apache和php应该是正常的
image
image

解决了吗?我也遇到了相同的问题

解决了,我用的nginx,部分配置如下:

            location ~ \.php$ {
                include fastcgi_params;
                fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
                fastcgi_index index.php;
                fastcgi_split_path_info ^(.+\.php)(.*)$;
                fastcgi_param PATH_INFO $fastcgi_path_info;
                fastcgi_param SCRIPT_NAME $fastcgi_script_name;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            }

@zongchengLi 我也碰到这个问题了,我这里报错File not found,按照你这个配置也不行
image

,大哥你碰到这个问题过没有。22.04+nginx+php7.4
image

@xiaoge19961220 很早之前弄的,现在对于 DzzOffice 没有研究了。建议排查一下,nginx.conf 中对于网站根目录的相关配置,就是 root 这个参数。建议你先放个普通的静态网页试试,看看能不能够正常访问。

@xiaoge19961220 刚刚找到了我之前 DzzOffice 使用的 Nginx 的完整配置文件,你可以参考一下。

user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;

events {
	worker_connections 768;
	# multi_accept on;
}

http {
	sendfile on;
	tcp_nopush on;
	tcp_nodelay on;
	keepalive_timeout 120;
	types_hash_max_size 2048;

	include /etc/nginx/mime.types;
	default_type application/octet-stream;

	ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
	ssl_prefer_server_ciphers on;

	access_log /var/log/nginx/access.log;
	error_log /var/log/nginx/error.log;

	gzip on;

        client_body_timeout 1200;
        client_header_timeout 600;
        client_max_body_size 120M;
        client_body_buffer_size 100M;
        proxy_send_timeout 120;
        proxy_read_timeout 300;

        server {
            listen 80;
            listen [::]:80;
            index index.php index.html;
            server_name test.com;
            root /opt/dzzoffice;

            location ~ \.php$ {
                include fastcgi_params;
                fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
                fastcgi_index index.php;
                fastcgi_split_path_info ^(.+\.php)(.*)$;
                fastcgi_param PATH_INFO $fastcgi_path_info;
                fastcgi_param SCRIPT_NAME $fastcgi_script_name;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            }
        }
}