Skip to content
Advertisement

How to disable a php module without phpdismod?

I am using Nginx 1.16.1 with rh-php73/rh-php73-php-fpm-7.3 on Centos 7.8.

I can’t find how to disable a PHP module, can someone help me?

Advertisement

Answer

I can disable a module if I comment the “loading line” (;extension=exif for exemple) directly in the original file but I’m not sure if this is the right way to do.

/etc/opt/rh/rh-php73/php.d$
20-bcmath.ini
20-bz2.ini
20-calendar.ini
20-ctype.ini
20-curl.ini
20-dom.ini
20-exif.ini
20-fileinfo.ini
20-ftp.ini
20-gettext.ini
20-iconv.ini
20-json.ini
20-mbstring.ini
20-mysqlnd.ini
20-pdo.ini
20-phar.ini
20-posix.ini
20-shmop.ini
20-simplexml.ini
20-sockets.ini
20-sqlite3.ini
20-sysvmsg.ini
20-sysvsem.ini
20-sysvshm.ini
20-tokenizer.ini
20-xml.ini
20-xmlwriter.ini
20-xsl.ini
20-zip.ini
30-mysqli.ini
30-pdo_mysql.ini
30-pdo_sqlite.ini
30-wddx.ini
30-xmlreader.ini

I didn’t find symlinks to these files.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement