How to enable more php extensions on Gentoo server?

General Tech Bugs & Fixes 2 years ago

0 2 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

I have working apache/php/mysql on my Gentoo server. But I have to enable some extensions in php (json, exif).

I did:

USE="dev-lang/php json exif" emerge dev-lang/php

Please, tell me what next?

Thanks!

profilepic.png
manpreet 2 years ago

Don't include the category/package name in USE, it's just

USE="json exif" emerge dev-lang/php

But I'd suggest making that choice persistent, e.g. by adding

dev-lang/php apache2 json exif

to /etc/portage/package.use and then

emerge dev-lang/php

all modules are built into the php executable, gentoo doesn't use extension modules (.so), so this should be all you have to do. Make sure the emerge exits without errors.


0 views   0 shares

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.