We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32017
    • 151 Posts
    Im gettintg this error on every page becauese of my host !

    Warning: shell_exec() has been disabled for security reasons in /usr/lib/php/pre.php on line 6

    i cant log into the manager because of it !

    what can i do ?
      London web design - MODx specialists
      • 25663 MODX Staff
      • 12,272 Posts
      Sounds like it’s time to change hosts. Where does "pre.php" come from? (I don’t think that’s a MODx file)
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 31337
        • 258 Posts
        And what exactly is in that file that’s trying to exec a shell? Doesn’t sound very safe at all. Look at that file and see what’s in it and figure out where it came from.
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          No, that’s definitely not a MODx file... /usr/lib is a system folder. MODx only installs files in the web documents folder (such as htdocs or public_html)
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 26435
            • 1,193 Posts
            Wayne, this is probably a file loaded by the php.ini. It would be set in the directive called "auto_prepend_file".
            Any chance your phpinfo() has a line that looks something like this?

            Directive Local Value Master Value
            auto_prepend_file /usr/lib/php/pre.php /usr/lib/php/pre.php

            Are you with hostgator?
            I have heard of this problem with hostgator, but I am sorry, I am not aware of the solution unless you can override the php.ini. Some hosts allow you to do that.

            -sD-
            Dr. Scotty Delicious, Scientist.
              Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
              All of the above... in no specific order.


              I send pointless little messages
              • 32017
              • 151 Posts
              resolved now thank you.


              was getting some security upgrades on server and that was just a hicup. all sorted
                London web design - MODx specialists