php,path,relative-path,realpath,pathinfo
Use following path define('root_path', realpath(dirname(dirname(__FILE__)))); instead of your code for defining real path. As your folder structure is like that. See your index.php is in ucp folder but you want path of config.php. So go back one directory and get config.php path....