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
    • 最新
    • 标签
主页 / server / 问题

问题[500-error](server)

Martin Hope
argyrodagdileli
Asked: 2022-02-11 06:53:22 +0800 CST

代理 api 子目录时出现 Apache 500 错误

  • 1

我正在尝试将对特定端点的 PUT 请求重定向到另一台主机。

所述端点位于/internal并仅接受 PUT 请求。下面的其他端点/internal将继续由我的主主机/服务器提供服务。

我已经尝试使用重写规则和使用代理([P])标志和使用ProxyPass指令来设置它 - 所有这些都会导致 500 内部服务器错误,并且请求永远不会到达新主机

我的客户端应用程序使用无法处理重定向的简单 REST 客户端,因此我必须使用某种代理。

Apache 日志显示以下内容

[Thu Feb 10 08:56:20.394444 2022] [rewrite:trace1] [pid 8579] mod_rewrite.c(480): [client XXX.XXX.XXX.XXX:XXXXX] XXX.XXX.XXX.XXX - - [subdomain1.mydomain.com/sid#55d4ed07ecb0][rid#55d4ed2c5f20/initial] go-ahead with proxy request proxy: https://subdomain2.mydomain.com/internal/my-endpoint [OK]

这是特定虚拟主机的当前配置

<VirtualHost *:80>
 ServerName subdomain1.mydomain.com
  ProxyPass /soap ajp://localhost:7007/soap retry=3
  ProxyPreserveHost On
  Redirect /  https://subdomain1.mydomain.com/
  ErrorLog /var/log/httpd/subdomain1_error
</VirtualHost>

<VirtualHost *:443>
  ServerName subdomain1.mydomain.com
  Options FollowSymlinks
  ProxyRequests On
  ProxyPreserveHost On
  #RewriteEngine On

  #RewriteCond %{REQUEST_URI} '^/internal/my-endpoint'
  #RewriteCond %{REQUEST_METHOD} ^(PUT)
  #RewriteRule "^/(.*)" "https://subdomain2.mydomain.com/internal/my-endpoint" [P]

  ProxyPass /internal/my-endpoint https://subdomain2.mydomain.com/internal/my-endpoint
  ProxyPassReverse /internal/my-endpoint https://subdomain2.mydomain.com/internal/my-endpoint
  ProxyPreserveHost On

  LogLevel alert rewrite:trace3
  CustomLog /var/log/httpd/subdomain1_access_log common
  ProxyPass / ajp://localhost:7007/ retry=3
  ProxyPassReverse / ajp://localhost:7007/ retry=3
  ProxyPreserveHost Off
  ErrorLog /var/log/httpd/subdomain1
  SSLEngine on
</VirtualHost>
proxy mod-proxy mod-rewrite apache-2.4 500-error
  • 1 个回答
  • 104 Views
Martin Hope
Christos Hayward
Asked: 2021-08-21 14:45:37 +0800 CST

我需要做什么才能让 ProxyPass 指令注册?

  • 0

我正在尝试在 Apache 2.4.38 (Debian) 下通过 SSL 安装 MyCollab CE。目前我看到 ProxyPass 无法识别。我有:

ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/

当我尝试加载 HTTPS 代理时,它给出 500 并且错误日志文件不存在。

我完整的 ...le-ssl.conf 文件读取,mmildly sanitized:

<IfModule mod_ssl.c>
<VirtualHost *:443>
    ServerName [FQDN]
    ServerAlias [FQDN]
    DocumentRoot /home/christos/foo
    ErrorLog /var/log/apache2/foo_error.log
    CustomLog /var/log/apache2/foo_access.log combined
    ServerAdmin [email]
    <Directory />
        Options FollowSymLinks
        AllowOverride None
    </Directory>
    <Directory /home/christos/foo/>
        Options ExecCGI Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        allow from all
    </Directory>
    ErrorLog ${APACHE_LOG_DIR}/mycollab.error.log
    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>
    ProxyPass / http://localhost:8080/
    ProxyPassReverse / http://localhost:8080/

SSLCertificateFile /etc/letsencrypt/live/[FQDN]/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/[FQDN]/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>

我启用了 ssl 和代理。

我该怎么做才能使通过 HTTPS 的访问在 SSL 下出现与通过 8080 直接连接相同的内容?

--更新--

我设置了警告的 LogLevel。在另一次(单次)尝试加载主页并指定 SSLEngine On 和 SSLProxyEngine on 之后,我在日志中得到以下内容:

[Sun Aug 22 16:28:47.065003 2021] [socache_shmcb:debug] [pid 28984] mod_socache_shmcb.c(495): AH00831: socache_shmcb_store (0xb0 -> subcache 16)
[Sun Aug 22 16:28:47.065086 2021] [socache_shmcb:debug] [pid 28984] mod_socache_shmcb.c(849): AH00847: insert happened at idx=0, data=(0:32)
[Sun Aug 22 16:28:47.065091 2021] [socache_shmcb:debug] [pid 28984] mod_socache_shmcb.c(854): AH00848: finished insert, subcache: idx_pos/idx_used=0/1, data_pos/data_used=0/210
[Sun Aug 22 16:28:47.065094 2021] [socache_shmcb:debug] [pid 28984] mod_socache_shmcb.c(516): AH00834: leaving socache_shmcb_store successfully
[Sun Aug 22 16:28:47.067256 2021] [socache_shmcb:debug] [pid 28983] mod_socache_shmcb.c(495): AH00831: socache_shmcb_store (0x2e -> subcache 14)
[Sun Aug 22 16:28:47.067316 2021] [socache_shmcb:debug] [pid 28983] mod_socache_shmcb.c(849): AH00847: insert happened at idx=2, data=(412:444)
[Sun Aug 22 16:28:47.067321 2021] [socache_shmcb:debug] [pid 28983] mod_socache_shmcb.c(854): AH00848: finished insert, subcache: idx_pos/idx_used=0/3, data_pos/data_used=0/622
[Sun Aug 22 16:28:47.067325 2021] [socache_shmcb:debug] [pid 28983] mod_socache_shmcb.c(516): AH00834: leaving socache_shmcb_store successfully
[Sun Aug 22 16:28:47.165562 2021] [ssl:debug] [pid 28984] ssl_engine_kernel.c(383): [client 73.74.173.201:51057] AH02034: Initial (No.1) HTTPS request received for child 8 (server [FQDN]:443)
[Sun Aug 22 16:28:47.165668 2021] [authz_core:debug] [pid 28984] mod_authz_core.c(846): [client 73.74.173.201:51057] AH01628: authorization result: granted (no directives)
[Sun Aug 22 16:28:47.165717 2021] [proxy:debug] [pid 28984] mod_proxy.c(1249): [client 73.74.173.201:51057] AH01143: Running scheme http handler (attempt 0)
[Sun Aug 22 16:28:47.165723 2021] [proxy:warn] [pid 28984] [client 73.74.173.201:51057] AH01144: No protocol handler was valid for the URL / (scheme 'http'). If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
[Sun Aug 22 16:28:47.165894 2021] [ssl:debug] [pid 28984] ssl_engine_io.c(1106): [client 73.74.173.201:51057] AH02001: Connection closed to child 8 with standard shutdown (server [FQDN]:443)
[Sun Aug 22 16:28:47.379646 2021] [ssl:debug] [pid 28983] ssl_engine_kernel.c(383): [client 73.74.173.201:51058] AH02034: Initial (No.1) HTTPS request received for child 7 (server [FQDN]:443), referer: https://[FQDN]/
[Sun Aug 22 16:28:47.379784 2021] [authz_core:debug] [pid 28983] mod_authz_core.c(846): [client 73.74.173.201:51058] AH01628: authorization result: granted (no directives), referer: https://[FQDN]/
[Sun Aug 22 16:28:47.379842 2021] [proxy:debug] [pid 28983] mod_proxy.c(1249): [client 73.74.173.201:51058] AH01143: Running scheme http handler (attempt 0), referer: https://[FQDN]/
[Sun Aug 22 16:28:47.379850 2021] [proxy:warn] [pid 28983] [client 73.74.173.201:51058] AH01144: No protocol handler was valid for the URL /favicon.ico (scheme 'http'). If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule., referer: https://[FQDN]/
[Sun Aug 22 16:28:47.380069 2021] [ssl:debug] [pid 28983] ssl_engine_io.c(1106): [client 73.74.173.201:51058] AH02001: Connection closed to child 7 with standard shutdown (server [FQDN]:443)
proxy reverse-proxy apache-2.4 lets-encrypt 500-error
  • 2 个回答
  • 305 Views
Martin Hope
Elmond
Asked: 2020-02-07 07:11:29 +0800 CST

已解决 - 500 内部服务器错误 Apache,htaccess 重定向

  • 0

因此,当我访问主域 www 上不存在的页面时,我只会收到正常的 404 错误,但是当我在 dsfds.test.com 之类的子域上访问它时,我会收到错误 500,并且在日志中我拥有这个:

[Thu Feb 06 15:46:41.935207 2020] [core:error] [pid 4744] [client 162.158.154.254:32186] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

这是我的 htaccess:

#    Mod_security can interfere with uploading of content such as attachments. If you
#    cannot attach files, remove the "#" from the lines below.
#<IfModule mod_security.c>
#    SecFilterEngine Off
#    SecFilterScanPOST Off
#</IfModule>

ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 500 default

<IfModule mod_rewrite.c>
RewriteEngine On

#    If you are having problems with the rewrite rules, remove the "#" from the
#    line that begins "RewriteBase" below. You will also have to change the path
#    of the rewrite to reflect the path to your XenForo installation.
#RewriteBase /xenforo

#    This line may be needed to enable WebDAV editing with PHP as a CGI.
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{HTTP_HOST} ^[^.]+\.[^.]+$
RewriteCond %{HTTPS}s ^on(s)|
RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]


