简体   繁体   English

上传在IIS7上运行的Wordpress中的插件

[英]Upload plugins in Wordpress running on IIS7

I have a problem when trying to manually upload a new plugin in wordpress. 尝试在wordpress中手动上传新插件时遇到问题。 Uploading media is working perfectly, and also automatically install plugins work as it should, but manually uploading plugins generate an error message: 上传媒体工作正常,并且自动安装插件工作正常,但手动上传插件会生成错误消息:

The uploaded file could not be moved to C:\\inetpub\\wwwroot\\Wordpress/wp-content/uploads/2010/11.

I have checked permissions on wp-content and uploads and it is set to Everyone . 我已经检查了wp-contentuploads权限, uploads其设置为Everyone I do not think there is anything wrong with permissions since I can upload images, and I see them inside my uploads folder. 我不认为权限有任何问题,因为我可以上传图像,我在上传文件夹中看到它们。

I think there might be a problem with the slashes beeing incorrect, does anyone else have this problem? 我认为斜线可能存在问题不正确,有没有其他人有这个问题?

I'm using IIS7, Windows Server 2008 and Wordpress 3.0.1. 我正在使用IIS7,Windows Server 2008和Wordpress 3.0.1。 Everything is installed with Microsoft Web Platform Installer. 一切都通过Microsoft Web Platform Installer安装。

I know this is way late in answering, but I hope someone may find it useful. 我知道这是回答问题的后期,但是我希望有人会觉得有用。

This is most likely a problem with the settings involving the temporary upload location. 这很可能是涉及临时上载位置的设置的问题。

Here is what I did to solve a similar problem: 以下是我为解决类似问题所做的工作:

  1. Ensure that you are editing the correct initialization file. 确保您正在编辑正确的初始化文件。 Putting: in a test.php file and executing it from your web browser will get you the setting. 将:放在test.php文件中,然后从网络浏览器执行该设置即可。

Look for the setting for "Loaded Configuration File" 查找“已加载配置文件”的设置

  1. In that configuration file search for (or add if missing) the following setting: upload_tmp_dir = "c:\\inetpub\\temp\\uploads" 在该配置文件中搜索(或添加,如果缺少)以下设置:upload_tmp_dir =“ c:\\ inetpub \\ temp \\ uploads”

  2. Ensure that c:\\inetpub\\temp\\uploads exists and is writeable by everyone. 确保c:\\ inetpub \\ temp \\ uploads存在并且每个人都可写。 You can tighten this up with specifying the IUSR account if you wish. 如果您愿意,可以通过指定IUSR帐户来加强这一点。

  3. Recycle/Restart the IIS worker process. 回收/重新启动IIS工作进程。 Your choice here as there are a number of ways to accomplish this. 您可以在此选择,因为有很多方法可以实现这一目标。

I found a good bit of this info by referring to c:\\tmp\\php_errors.txt. 我通过引用c:\\ tmp \\ php_errors.txt找到了很多此类信息。 The fastcgi.logging should be enabled by default on windows installations. 默认情况下,应在Windows安装上启用fastcgi.logging。

Just wanna add a solution to the good Harold's answer for PHP. 只是想为PHP的Harold答案添加一个解决方案。

Despite changing the setting "upload_tmp_dir", I was still getting the same error message The uploaded file could not be moved to C:\\inetpub\\wwwroot\\Wordpress/wp-content/uploads . 尽管更改了设置“ upload_tmp_dir”,但我仍然收到相同的错误消息:无法将上载的文件移动到C:\\ inetpub \\ wwwroot \\ Wordpress / wp-content / uploads

So i have changed also the setting "upload_max_filesize" 所以我也更改了设置“ upload_max_filesize”

upload_max_filesize=16M 的upload_max_filesize = 16M

(16M or greater depending on the wordpress's themes size file) (16M或更大,取决于wordpress的主题大小文件)

Hope it helps someone who was stuck like me. 希望它可以帮助那些像我一样被困的人。

With Filezilla 使用Filezilla

directory uploads>2010>11 to set permision 777 目录上传> 2010> 11设置permision 777

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM