AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-70568

grepmaster's questions

Martin Hope
grepmaster
Asked: 2016-07-20 19:02:06 +0800 CST

新服务器上的joomla空白页

  • 0

我将 joomla web 文件夹从 ubuntu 14.04 复制到同一目录到 ubuntu 16.04 服务器。

所有设置不变。

在确保 vhost fastcgi 指向 php7.0-fpm.sock 而不是 ubuntu 16.04 上的 php5.-fpm.sock 后,它只显示空白屏幕。

在访问日志上:

192.168.1.10 - - [19/Jul/2016:11:09:45 +0800] "GET / HTTP/1.1" 500 5 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0"

/etc/nginx/nginx.conf

user www-data;
worker_processes auto;
pid /run/nginx.pid;
events {
        worker_connections 100;
        multi_accept on;
        use epoll;
}
http {
        client_max_body_size 200M;
        sendfile on;
        tcp_nopush on;
        tcp_nodelay on;
        keepalive_timeout 65;
        keepalive_requests 200;
        types_hash_max_size 2048;
        server_names_hash_max_size 1024;
        server_names_hash_bucket_size 128;
        server_tokens off;
        include /etc/nginx/mime.types;
        default_type application/octet-stream;
        access_log off;
        error_log /var/log/nginx/error.log;
        open_file_cache max=600000 inactive=20s;
        open_file_cache_valid 60s;
        open_file_cache_min_uses 2;
        open_file_cache_errors on;
        gzip on;
        gzip_vary on;
        gzip_min_length 256;
        gzip_comp_level 3;
        gzip_proxied expired no-cache no-store private auth;
        gzip_types text/css text/xml text/javascript application/x-javascript application/xml;
        gzip_disable "MSIE [1-6]\.";
        include /etc/nginx/conf.d/*.conf;
        include /etc/nginx/sites-enabled/*;
        fastcgi_buffer_size 128k;
        fastcgi_buffers 256 16k;
        fastcgi_busy_buffers_size 256k;
        fastcgi_temp_file_write_size 256k;
        fastcgi_connect_timeout 30;
        fastcgi_send_timeout 25;
        fastcgi_read_timeout 20;
}

/etc/nginx/sites-enabled/mydomain

server {
        listen 80;
        root /var/www/;
        index index.php index.html index.htm;
        server_name www.mydomain.com;
        location / {
                try_files $uri $uri/ /index.php?q=$request_uri;
        }
        location ~ \.php$ {
                fastcgi_split_path_info ^(.+\.php)(/.+)$;
                fastcgi_pass unix:/run/php/php7.0-fpm.sock;
                fastcgi_index index.php;
                include fastcgi_params;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        }
}

以前(ubuntu 14,04, php5, nginx 1.4),是因为不包括fastcgi_index,包括fastcgi_params,这次不包括(ubuntu 16.04, php7, nginx 1.10)。即使删除这些设置也不能解决这个问题。

nginx joomla php7
  • 1 个回答
  • 532 Views
Martin Hope
grepmaster
Asked: 2015-10-01 21:21:44 +0800 CST

monit:/etc/monit.conf:188:错误:语法错误'start program =“'

  • -2
# monit -V
This is monit version 5.1.1
Copyright (C) 2000-2010 by Tildeslash Ltd. All Rights Reserved.

# cat /etc/redhat-release 
CentOS release 6.6 (Final)

里面的monit设置/etc/monit.conf:

check system localhost
    start program = "service zimbra start"
    stop  program = "service zimbra stop"

什么导致语法错误?

monit
  • 1 个回答
  • 2450 Views
Martin Hope
grepmaster
Asked: 2015-04-02 03:56:37 +0800 CST

删除 innodb 的 STATS_PERSISTENT=0

  • 1

是否可以从 mariadb 10.0 转储中禁用“STATS_PERSISTENT=0”,恢复到 mariadb 5.5

引擎=InnoDB 默认字符集=utf8 整理=utf8_bin STATS_PERSISTENT=0;

ubuntu
  • 1 个回答
  • 5968 Views
Martin Hope
grepmaster
Asked: 2015-02-25 01:33:18 +0800 CST

在 stderr 中发送的 FastCGI:无法打开主脚本

  • 3

情况:

服务器 A 和服务器 B 安装了相同的 Ubuntu 14.04、相同的 nginx 版本(1.4.6)、相同的虚拟主机(domain.com)和 joomla 文件夹(从服务器 A 到 B 的 rsync-ed)

但是服务器 A 只能显示其首页,并且会在任何菜单项上显示“未指定文件输入”。

如果我在 /etc/hosts 中进行更改,以便在服务器 B 测试后服务器 A 的 IP 将使用 domain.com,它不会立即失败。只有几分钟后才会出现该错误。

nginx 的错误日志中有几条消息,如下所示:

2015/02/23 12:01:57 [error] 15515#0: *260609 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined property: JPagination::$pagesTotal in /var/www/joomla/templates/ashton/html/com_content/featured/default.php on line 76" while reading response header from upstream, client: 10.224.202.152, server: www.domain.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "www.domain.com" 
ubuntu
  • 1 个回答
  • 33165 Views

Sidebar

Stats

  • 问题 205406
  • 回答 270551
  • 最佳答案 135275
  • 用户 68468
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve