IIS Plesk Shared Hosting Wordpress 开始无缘无故地为某些文件提供 500.50 错误

IIS Plesk Shared Hosting Wordpress started to give 500.50 error out of nowhere for some files

我在使用 Plesk 的共享 IIS 主机上安装了 Wordpress。今天,就其本身而言,我上传的一些文件开始出现此错误:

HTTP Error 500.50 - URL Rewrite Module Error. The page cannot be displayed because an internal server error has occurred.

Most likely causes: IIS received the request; however, an internal error occurred during the processing of the request. The root cause of this error depends on which module handles the request and what was happening in the worker process when this error occurred. IIS was not able to access the web.config file for the Web site or application. This can occur if the NTFS permissions are set incorrectly. IIS was not able to process configuration for the Web site or application. The authenticated user does not have permission to use this DLL. The request is mapped to a managed handler but the .NET Extensibility Feature is not installed.

Things you can try: Ensure that the NTFS permissions for the web.config file are correct and allow access to the Web server's machine account. Check the event logs to see if any additional information was logged. Verify the permissions for the DLL. Install the .NET Extensibility feature if the request is mapped to a managed handler. Create a tracing rule to track failed requests for this HTTP status code. For more information about creating a tracing rule for failed requests, click here.

有趣的是,上传文件时,会创建其他维度版本,我 没问题 访问这些版本。但是当我尝试访问原始文件时,出现了该错误。当我尝试检查我的 Plesk 控制面板上的文件权限时,wp-contentuploads 文件夹确实对我的用户具有写权限,但是当我检查有问题的文件时,Plesk 无法访问它也来自控制面板:

Unable to get the object (C:\Inetpub\vhosts\PATH-TO-MY-IMAGE) security info: (5) Access is denied. at execute "C:\Program Files (x86)\Parallels\Plesk\admin\bin\filemng.exe" MY_USER_NAME --permissions --list-common "--file=C:\Inetpub\vhosts\PATH-TO-MY-IMAGE" "--accounts=tmpB575.tmp"(RunTime::RunAsUser::run line 260) (Error code 1) ---------------------- Debug Info -------------------------------

我什至无法读取该文件的权限。尝试使用 FileZilla 删除文件也会导致错误。这发生在今天的一些文件上,而不是其他文件,无论上传顺序、文件名或类型如何。

我查看了很多关于此的页面,但它们都指向一件事:编辑 PHP.ini 文件以更改上传文件夹。经过一番搜索后,我创建了一个新的 PHP.ini,如下所示:

upload_tmp_dir = "C:\Inetpub\vhosts\PATH_TO_A_FOLDER_THAT_I_CAN_WRITE_TO_IN_MY_HTTPDOCS_FOLDER"

已将其上传到我的 httpdocs 文件夹,从 Plesk 重新启动我的应用程序池,但无济于事。我尝试上传新文件,但仍然出现相同的错误。我不明白的是,为什么这种情况今天开始发生,为什么这种情况完全随机发生(我没有更改任何设置,我已经好几个星期没有进入任何设置页面了)。这是否与我的配置有关,或者我应该联系我的托管服务提供商?

原来是他们这边我的托管公司的问题。没办法了