Hey,
I've been trying for days to get ZP working. Several people have replied to posts, but the suggestions didn't help.
I'll PayPal an experienced hack some cashola to help me get this implemented. This is pathetic :-)
email chris-at-maltese-dot-net The site that I'm trying to get going is
http://photo.maltese.net . I hope to be able to someday integrate it into my blog at
http://blog.maltese.netHope someone can help out, as I have never had so much trouble with PHP before.
Thanks,
Chris
Comments
Here's the issue: I installed the package on my server (unix, I believe). Chmodded everything in the directory to 777. I edited the htaccess to place my absolute path in it... and nothing happens. I keep getting an internal server error.
What is the best way for you to assist me and what files do you need? I am hosted on PowWeb.
Thanks,
Chris
when you type that and press return on the browser.your server will only send a reply if it has an index.html or and index.php.
Secondly you will have a peace of mind if you include your zenphoto installation in the same domain you have your blog..
also let me know the htaccess code you have used so far
# htaccess file for zenphoto
# NOTE: Change the RewriteBase below to the absolute path to your zenphoto directory.
<IfModule mod_rewrite.c>
RewriteEngine On
# !!! Change this to the absolute path !!!
RewriteBase /www/m/maltesenet/photo
RewriteRule ^zen/(.*)$ - [L]
RewriteRule ^tests/(.*)$ - [L]
RewriteRule ^admin$ admin/ [R]
RewriteRule ^admin/?$ zen/admin.php [R,L]
RewriteRule ^admin/admin.css$ zen/admin.css [R,L]
RewriteRule ^admin/admin.js$ zen/admin.js [R,L]
RewriteRule ^page/([0-9]+)/?$ index.php?page=$1 [QSA,L]
RewriteRule ^([^/\.]+)/?$ index.php?album=$1 [QSA,L]
RewriteRule ^([^/\.]+)/page/([0-9]+)/?$ index.php?album=$1&page=$2 [QSA,L]
RewriteRule ^([^/\.]+)/image/(thumb|[0-9]{1,4})/([^/\\]+)$ zen/i.php?a=$1&i=$3&s=$2 [QSA,L]
RewriteRule ^([^/\.]+)/image/([^/\\]+)$ albums/$1/$2
RewriteRule ^([^/\.]+)/([^/\\]+)$ index.php?album=$1&image=$2 [QSA,L]
</IfModule>
Thanks,
Chris
and let me know if its working
/maltesenet/photo
/photo
Also try putting this line of code at the top
DirectoryIndex index.php
before you append this code check on that absolute path thing ive mentioned..believe me it took me a while to make it work..have paitence..ill help you out..
Im also thinking if your subdomain is giong to be a factor for this problem..let me think through.meanwhile try the stuff ive mentioned.Also let me know where exactly your planting the htacess file!!!
Both paths didn't work. I also placed the line of code at the top of the htaccess file and tried various combinations of the paths. NG.
The htaccess file is located in the root of the photo directory.
No problem with the patience part. This is all a good challenge and learning experience. I thank *you* for your patience and tutelage.
Chris
Goodnight,
Chris
I have Zenphoto 0.9 running fine in a different directory and created another directory in which to install and test out 1.0beta before committing to the upgrade.
I can connect to /zentest/admin just fine and do all the admin tasks, so mod_rewrite seems to be working as is most of the application.
The problem is with rendering the gallery pages. I have tried changing themes and using one I had created for 0.9. All with the same result - a page with no formatting and no working links.
I'm running this locally on Apache 2 with MySQL 4.1.12.
The config.php.example from the 1.0b distribution doesn't contain the
if (basename($_SERVER['SCRIPT_FILENAME']) == "i.php".....
block.
Adding this full block to the config.php fixes the install.
:-)
Now I'm looking forward to testing out this new release.
I'm having the same problem as I am trying to run zp directly on a subdomain.
The full fix is here:
http://www.zenphoto.org/support/topic.php?id=215
/** Do not edit below this line. **/
/**********************************/
$_zp_conf_vars = $conf;
if (basename($_SERVER['SCRIPT_FILENAME']) == "i.php" || basename($_SERVER['SCRIPT_FILENAME']) == "admin.php") {
define('SERVERPATH', dirname(dirname($_SERVER['SCRIPT_FILENAME'])));
define('WEBPATH', dirname(dirname($_SERVER['SCRIPT_NAME'])));
} else {
define('SERVERPATH', dirname($_SERVER['SCRIPT_FILENAME']));
define('WEBPATH', dirname($_SERVER['SCRIPT_NAME']));
}
define('SERVERCACHE', SERVERPATH . "/cache");
define('WEBCACHE', WEBPATH . "/cache");
?>