You can’t do this in php: require_once '/s3_settings.php'; So instead do this: require_once($_SERVER['DOCUMENT_ROOT'] . '/s3_settings.php');