You need to go back to the way it used to work in 0.8. At the bottom of config.php, comment out that whole if/else block and replace with something that looks like:
define('SERVERPATH', '/home/content/U/S/E/USERNAME/html/zenphoto');
define('WEBPATH', '/zenphoto');
define('SERVERCACHE', SERVERPATH . "/cache");
define('WEBCACHE', WEBPATH . "/cache");
Not the three dirs with a single letter. This is just the first three letters of your username. Also, I'm assuming you are installing into a dir called zenphoto in your home directory. Adjust as required.