Era Host hosting
EraHost – Free Domain, Cheap Hosting!
Client Area
Support 24/7
Menu

Solving vqmod::bootup Error — "PHP domdocument Extension Required"

3 min read
28.05.2026
Error Message: vqmod::bootup - error - you need the PHP "domdocument" extension installed to use vqmod.

The error indicates that the DOMDocument PHP extension is not installed or enabled, and it is required for VQMod to work. Here's a detailed guide on how a programmer would resolve this issue:

vqmod domdocument PHP Extension Error
vqmod needs ext-dom — install php-xml package and restart PHP.

For closely related "PHP extension missing" diagnostics, see Check If ImageMagick or GD Is Installed and DBD::mysql Perl Module Not Installed Fix.

VQMod (Virtual Quantity Modifier) requires the PHP DOMDocument extension to parse and modify XML files. This extension is usually included in PHP installations but may need to be explicitly enabled.

Verify PHP Version

Before proceeding, verify the PHP version running on the server. The steps to enable or install the domdocument extension depend on the PHP version.

Check PHP Version

Run this command in the terminal:

php -v

You will get output like:

PHP 7.4.33 (cli) (built: Nov 8 2023 16:00:00) ( NTS )

Check if the domdocument Extension Is Installed

The domdocument extension is often included by default, but it may be disabled or missing.

Command to Check Installed Extensions

Run this command to list all enabled PHP extensions:

php -m | grep dom

  • If the output includes dom: The extension is installed and enabled. Move to Step 4 to troubleshoot further.
  • If no output: The extension is missing. Proceed to the next step to install it.
Linux VDS
High performance for your projects
  • Root access and flexible setup
  • Control panel
  • NVMe disks
  • DDR5
Linux VDS

Install the domdocument Extension

For Debian/Ubuntu

  1. Install the php-xml package, which includes the domdocument extension:
    sudo apt update
    sudo apt install php-xml
  2. Restart the web server to apply changes:
    • For Apache:
      sudo systemctl restart apache2
    • For NGINX with PHP-FPM:
      sudo systemctl restart php8.0-fpm

For CentOS/RHEL

  1. Install the php-xml package:
    sudo yum install php-xml
  2. Restart the web server:
    sudo systemctl restart httpd

For Windows

  1. Open your php.ini file (commonly located in your PHP installation directory, e.g., C:\php\php.ini).
  2. Search for:
    ;extension=dom
    Remove the semicolon ; to enable the extension:
    extension=dom
  3. Save the file and restart your web server.

Verify the Extension Is Active

After installation, verify that the domdocument extension is now active.

Command to Confirm

php -m | grep dom

If dom is listed in the output, the extension is enabled.

Test VQMod

After enabling the extension, test whether VQMod is working properly:

  1. Clear the VQMod cache:
    • Delete all files in the vqmod/vqcache directory.
  2. Access your application again and see if the error is resolved.

Debugging (If Issue Persists)

If the issue persists, double-check the following:

1. Correct PHP Configuration:

  • Run:
    php --ini
  • Ensure you are editing the correct php.ini file.

2. PHP Version Used by the Web Server:

  • If your server has multiple PHP versions, make sure the correct version is active for the web server.
  • Check the PHP version used by your web server:
    <?php
    phpinfo();
    ?>

3. Log Errors:

  • Check the PHP error log for more details about what might be causing the issue:
    tail -f /var/log/php_errors.log

Summary

  1. Verify that PHP is installed and check its version.
  2. Install the php-xml package or enable the domdocument extension in php.ini.
  3. Restart your web server (Apache or NGINX).
  4. Verify that the domdocument extension is active using php -m.
  5. Test VQMod functionality.

By following these steps, the vqmod::bootup - error caused by the missing domdocument extension should be resolved.

Frequently asked questions
Minimal PHP packages on some distros (especially when installed via remi or Ondrej's PPA) split rarely-used extensions into separate packages. DOMDocument lives in php-xml (Debian/Ubuntu) or php-dom (some RHEL builds). Modern bundled installs include it; minimal builds don't. Verify with `php -m | grep -i dom`.
Different PHP versions installed in parallel. `apt install php-xml` may install for the default PHP version, not the one your web server is using. Run `update-alternatives --display php` and `php -v` to find the active version, then install the matching `php-xml` package.
Different SAPI php.ini files. CLI uses `/etc/php//cli/php.ini`; PHP-FPM uses `/etc/php//fpm/php.ini`; mod_php uses `/etc/php//apache2/php.ini`. The extension must be enabled in the SAPI's mods-available link or php.ini. Check `php-fpm -i | grep dom` to see what FPM sees vs CLI.
If the panel offers per-account PHP extension toggles (cPanel "Select PHP Version" → Extensions, DirectAdmin similar), yes. Otherwise contact the host. On a minority of providers, DOMDocument isn't available at all because they ship a stripped PHP — that's the case to consider switching hosts.
Related articles
Install ZIP Extension for OpenCart Based on OS & PHP Version
Install ImageMagick or GD — Server Administrator's Guide
Install ionCube Loader Manually on a VPS (Step-by-Step Guide)