RewriteCond %{HTTP_HOST} ^alphanetworkmc\.com$
RewriteCond %{REQUEST_URI} !^/anm
RewriteRule ^(.*)$ /anm/$1 [L] 

RewriteCond %{HTTP_HOST} ^www\.alphanetworkmc\.com$
RewriteCond %{REQUEST_URI} !^/anm
RewriteRule ^(.*)$ /anm/$1 [L] 

RewriteCond %{HTTP_HOST} ^analytics\.indst\.eu$
RewriteCond %{REQUEST_URI} !^/sa
RewriteRule ^(.*)$ /sa/$1 [L] 

RewriteRule ^favicon.ico favicon.ico [L]

RewriteCond %{HTTP_HOST} ^mail\.indst\.eu$
RewriteCond %{REQUEST_URI} !^/mail
RewriteRule ^(.*)$ /mail/$1 [L] 

RewriteCond %{HTTP_HOST} ^entertainment\.indst\.eu$
RewriteCond %{REQUEST_URI} !^/ent
RewriteRule ^(.*)$ /ent/$1 [L] 

RewriteCond %{HTTP_HOST} ^www\.statesanalytics\.com$
RewriteCond %{REQUEST_URI} !^/sa
RewriteRule ^(.*)$ /sa/$1 [L] 

