ServersMan@VPSでopen_basedirを無効にする

ServersMan@VPSでrequire_once()でファイルを指定すると次のようなエラーが出ます。

PHP Warning:  require_once(): open_basedir restriction in effect. File(./***.php) is not within the allowed path(s): (/tmp/:/var/lib/php/session/) in ******.php on line 8

open_basedirとは、PHPを実行できるディレクトリを指定したものに制限するための設定ですが、これを無効にします。

/etc/php.iniファイルの次の行をコメントアウトします。
;open_basedir = /tmp/:/var/lib/php/session/

apacheを再起動します。

service httpd restart