2017-02-22 151 views
0

我在免費層上使用了azure的php網站。除了需要sqlite3 dll的sqlite3之外,一切運作良好。Azure網站FastCGI進程意外退出

我下載的DLL並做了什麼,在這裏說:

https://social.msdn.microsoft.com/Forums/en-US/42bf076d-883e-4818-8585-7bfedff1ff5c/how-to-enable-sqlite3-for-php-in-azure-websites?forum=windowsazurewebsitespreview

以下是完整的錯誤:

HTTP Error 500.0 - Internal Server Error D:\Program Files (x86)\PHP\v7.0\php-cgi.exe - The FastCGI process exited unexpectedly

之後,我得到這個錯誤,很顯然,我沒有D:\Program Files (x86)\PHP\v7.0\php-cgi.exe在天藍色的網站。

我沒有在我的代碼中的任何地方映射的路徑!

在PHP錯誤日誌,我有

PHP Warning: PHP Startup: Unable to load dynamic library 'D:\home\site\wwwroot\bin\php_sqlite3.php' - The specified module could not be found. in Unknown on line 0

我沒有一個php.ini

+0

你能檢查什麼是寫在日誌中,例如: php_error.log? –

+0

PHP警告:PHP啓動:無法加載動態庫'D:\ home \ site \ wwwroot \ bin \ php_sqlite3.php' - 指定的模塊找不到。 在未知在線0 –

+0

不應動態庫('.dll')在'PHP/EXT /'文件夾?也許'php_sqlite3.dll' ... CGI是否使用'php.ini',如果是,請在那裏檢查。 –

回答

0

我跟着你提供了the link的步驟,並能正常工作在我的身邊。

下面是詳細的步驟我的嘗試:它是包含在PHP的Windows分發

  1. 下載php_sqlite3.dll

enter image description here

  • php_sqlite3.dllD:\home\site\wwwroot\bin目錄上與天青PTP工具。
  • enter image description here

  • 瀏覽在Azure Portal網絡應用程序。
  • 點擊應用程序設置並滾動到應用程序設置部分。
  • 創建一個PHP_EXTENSIONS密鑰。此密鑰的值爲:bin\php_sqlite3.dll
  • enter image description here

  • 點擊保存按鈕的的Web應用設置葉片頂部。
  • 現在您可以檢查sqlite3是否安裝正確,輸出爲phpinfo()函數。

    enter image description here