PHP Safe Mode Bypass

How do you disable the output? And will doing so disable it for all users php errors?
 
have a look in the php.ini file and find this line
Code:
display_errors= On
and change it to off. Then look for
Code:
log_errors = Off
and set it to On. Restart httpd. I have not tested it on other user accounts, but I think it will disable the browser error output for all users.
 
I've given up on this totally.

Even though tran's fix worked, it breaks CURL. So that's no good either. I have sites of my own that stopped working, can only imagine what this would do to users.

Not to mention now I'm getting sites with HTTP 400 errors...Christ. What a mess.
 
what breaks curl? sounds like you changing the wrong thing or you have a broken install.
 
Hi,

anyone found a way of fixing this with PHP running as FastCGI/CGI?

I've got PHP 4.4.4 as CGI and using the latest suPHP.

I tried setting the /etc/passwd file permissions to other permissions suggested in this thread but that stop DirectAdmin from working correctly.

The suggestions here with setting php_admin flags dont work for me. Any other ideas?

Thanks for the help.

Phil
 
Chrysalis said:
what breaks curl? sounds like you changing the wrong thing or you have a broken install.

1) Not changing the wrong thing. Followed instructions posted here to the letter. As did my someone else I know. Curl loses it's permissions to SET_OPT (this was clearly evident in my Multi-PHPBB site.

2) Install is not broken since everything works (other then 2 sites, which may be unrelated) once I back out all the changes.
 
the instructions you followed simply enable open_basedir which doesnt remove any permissions from curl.
 
CURL cannot function if safemode or openbase dir is enabled. That's fairly obvious from the error "CURL SET_OPT cannot be set if Safe Mode or openbase_dir is enabled in httpd.conf". :)
 
cURL works fine for me with safe mode and openbase dir enabled. Also there is nothing in the PHP documentation I can find that says safe mode will stop cURL rom working.

I guess its your setup.
 
I'll revisit this when I have more time to play. Right now, not going to change anything else this dramically until I can figure out why following the steps here verbettim causes me problems.

Not to mention, this should be something DA should be setting up as part of the install going forward if it does work.
 
Back
Top