Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/256.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 调用未定义的函数shmop_open()_Php_Shared Memory_Whm - Fatal编程技术网

Php 调用未定义的函数shmop_open()

Php 调用未定义的函数shmop_open(),php,shared-memory,whm,Php,Shared Memory,Whm,我似乎无法访问任何共享内存功能 我正在运行PHP7.1,它是使用EasyApache4配置的 根据我对文档的理解,shmop在默认情况下应该存在。在Easy Apache中,我没有看到任何与共享内存相关的特定扩展选项 下面是由phpinfo()m显示的Configure命令,它似乎包括所需的--enable shmop './configure' '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--targe

我似乎无法访问任何共享内存功能

我正在运行PHP7.1,它是使用EasyApache4配置的

根据我对文档的理解,shmop在默认情况下应该存在。在Easy Apache中,我没有看到任何与共享内存相关的特定扩展选项

下面是由phpinfo()m显示的Configure命令,它似乎包括所需的--enable shmop

'./configure' '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--target=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/opt/cpanel/ea-php71/root/usr' '--exec-prefix=/opt/cpanel/ea-php71/root/usr' '--bindir=/opt/cpanel/ea-php71/root/usr/bin' '--sbindir=/opt/cpanel/ea-php71/root/usr/sbin' '--sysconfdir=/opt/cpanel/ea-php71/root/etc' '--datadir=/opt/cpanel/ea-php71/root/usr/share' '--includedir=/opt/cpanel/ea-php71/root/usr/include' '--libdir=/opt/cpanel/ea-php71/root/usr/lib64' '--libexecdir=/opt/cpanel/ea-php71/root/usr/libexec' '--localstatedir=/opt/cpanel/ea-php71/root/usr/var' '--sharedstatedir=/opt/cpanel/ea-php71/root/usr/com' '--mandir=/opt/cpanel/ea-php71/root/usr/share/man' '--infodir=/opt/cpanel/ea-php71/root/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib64' '--with-config-file-path=/opt/cpanel/ea-php71/root/etc' '--with-config-file-scan-dir=/opt/cpanel/ea-php71/root/etc/php.d' '--disable-debug' '--with-pic' '--without-pear' '--with-bz2' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-sockets' '--with-kerberos' **'--enable-shmop'** '--with-libxml-dir=/usr' '--with-system-tzdata' '--with-mhash' '--libdir=/opt/cpanel/ea-php71/root/usr/lib64/php' '--enable-pcntl' '--enable-opcache' '--disable-opcache-file' '--enable-phpdbg' '--with-imap=shared,/opt/cpanel/ea-php71/root/usr' '--with-imap-ssl' '--enable-mbstring=shared' '--enable-mbregex' '--with-gd=shared' '--with-gmp=shared' '--enable-calendar=shared' '--enable-bcmath=shared' '--with-bz2=shared' '--enable-ctype=shared' '--enable-dba=shared' '--with-db4=/usr' '--with-tcadb=/usr' '--enable-exif=shared' '--enable-ftp=shared' '--with-gettext=shared' '--with-iconv=shared' '--enable-sockets=shared' '--enable-tokenizer=shared' '--with-xmlrpc=shared' '--with-ldap=shared' '--with-ldap-sasl' '--enable-mysqlnd=shared' '--with-mysqli=shared,mysqlnd' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--enable-dom=shared' '--with-pgsql=shared' '--enable-simplexml=shared' '--enable-xml=shared' '--enable-wddx=shared' '--with-snmp=shared,/usr' '--enable-soap=shared' '--with-xsl=shared,/usr' '--enable-xmlreader=shared' '--enable-xmlwriter=shared' '--with-curl=shared,/opt/cpanel/libcurl' '--enable-pdo=shared' '--with-pdo-odbc=shared,unixODBC,/usr' '--with-pdo-mysql=shared,mysqlnd' '--with-pdo-pgsql=shared,/usr' '--with-pdo-sqlite=shared,/usr' '--with-sqlite3=shared,/usr' '--enable-json=shared' '--enable-zip=shared' '--without-readline' '--with-libedit' '--with-pspell=shared' '--enable-phar=shared' '--with-mcrypt=shared,/opt/cpanel/libmcrypt' '--with-tidy=shared,/opt/cpanel/libtidy' '--enable-sysvmsg=shared' '--enable-sysvshm=shared' '--enable-sysvsem=shared' **'--enable-shmop=shared'** '--enable-posix=shared' '--with-unixODBC=shared,/usr' '--enable-intl=shared' '--with-icu-dir=/usr' '--with-enchant=shared,/usr' '--with-recode=shared,/usr' '--enable-fileinfo=shared' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'target_alias=x86_64-redhat-linux-gnu'
关于我可以尝试/检查什么,有什么建议吗


感谢

经过一些挖掘,我发现php shm扩展在公共包(已安装)中,但它似乎依赖于进程包(未安装)中的一些sysv扩展

一旦我添加了流程包,shmop函数就开始工作了


希望这能对其他人有所帮助。

总结一下@xtempore的答案

在CentOS 8中,运行:

dnf -y install php-process