Something is not working correctly for installing. I uploaded the zenphoto files. Then I ran setup (studiopickett.com/zenphoto/zp-core/setup.php as per instructions. It did not ask me for any info - it just spat out a list of errors. It complained that zp-config.php.source should be changed to zp-config.php - after I do that, it then complains that there is no zp-config.php.source file.
Then it complains - Could not connect to the MySQL server. Check the user, password, and database host and try again - it never asked me for this info. I'm not a programmer - I have no idea where I''m supposed to put this manually - and why should I have to do this manually? I thought this was supposed to be easy.
I did this once. I then deleted all files on the server and re-unzipped the downloaded file and re-uploaded everything and did it again. Same problems. Plz - what did I miss of fail to do or do wrong?
Comments
The error you are currently getting does tell you to check those values!
Thx.
The biggest problem you have is that Zenphoto cannot write to the folder. If there are other folders (albums, cache) like that, Zenphoto will not work.
The zp-config.php file is really hard to read due to you not putting each command/item on a separate line. It also does not give any hint what the correct answers are. I would never have come up with the answer "localhost" on my own in a million years.
`
<?php /* PUT NOTHING BEFORE THIS LINE, not even a line break! */
$conf = array();
/** Do not edit above this line. **/
/**********************************/
/*////////// zenPHOTO Configuration Variables ///////////////////////////////
Note: zp-config.php.source is the source file for zp-config.php
For most installations Setup.php will copy zp-config.php.source to zp-config.php and
make the necessary changes to it. Unless this fails you most likely have no need even
to read this file.
If for some reason setup.php is not able to edit the zp-config.php file and you cannot
fix the file/folder permissions so that it can then you may have copy the
zp-config.php.source file to zp-config.php and make changes here manually.
Advanced installations may wish to modify the album folder definitions below.
Also on some servers zenphoto has problems correctly determining the WEB path and SERVER
path. For these cases you will need to implement the path overrides below.
///////////////////////////////////////////////////////////////////////////////*/
////////////////////////////////////////////////////////////////////////////////
// Database Information
////////////////////////////////////////////////////////////////////////////////
$conf['mysql_user'] = '';
$conf['mysql_pass'] = '';
$conf['mysql_host'] = 'localhost'; // Won't need to change this 90% of the time.
$conf['mysql_database'] = ''
// If you are having problems with displaying some characters you may have to change the following.
$conf['UTF-8'] = true;
// If you're sharing the database with other tables, use a prefix to be safe.
$conf['mysql_prefix'] = "zp_";
////////////////////////////////////////////////////////////////////////////////
// zp-config.php required options
////////////////////////////////////////////////////////////////////////////////
// location of album folder.
// 'album_folder' is the name of the folder for the zenphoto albums.
// 'album_folder_class' determines how to interpret 'album_folder':
// 'std' -- the folder must be a simple name. It resides in the root of the zenphoto installation.
// 'in_webpath' -- the folder must be the full path of the album folder from the WEB root of the zenphoto installation.
// 'external' -- the folder must be a full server path to the album folder. Images within an external folder
// are not visible to web browsers, so certain features such as flash players cannot display them
$conf['album_folder'] = '/albums/';
$conf['album_folder_class'] = 'std';
// Server Protocol
// Change this to "https" if you use an HTTPS server (a "https://..." url)
// Otherwise you should leave it at "http"
// NOTE: If you change this on an already installed configuration you will also have to change the
// gallery configuration server protocal option.
$conf['server_protocol'] = "http";
////////////////////////////////////////////////////////////////////////////////
// Path Overrides
////////////////////////////////////////////////////////////////////////////////
// Uncomment the following two lines ONLY IF YOU'RE HAVING PROBLEMS,
// like "file not found" or "not readable" errors.
// These allow you to override Zenphoto's detection of the correct paths
// on your server, which might work better on some setups.
////////////////////////////////////////////////////////////////////////////////
// define('WEBPATH', '/zenphoto');
// define('SERVERPATH', '/full/server/path/to/zenphoto');
////////////////////////////////////////////////////////////////////////////////
// chmod mask
////////////////////////////////////////////////////////////////////////////////
// Change the following define if you wish to increase the security of your site.
// When Zenphoto creates files or folders it sets their permissions based on this
// value. The value is masked with whatever Zenphoto would otherwise have used for
// the chmod() parameter. So, if you remove a permission from this mask, it will
// be removed from the permissions set by Zenphoto. A secure setting would be a value
// of 0755.
//
// NOTE:
// When you make a fresh installation of Zenphoto there normally is not a zp-config.php
// file present. Setup copies zp-config.php.source to create this file. But, of course,
// happens only after setup has been up and running. So without a zp-config.php file
// setup will be using its own default version of the definition. To get around this
// startup issue, copy zp-config.php.source to zp-config.php and make your edits.
// Then run setup.
////////////////////////////////////////////////////////////////////////////////
if (!defined('CHMOD_VALUE')) { define('CHMOD_VALUE', 0777); }
////////////////////////////////////////////////////////////////////////////////
/** Do not edit below this line. **/
/**********************************/
$_zp_conf_vars = $conf;
unset($conf);
?>
`
"localhost" was not filled in - I had to type it in.