我想使用ngnix运行drupal,但是一旦我安装了Ngnix,Drupal,我就会看到:
Drupal requires you to enable the PHP extensions in the following list
(see the system requirements page for more information):
dom
gd
pdo
我有一个php脚本,显示这些模块没有加载:
<?php
$dom = extension_loaded( 'dom');
$gd = extension_loaded( 'gd')
我已经知道了一般的修复方法:将设置"short_open_tag=On“放在php.ini中,然后重新启动您正在使用的任何服务器,但是对于阿尔卑斯Linux,情况有点复杂。 通过命令apk add php7安装的php7包似乎附带了一个嵌入到php可执行文件中的预先配置的“配置命令”,其中一个指定的配置选项是'--disable-short-tags'。为了进行演示,下面是创建一个简单的docker容器后的php -i输出: phpinfo()
PHP Version => 7.3.13
System => Linux 9ea27eea7b8e 4.9.
"PHP模块gd:缺失“我收到了这样一个错误。我正在尝试安装php5-gd。
apt-get install php5-gd
我正在使用Ubuntu16.10和PHP版本7,我做了所有的更新。
当我试图安装php5-gd时,出现了如下所示的错误。
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php5-gd is not available, but is referred to by another package.
Thi
首先,我见过其他类似的问题,但并不完全相同。我是新手php,只是用它来安装Wordpress.org。
问题是我的网站一片空白,即使MySQL服务器指示灯是绿色的,也无法加载php_mysql.dll。下面是phperror的错误日志:
[08-Aug-2017 00:57:23 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\MAMP\bin\php\php7.1.5\ext\php_mysql.dll' - The specified module could not be found.
在将php5升级到php7之后,当我想要apt-get install phpmyadmin时,我会得到这个错误
The following packages have unmet dependencies:
phpmyadmin : Depends: libapache2-mod-php5 but it is not going to be installed or
libapache2-mod-php5filter but it is not going to be installed or
ph
我在安装GD库时遇到问题。我使用的是带有PHP 5.2.14的IIS服务器。我在php.ini中取消了extension=php_gd2.dll的注释。
这是错误:
gd: Unable to initialize module
Module compiled with module API =20060613
PHP compiled with modlule API = 20090626
These options need to match
in Unknown on Line 0
我下载了各种PHP版本来尝试获得正确的DLL,包括线程安全的5.2.14。然后,我会重新启动应用程序池
我在开发服务器上运行Debian测试。不幸的是,我不得不同时使用mysqli (不包括在php7中)和php7。
cat /etc/问题
Debian GNU/Linux stretch/sid
apt-获取安装php5-gd
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible
在我的Premake5脚本中,我实现了一个函数,它将根据当前的设置返回boost库的名称(如果它是调试配置,则为-gd;如果需要多线程,则为-mt )。在我的第一次尝试中,我得到了这个:
name = "boost_" .. name
...
filter "configurations:Debug*"
name = name .. "-gd"
...
links { name }
这显然是不正确的:无论我们是否正在评估调试配置,-gd都将被追加到名称中。类似于:
name = "boost_" .. name
...
i
我试图在我的机器上配置PHP7.4和Apache2.4,但是它返回了以下错误:
httpd.exe: Syntax error on line 542 of C:/XIDServer/Apache24/conf/httpd.conf:
Can't locate API module structure 'php7_module' in file C:/XIDServer/php/php7.dll: No error
我的httpd.conf的底部有以下代码:
# PHP7 module
AddHandler application/x-httpd-php .php
A