RewriteCond %{HTTP_HOST} ^statesanalytics\.com$
RewriteCond %{REQUEST_URI} !^/sa
RewriteRule ^(.*)$ /sa/$1 [L] 

RewriteCond %{HTTP_HOST} ^recover\.indst\.eu$
RewriteCond %{REQUEST_URI} !^/mail/admin/
RewriteRule ^(.*)$ /mail/admin/$1 [L] 

RewriteCond %{HTTP_HOST} ^adminmail\.indst\.eu$
RewriteCond %{REQUEST_URI} !^/mail/admin/
RewriteRule ^(.*)$ /mail/admin/$1 [L] 

<If "req('Host') == 'recover.indst.eu'">
RedirectMatch 301 ^/mail/admin/users/login\.php$ /users/password-recover.php
RedirectMatch 301 ^/mail/admin/login\.php$ /users/password-recover.php
</if>

RewriteCond %{HTTP_HOST} mailrules\.indst\.eu$
RewriteRule ^(.*)$ https://www.alphanetworkmc.com/threads/e-mail-tos.21/$1 [L,R=301]


RewriteCond %{HTTP_HOST} ^mail\.alphanetworkmc\.com$
RewriteCond %{REQUEST_URI} !^/mail
RewriteRule ^(.*)$ /mail/$1 [L] 

