How to install php extensions on centos 8

I want lớn run Drupal using Ngnix, but once I"ve installed ngnix, drupal, I see this:

Drupal requires you lớn enable the PHP extensions in the following danh mục (see the system requirements page for more information): dom gd pdoI have sầu php script that shows these modules aren"t loaded:

Hello Bogus Drupal, from Tommy the Geek

"; emang đến "GD: ", extension_loaded("gd") ? "OK" : "MISSING", ""; emang đến "dom: ", extension_loaded("dom") ? "OK" : "MISSING", ""; emang đến "PDO: ", extension_loaded("pdo") ? "OK" : "MISSING", ""; emang lại "zip: ", extension_loaded("zip") ? "OK" : "MISSING", "";?>

The đầu ra looks lượt thích this:

GD: MISSINGdom: MISSINGPDO: MISSINGzip: OKeven though "php -m" shows the modules are available to lớn the commvà line interface:

# php -m | grep domgdPDOpdo_sqlitewddx. How can I make them available khổng lồ the website server?


php module
Share
Follow
edited May 18 "18 at 1:03
freeislandguy
asked May 17 "18 at 18:15
*

freeislandguyfreeislandguy
11111 gold badge11 silver badge77 bronze badges
2
Add a phản hồi |

3 Answers 3


Active sầu Oldest Votes
6
Assuming you are using a Virtual Machine from Google, Running Centos 7:

Find the php extensions, for instance:

# find / -name wddx.so/usr/lib64/php/modules/wddx.soFind the php.ini:

# find / -name php.ini/etc/php.iniEdit php.ini and change extension_dir directive:

; Directory in which the loadable extensions (modules) reside.extension_dir = "/usr/lib64/php/modules/"
Share
Follow
edited May 12 at 23:37

*

Romein77
3144 bronze badges
answered May 17 "18 at 18:16
*

freeislandguyfreeislandguy
11111 gold badge11 silver badge77 bronze badges
0
Add a comment |
1
Had the same issue, this is what worked for me.

Bạn đang xem: How to install php extensions on centos 8

service php-fpm restart

Might need to lớn vì service php72-fpm restart depending on version.

You can run ps -ef | grep php lớn try to lớn understand the service name based on the processes that are running.

Xem thêm: Tải Phần Mềm Lý Thuyết Lái Xe A1 A2 200 Câu Hỏi, Thi Bằng Lái Xe Máy A1


Share
Follow
answered Oct 22 "đôi mươi at 8:53
*

DanDan
1133 bronze badges
Add a bình luận |
0

Share
Follow
answered Nov 14 "đôi mươi at 14:48
*

freeislandguyfreeislandguy
11111 gold badge11 silver badge77 bronze badges
Add a phản hồi |

Your Answer


Thanks for contributing an answer to Stack Overflow!

Please be sure lớn answer the question. Provide details & chia sẻ your research!

But avoid

Asking for help, clarification, or responding to other answers.Making statements based on opinion; baông xã them up with references or personal experience.

To learn more, see our tips on writing great answers.

Xem thêm: Những Cung Hoàng Đạo Giỏi Che Giấu Cảm Xúc Nhất, 5 Cung Hoàng Đạo Là Người Giỏi Che Giấu Cảm Xúc


Draft saved
Draft discarded

Sign up or log in


Sign up using Google
Sign up using Facebook
Sign up using Email và Password
Submit

Post as a guest


Name
E-Mail Required, but never shown


Post as a guest


Name
Thư điện tử

Required, but never shown


Post Your Answer Discard

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy


Not the answer you're looking for? Browse other questions tagged php module or ask your own question.


The Overflow Blog
Linked
0
php73-mbstring is installed but not shwoing in phpinfo tệp tin and magento websitet is not working
Related
2773
How can I prevent SQL injection in PHP?
2751
Deleting an element from an array in PHP.
1213
Secure hash and salternative text for PHP. passwords
2809
What is __init__.py for?
1599
startsWith() và endsWith() functions in PHP
1841
How vị I get PHPhường errors khổng lồ display?
2199
How vày you parse and process HTML/XML in PHP?
4748
Reference — What does this symbol mean in PHP?
2137
How does PHPhường. 'foreach' actually work?
2592
Why shouldn't I use mysql_* functions in PHP?
Hot Network Questions more hot questions

Question feed
Subscribe to RSS
Question feed To subscribe khổng lồ this RSS feed, copy and paste this URL into your RSS reader.


lang-php
Staông chồng Overflow
Products
Company
Staông chồng Exchange Network
site kiến thiết / hình ảnh © 2021 Staông chồng Exchange Inc; user contributions licensed under cc by-sa. rev2021.7.13.39733


Stack Overflow works best with JavaScript enabled
*

Your privacy

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device và discthua trận information in accordance with our Cookie Policy.


Chuyên mục: