2013-10-25 51 views
1

我決定試用Windows Azure來託管Wordpress。因此,我使用Azure中的網站選項從圖庫中創建了全新的Wordpress安裝。在Azure上安裝Fresh Wordpress無法更新到3.7

這是我所得到的,當我嘗試更新到3.7

Downloading update from http://wordpress.org/wordpress-3.7-no-content.zip… 
Unpacking the update… 
Verifying the unpacked files… 
Preparing to install the latest version… 
Enabling Maintenance mode… 
Copying the required files… 
Disabling Maintenance mode… 
Could not copy file.: index.php 
Installation Failed 

任何想法,爲什麼發生這種情況?

+0

我有同樣的問題。如果您查看php_errors.log文件,您可能會看到更多詳細信息。我正在抱怨權限。 PHP警告:複製(C:/ DWASFiles/Sites/[site] /VirtualDirectory0/site/wwwroot/index.php):無法打開流:C:\ DWASFiles \ Sites \ [site] \ VirtualDirectory0 \ site \第200行的wwwroot \ wp-admin \ includes \ class-wp-filesystem-direct.php現在,只需確定它所不具備的權限即可。 –

+0

一旦你找出了權限,聽起來就像是一個很好的回帖。但就目前而言,這不僅僅是一個回答而是一個評論。 –

+0

哎呀,我應該發表了一條評論,對不起:( –

回答

0

我遇到了同樣的問題,並得到了與Jef相同的錯誤信息。要修復它做到以下幾點:

開放的wp-config.php文件,並刪除/刪除/註釋掉的代碼行:

define('FS_METHOD','direct'); 
    define('FS_CHMOD_DIR',0777); 
    define('FS_CHMOD_FILE',0666); 

現在添加幾行代碼:

define('FS_CHMOD_DIR', (0755 & ~ umask())); 
    define('FS_CHMOD_FILE', (0644 & ~ umask())); 

保存並上傳wp-config.php。轉到您的儀表板並運行更新。您將被要求輸入您的ftp用戶名和密碼。

+0

嗨,我試過了(因爲我和OP有同樣的問題),但不幸的是它沒有解決問題 - wordpress更新系統不會請求證書。使用ftp證書可能是一種方法,將會測試這個很快http://codex.wordpress.org/Editing_wp-config.php#WordPress_Upgrade_Constants? –

+0

@StepLocke - 你是否得到了這個工作?一年後我遇到了同樣的問題,但它與WordPress的V4相同。 – Aligned