RewriteCond %{HTTP_HOST} ^mail\.alphanetworkmc\.com [NC]
RewriteRule ^(.*)$ https://mail.indst.eu/$1 [R,L]

RewriteCond %{HTTP_HOST} ^bans\.alphanetworkmc\.com$
RewriteCond %{REQUEST_URI} !^/anm/bans
RewriteRule ^(.*)$ /anm/bans/$1 [L] 

RewriteCond %{HTTP_HOST} ^recover\.alphanetworkmc\.com$
RewriteCond %{REQUEST_URI} !^/mail/admin/
RewriteRule ^(.*)$ /mail/admin/$1 [L] 

RewriteCond %{HTTP_HOST} ^recover\.alphanetworkmc\.com [NC]
RewriteRule ^(.*)$ https://recover.indst.eu/$1 [R,L]

RewriteCond %{HTTP_HOST} ^adminmail\.alphanetworkmc\.com$
RewriteCond %{REQUEST_URI} !^/mail/admin/
RewriteRule ^(.*)$ /mail/admin/$1 [L] 

RewriteCond %{HTTP_HOST} ^adminmail\.alphanetworkmc\.com [NC]
RewriteRule ^(.*)$ https://adminmail.indst.eu/$1 [R,L]

<If "req('Host') == 'recover.alphanetworkmc.com'">
RedirectMatch 301 ^/mail/admin/users/login\.php$ /users/password-recover.php
RedirectMatch 301 ^/mail/admin/login\.php$ /users/password-recover.php
</if>

<If "req('Host') == 'recover.indst.eu'">
RedirectMatch 301 ^/mail/admin/users/login\.php$ /users/password-recover.php
RedirectMatch 301 ^/mail/admin/login\.php$ /users/password-recover.php
</if>

RewriteCond %{HTTP_HOST} mailrules\.alphanetworkmc\.com$
RewriteRule ^(.*)$ https://www.alphanetworkmc.com/threads/e-mail-tos.21/$1 [L,R=301]

RewriteCond %{HTTP_HOST} ^mailrules\.alphanetworkmc\.com [NC]
RewriteRule ^(.*)$ https://mailrules.indst.eu/$1 [R,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
</IfModule>

# php -- BEGIN cPanel-generated handler, do not edit
#Set the “ea-php70” package as the default “PHP” programming language.
<IfModule mime_module>
AddType application/x-httpd-ea-php70___lsphp .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit

我的 VPS 上有许多不同的网站,其中包含许多子域重定向。

这是网络错误:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.
Apache/2.4.25 (Debian) Server at entertainment.indst.eu Port 80

非常感谢您的帮助。

web-server .htaccess mod-rewrite apache2 500-error
  • 1 个回答
  • 9492 Views
Martin Hope
Waqas Tariq
Asked: 2017-04-12 12:16:37 +0800 CST

上传页面上的 HTTP 错误 500 - Lightsail (AMI)

  • 0

我在 Amazon Lightsail (AMI) 实例上有一个基于 PHP 的站点。该网站最近从 Godaddy 移出。

整个网站运行良好,除了;

  1. 多个页面上的随机 '*/?>'。
  2. 用于将文件上传到服务器的页面上的 HTTP ERROR 500。

我尝试过的事情;

  1. 更改文件权限。当前文件权限设置为(在旧服务器上相同)。html中所有文件的文件权限都相同

    [ec2-user@ip www]$ ll
    总计 20
    drwxrwsr-x 2 root www 4096 Jan 19 16:56 cgi-bin
    drwxrwsr-x 3 root www 4096 Apr 10 14:19 错误
    drwxrwsr-x 29 root www 4096 Apr 10 19 :07 html
    drwxrwsr-x 3 根 www 4096 4 月 10 日 14:19 图标
    drwxrwsr-x 2 根 www 4096 4 月 10 日 14:19 noindex

对实际文件的文件权限;

-rw-rw-r-- 1 ec2-user www   7144 Apr 10 18:51 out.AddDocument.php
  1. 将 /etc/httpd/conf/httpd.conf 中的 AllowOverride 更改为 All(从 None)

  2. php的内容(out.AddDocument.php);https://pastebin.com/JyG20qpX

500-error
  • 1 个回答
  • 834 Views
Martin Hope
shenkwen
Asked: 2017-03-09 07:50:48 +0800 CST

我在哪里可以找到在 Ubuntu 14.4 上运行 Joomla 时记录的 500 个错误?

  • 0

小故事:打开页面时出现 500 错误,但是当我查看错误日志时,没有任何关于此错误的信息。我认为前端的每 500 个错误都应该记录在某个地方,对吗?如果是,错误日志在哪里?

长版:我正在将我的 Joomla 网站从 3.6.2 升级到 3.6.5。是安全升级,之前本站因未及时升级被黑。在我网站的后端,当我点击“安装升级”时,我得到一个 500 页面。我在 Linode (Ubuntu 14.04) 上托管了我的网站,并使用 webmin/virtualmin 来管理服务器。对于托管在具有相同设置的同一台机器上的其他站点,如果我收到 500 错误,我可以从 webmin 的界面查看 apache 错误日志,我认为这是所有 apache/php 错误的地方记录下来。但这一次,错误日志中没有任何内容。所以我想知道是否有任何500错误无法记录在日志中?或者也许这个错误记录在其他地方?如何找到日志?

linux log-files joomla linode 500-error
  • 1 个回答
  • 3759 Views
Martin Hope
webworm
Asked: 2014-04-18 12:38:10 +0800 CST

读取 IIS 错误日志 - 状态和子状态

  • 1

在尝试对 IIS 错误进行故障排除时,我遇到了一个指南,该指南讨论了 IIS 日志中的错误代码。

修复任何 IIS / ASP.NET 错误需要知道的 4 个服务器日志

该帖子使用 IIS 日志文件的以下摘录...

2013-06-16 03:39:19 ::1 GET /test.aspx mincase=80 80 - ::1 - 500 16 0 3173

文章接着说 500 代表状态代码,而 16 是子状态代码。但是,当我尝试通过 Google 搜索状态码时,我总是看到它被称为500.16. 这本质上是引用相同错误代码的两种不同方式吗?500 16和和有区别500.16吗?

500-error
  • 1 个回答
  • 1120 Views
Martin Hope
Greg B
Asked: 2012-07-16 13:25:26 +0800 CST

当没有任何内容写入事件日志时,如何诊断 IIS 7.5 上的 500 内部服务器错误?

  • 65

我刚刚部署了对现有 ASP.NET MVC3 站点的更新(它已经配置好),我收到 IIS 蓝屏死机说明

HTTP 错误 500.0 - 内部服务器错误
由于发生内部服务器错误,页面无法显示。

然而; 应用程序事件日志中没有显示任何内容,我希望在其中看到该条目的(更多)详细描述。

我该如何诊断这个问题?

iis-7.5 asp.net-mvc windows-event-log 500-error
  • 6 个回答
  • 283748 Views
Martin Hope
Tobias
Asked: 2012-06-27 04:00:19 +0800 CST

如何为重定向的 Zope 创建 Apache 错误页面

  • 0

我有一些虚拟主机重定向到 Zope 服务器进程:

RewriteRule ^/(.*) http://localhost:8080/VirtualHostBase/http/%{HTTP_HOST}:80/theroot/VirtualHostRoot/$1 [L,P]

当然,如果 Zope 进程没有运行,重定向就会失败。这可能发生在实例重启期间(例如更新),或者对于不应一直运行的开发/测试实例。在这种情况下,我想有一个友好的消息。

因此,为了错误处理的唯一目的,我定义了一个 DocumentRoot:

DocumentRoot /var/zope-instances/my-instance/htdocs
ErrorDocument 500 /error-500.html
ErrorDocument 503 /error-500.html

不幸的是,它不起作用;在 Zope 关闭时尝试访问页面时,Apache 告诉我:

