Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Addon Domain - PHP Error

Discussion in 'General Discussion' started by Steve Johnston, Jul 18, 2018.

  1. Steve Johnston

    Steve Johnston Registered

    Jul 18, 2018
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Website Owner
    I have created an addon domain and pointed the domain to my shared cPanel hosting. The change was a success and I could see my homepage, after uploading to the subdomain directory. However, beyond the homepage I have a 'litecart' installation which uses VQMod in PHP and this is creating an error:

    Fatal error: VQMod::bootup - vQmod requires the PHP DOMDocument extension in /home/.........

    I could not find any relative documentation on this other than this feature should be default ON with PHP 5.6 and beyond. I am using 7.2.

    Not to be outdone, I changed the actions of my addon domain to look at an identical domain, which is my default domain which is running exactly the same files/site. I did this by changing the root folder of the addon domain - still errors.

    I then went deeper and in the .system-php folder, I created a folder for the addon domain and added the same files, which includes the dom.ini file and has the following:

    ; Enable dom extension module

    Still no joy.

    So, in summary. I have a main domain on cpanel and an addon domain. Both are running the exact same pages, yet one works with VQMod and one errors with it. Where am I going wrong?
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello Steve,

    The DOM extension for PHP is installed by default:

    # /opt/cpanel/ea-php72/root/usr/bin/php -m|grep dom
    This is an unsupported modification. Please revert this change and make future PHP configuration changes using the MultiPHP INI Editor option in cPanel or WHM.

    Assuming you've confirmed the addon domain name resolves to the correct IP address, this seems like a bug with the script itself. Here's a StackOverflow discussion you may find helpful:

    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice