Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9239031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:53:41+00:00 2026-06-18T07:53:41+00:00

I am trying to deploy some PHP scripts on a webserver which is already

  • 0

I am trying to deploy some PHP scripts on a webserver which is already hosting a live website. In my local development environment the scripts run fine. However, on the server they do not run, and I have traced the problem via the apache error logs to PHP not being able to create a new DOMDocument object. I believe I have narrowed this to a line in the “Configure Command” settings in phpinfo(). In that section, I see --disable-dom, as well as --without-curl. Both of these should be enabled in order for my script to work properly.

If I can enable these features within my script, that would be great. Otherwise I might need to recompile php, but I’m loathe to do that unless it’s absolutely necessary. Is there some way I can override these settings in php.ini, in the script itself at runtime, or through some other method?

Edit: if it helps, the PHP version is 5.3.3-14.el6_3 and it appears that it was installed via yum. OS is Scientific Linux 6.3.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T07:53:41+00:00Added an answer on June 18, 2026 at 7:53 am

    The answer is here:

    https://serverfault.com/questions/66189/how-to-enable-dom-without-recompiling-php

    Turns out I just needed to restart Apache in this case after running yum install php-xml

    EDIT: Here’s a more thorough overview of what happened here:

    PHP 5.3.3 was installed via Scientific Linux’s yum. by default it installed from the @sl-security repo. This resulted in a compile command that excluded features like curl and DOMDocument.

    To enable these features, I ran yum install php-xml. I then verified that the appropriate dom.so module was loading by inspecting the dom.ini file in /etc/php.d/.

    What I didn’t realize was that I needed to restart Apache to make the changes take effect. On this particular system, this was achieved by typing the following:

    service httpd restart

    At this point I was able to use the PHP DOMDocument class.

    The “compile command” in phpinfo() just indicates that PHP was compiled without the modules. These modules could be added after the fact using yum. I imagine that without yum, one would just need to download the appropriate .so module file and edit php.ini to make sure that module was included.

    But of course, the key point is that for any of the changes to take effect, you have to restart Apache. That part was not obvious to me!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently trying to deploy an app on JBoss 6.1 which has some
I'm trying to deploy the MvcMusicStore on my website, but I'm running into some
I'm trying to deploy a website using ASP.NET membership and the hosting company is
I'm trying to use the sharepoint API to deploy some solutions and the global
I am trying to deploy a Silverlight with WCF Service to a hosting. Basically,
I'm currently trying to deploy some RSS feeds on a WebLogic Application Server. The
while trying to deploy a Grails application into tomcat6 I ran into some problems:
I'm trying to deploy my rails application with capistrano, but I'm having some trouble
I'm trying to deploy my new ASP.NET MVC 2.0 website to our Windows Server
I'm trying to deploy some changes, and I just cannot see them as the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.