由于维护停机或容量问题,服务器暂时无法为您的请求提供服务。请稍后再试。

此外,在尝试使用 ErrorDocument 处理请求时遇到了 503 Service Temporarily Unavailable 错误。

错误文档是世界可读的;目录是世界可执行的。

我该怎么做才能让错误页面运行?由于 mod_rewrite,有什么特别需要考虑的吗?

apache-2.2 custom-errors 500-error errordocument zope
  • 1 个回答
  • 1071 Views
Martin Hope
Andy Shinn
Asked: 2012-06-17 12:08:26 +0800 CST

即使启用了所有错误报告,PHP 仍显示空白页面

  • 1

我正在尝试调试 Drupal 应用程序中的损坏页面,并且很难让 PHP 吐出任何有用的东西。我有以下设置:

error_reporting = E_ALL
display_errors = On
display_startup_errors = On
log_errors = On
error_log = /var/log/php/php_error.log

我有一个显示 phpinfo() 的文件,它确认这些变量已针对环境正确设置。我已将 memory_limit 增加到 256M(这应该绰绰有余)。然而,我得到的唯一指示是 apache 访问日志中的状态 500 代码和来自 PHP 的空白页面。

Apache 虚拟主机将 LogLevel 设置为调试,错误日志仅输出:

[Sat Jun 16 20:03:03 2012] [debug] mod_deflate.c(615): [client 173.8.175.217] Zlib: Compressed 0 to 2 : URL /index.php, referer: http://ec2-174-129-192-237.compute-1.amazonaws.com/admin/reports/updates
[Sat Jun 16 20:03:03 2012] [error] [client 173.8.175.217] File does not exist: /var/www/favicon.ico
[Sat Jun 16 20:03:03 2012] [debug] mod_deflate.c(615): [client 173.8.175.217] Zlib: Compressed 42 to 44 : URL /favicon.ico

PHP 错误日志根本不输出任何内容。内核和系统日志显示与 Apache 或 PHP 无关。我还尝试安装 suphp 并检查其日志以确认用户正在正确执行:

[Sat Jun 16 20:02:59 2012] [info] Executing "/var/www/index.php" as UID 1000, GID 1000
[Sat Jun 16 20:05:03 2012] [info] Executing "/var/www/index.php" as UID 1000, GID 1000

这是在具有以下 PHP 模块的 Ubuntu 12.04 x86_64 上:

ii  php5                             5.3.10-1ubuntu3.1          server-side, HTML-embedded scripting language (metapackage)
ii  php5-cgi                         5.3.10-1ubuntu3.1          server-side, HTML-embedded scripting language (CGI binary)
ii  php5-cli                         5.3.10-1ubuntu3.1          command-line interpreter for the php5 scripting language
ii  php5-common                      5.3.10-1ubuntu3.1          Common files for packages built from the php5 source
ii  php5-curl                        5.3.10-1ubuntu3.1          CURL module for php5
ii  php5-gd                          5.3.10-1ubuntu3.1          GD module for php5
ii  php5-mysql                       5.3.10-1ubuntu3.1          MySQL module for php5

那么,我在这里错过了什么?为什么没有报错?

ubuntu php apache-2.2 drupal 500-error
  • 1 个回答
  • 8277 Views
Martin Hope
John Brunner
Asked: 2012-06-10 09:51:15 +0800 CST

运行有缺陷的 php 文件导致错误 500

  • 1

当我处理一个 PHP 文件时,我总是收到错误 500。我查看了我的 Apache 服务器的日志,这显示includesPHP 文件中的一些地址文件在服务器上不存在。它们不存在,因为我只是在测试我的 PHP 文件。但是是否可以实现服务器在任何情况下都运行 php 文件,即使出现问题?

每 30 秒就会在 error_log 文件中创建一个条目,内容为[Sat Jun 09 17:55:07 2012] [error] [client 10.224.55.160] File does not exist: /var/www/html/index.html……但是有一个 index.html?!

php apache-2.2 500-error
  • 1 个回答
  • 303 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • 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

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助
subwaysurfers
my femboy roommate

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve