Ensure you are configuring the open_basedir setting, per here.
open_basedir
There is a syntax error in your 2nd attempt open_base_dir.
open_base_dir