Hi everybody,
I'm trying to install this wonderful gallery, but I've some problems.
My blog is on a Windows 2003 server http://www.nighted.com but I have also space on a linux server http://lnx.nighted.com
I uploaded the content of "zenphoto" directory in this path: http://lnx.nighted.com/gallery
and I gave chmod 777 to albums and cache directories.
After having modified the zp-config.php with mysql database name, password and username, I tried to keep the mod_rewrite turned on and I modified the .htaccess file like this:
RewriteBase /gallery
I got an "Internal server error" on a linux-apache based server with working php, gd libraries and everything needed.
So I tried to turn off the mod_rewrite setting it to "false" in the zp-config.php file.
Nothing... just the "internal server error" every time! I tried to change the "localhost" setting to my host ip, but didn't work.
Then I tried everything on the Win2003 server, and It works without thumbnails and pictures preview because of the lack of GD libraries. (take a look at http://www.nighted.com/gallery/)
So...
Where is the problem? The Linux server? Something wrong?
Any suggestion?
Thanks in advance for any support!!
OK. Zenphoto as far as I know has been tested on both IIS and Apache with success, although mod_rewrite doesn't work so well on IIS.
Let's start with your Linux/Apache server first. It will be helpful for us to see:
Output of phpinfo on your web server. Here's how:
Here's what you can place in the file (and save it as phpinfo.php):
Show us a copy of your zp_config.php file, and your .htaccess files, and make sure to remove your admin/password information from the zp_config.php before posting it.
Make sure you have everything properly linked and installed for PHP, MySQL, Apache, etc. (just double check, sometimes you can miss something...)
Also try removing the htaccess file altogether. You may even have mod_rewrite support, and the file itself may be causing issues.
Post here once you've done that, and we'll be happy to help get it straightened out for you.
Thank you for the answer! Here we go with everything:
I know about mod_rewrite on IIS, it was just a test to see if I made mistakes. I want to use zenphoto on the Linux/Apache server.
The script of the provider is this one:
$conf['mysql_user'] = "";
$conf['mysql_pass'] = "";
$conf['mysql_host'] = "62.149.150.61"; // Won't need to change this 90% of the time.
$conf['mysql_database'] = "Sql155xxx_1";
// If you're sharing the database with other tables, use a prefix to be safe.
$conf['mysqlprefix'] = "zp";
$conf['mod_rewrite'] = false;
// define('WEBPATH', '/gallery');
// define('SERVERPATH', '/full/server/path/to/gallery');
I tried also
define('WEBPATH', '/gallery');
define('SERVERPATH', '/web/htdocs/www.nighted.com/home/gallery');
and I tried "localhost" on the mysql-host and "true" on the mod_rewrite.
Here is the .htaccess file:
RewriteEngine On
RewriteBase /gallery
RewriteRule ^admin/?$ zen/admin.php [R,L]
RewriteCond %{REQUEST_FILENAME} -f [NC,OR]
RewriteCond %{REQUESTFILENAME} -d [NC]
RewriteRule ^.*$ - [R,L]
RewriteRule index.php$ index.php [L,QSA]
RewriteRule ^page/([0-9]+)/?$ index.php?page=$1 [L,QSA]
RewriteRule ^page/([A-Za-z0-9-]+)/?$ index.php?p=$1 [L,QSA]
RewriteRule ^(.)/page/([0-9]+)/?$ index.php?album=$1&page=$2 [L,QSA]
RewriteRule ^(.)/image/(thumb|[0-9]{1,4})/([^/\]+)$ zen/i.php?a=$1&i=$3&s=$2 [L,QSA]
RewriteRule ^(.*)/image/([^/\]+)$ zen/i.php?a=$1&i=$2 [L,QSA]
RewriteRule ^(.*)/?$ index.php?album=$1 [L,QSA]
Apache works, php seems to work (from the test, even if I honestly I don't understand why doesn't work with your script), MySQL works otherwise I couldn't use zenphoto on the ISS server, right?
I removed the .htaccess file, keeping the mod-rewrite set to false and then to true, but nothing happened.
Thanks again!
I'm not sure why the phpinfo() didn't work. Sounds to me like they've got some security reason for doing it that way (unless it's just to display the phpinfo() without the headers, css, etc.), but it still doesn't answer why it won't work properly. Definitely sounds provider related though.
Uhmmm... I don't really know. Do you know what should I take off from this script to avoid it to be deleted from the server every time I check it?
I'll try to find something else regarding my host (www.aruba.it) and zenphoto. Then, eventually, if I can't find any solution I'll try to contact my webhost.
Thanks a lot for the support