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 ?
-
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
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.
-
☆ 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)
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.
resolved now thank you.
was getting some security upgrades on server and that was just a hicup. all sorted