2017-02-22 488 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