Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm a programmer who currently does not have a sysadmin. I have a decent, but not in-depth, knowledge of Linux OSes such as RedHat and Scientific Linux.

Right now I'm writing some programs in PHP for a webserver running on Scientific Linux 6.3 which is hosting a live site. PHP was installed via yum, version 5.3.3-14.el6_3

The website the server is hosting is running on a content management system written in php, and it works just fine. However, my programs use the DOMDocument and Curl libraries which, according to the "Configure Command" section of phpinfo(), were not installed. This is preventing my scripts from running correctly. I see the following parameters in that section: --disable-dom and --without-curl

Is there some way I can enable the curl and DOMDocument functionality without recompiling PHP from the command line? Perhaps there is a yum command?

If I do need to manually recompile PHP, what is the best way to go about doing this, considering that the current PHP was installed via yum?

share|improve this question
I found the answer here: link. Turns out I just needed to restart Apache after running yum install dom-xml. Thanks @KM01 !!! – DeeDee Jan 29 '13 at 22:50
up vote 2 down vote accepted

Use yum (-: Here is an example

yum install php-mcrypt

This will install php's mcrypt module and any related dependencies.

You can look for the libraries/modules to install by running

yum search name_of_library_or_module


share|improve this answer
That does help! I ran yum install php-xml and it says it's already installed. That's good. I see that the module is installed...perhaps I just need to make PHP load it somehow. I'm researching that now. Thanks! – DeeDee Jan 29 '13 at 22:38
A ha! In phpinfo(), it's saying that it's parsing additional .ini files. dom.ini is not on that list, but when I looked in the /etc/php.d/ directory where these additional .ini files are located, and I see dom.ini in there. Now I just have to figure out why PHP is not loading it. – DeeDee Jan 29 '13 at 22:41
Restart your web server ... ? – KM. Jan 30 '13 at 14:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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