Multiusers Gallery (eg. Photobucket)?

Hello,

Just to verify before installation, is it possible for me to configure like a public gallery sharing site instead of personal gallery?

For an example like Photobucket, whereby users can register and upload their photos to their own albums and users can share them by providing links to their friends and it'll not be publicly shown on the main page of ZenPhoto?

Also, does this work for bulk upload (eg. using flash and select all then upload, not select one by one and then "bulk upload")?
«13

Comments

  • acrylian Administrator, Developer
    Yes to all. See the user guide for the rights management article.
  • alright, how bout if i'd like to run ZenPhoto on full SSL (with no http but https protocol only)?
  • acrylian Administrator, Developer
    There is an option for that.
  • Alright.
    So i've renamed "upload" to "gallery" and attempt to install ZP by navigating my browser to my site (http://<local IP>/gallery as my gateway doesn't support NAT loopback).

    But on 2nd step, i encountered many issues:

    1. "Change the filesystem to UTF-8" and upon clicking "apply" the page reloaded but it still remains to ISO-8859-1 and no matter how many times i select UTF-8 and apply, it'll revert back to ISO-8859-1.

    Screenshot: https://tmpdmp.com/41671b4696a6d632/b5b916b386fcaebe

    2. For .htaccess, i tried clicking "Make setup create the file" but the same error unknown error occured, which is: the page loads but i get back the same warning that .htaccess is required for mod_rewrite, and no, i don't wanna ignore that because i wanna use mod_rewrite.

    3. Another warning: "Setup could not create a robots.txt file."

    P.S. The permission of ZenPhoto folder (gallery) is on 755 permission.
    I've tried giving the folder 777 permissions but it's still the same.
    I've cms and forums on main my main site, but with its folders and sub-folders 775 permissions and it's working fine.

    Screenshot: https://tmpdmp.com/1b4f582cca5dd940/9d464b3f0912b92a
  • acrylian Administrator, Developer
    1. Your server probably does not use utf-8. Ask your provider.
    2. Without the error all is guessing. Probably a permissions issue. Copy the template file manually from within /zp-core
    3. See 2.. But that is really not important as you can easily create your own, the included one is quite strict and just a suggestion.
  • Hello,
    I'm hosting my own server and therefore it's a dedicated server.

    I've created a "charset.tést" file as suggested by setup and upon refreshing the page, i get the following error:
    "The Zenphoto filesystem character define is ISO‑8859‑1 [which seems wrong]

    Screenshot:
    https://tmpdmp.com/740741c0ae48f1a6/c8a2f7ab29f68e77

    [Cont.] 4. Under "For File/Folder Permissions [are strict(0755)] Notice! click for details",
    When I select strict+ (0750) and click apply, the page reloaded but, ""For File/Folder Permissions [are strict(0755)] Notice! click for details" was shown instead of "For File/Folder Permissions [are strict+(0750)] Notice! click for details"

    Screenshot:
    https://tmpdmp.com/65db881c48b766d3/47af6a1f28926077

    after clicking apply:
    https://tmpdmp.com/8c0010e28b98469b/3f1839f2a22241a0

    Also, for albums, cache, uploaded, zp-data, cache_html, plugins folders, i get similar errors of:

    "Error!

    Change the permissions on the <albums, cache, etc> folder to be writable by the server (chmod 777 zp-data)"

    I've tried chmod-ing them to 777 manually via CLI, then I've got the following error:
    "albums/cache/uploaded/zp-data/cache_html folder [permission failure]"

    "Warning!

    Setup could not change the folder permissions from loose (0777) to strict (0755). You will have to set the permissions manually. See the Troubleshooting guide for details on Zenphoto permissions requirements."

    So what permissions do i exactly do i have to set since setting manually casues permissions errors eg: "permission failure".
  • acrylian Administrator, Developer
    1. It is no "error" but a warning. As said your filesystem seems not to use UTF-8 but ISO‑8859‑1.
    2. On some servers Zenphoto is not able (=allowed) to change permissions. You need to do that via FTP manually. See the Troubleshooting guide for details on Zenphoto permissions requirements."
  • Filesystem: Zenphoto does NOT change the filesystem to anything. That is not possible as the filesystem mode is purely defined by the OS. What Zenphoto needs is to know what the file system character set is. The warning you got has instructions on how to aid Zenphoto in discovering that. Or, if you know the answer just set it so.
    Another warning: "Setup could not create a robots.txt file."
    It would appear that the server permissions configured do not allow Zenphoto to create files in the root. This would also impact its ability to create the .htaccess file.

    From the errors and warnings you are getting it would seem that your server is setup to be overly conservitave with respect to WEB applications ability to do file management. This means that you either have to live with the restrictions or make the needed changes manually.
  • hello,

    But i've changed the permission of ZenPhoto album (in this case: "gallery") to 755 (sudo chmod 755) but i'm still getting the error that ZP doesn't have "permissions" to create robots.txt, or rather, any files/folders.
  • acrylian Administrator, Developer
    Then the permissions are not set correctly for the subfolders/files or the server is maybe not configured correctly.
  • okay, so what are the "correct" permissions for the folders inside "gallery" (ZP folder) or rather, what would be the "optimal" permissions for folders inside ZP folder?
  • Okay, i guess I'll have to manually chmod to 755 (750 will result in 403 Forbidden).
    After installation, i was prompted to remove setup files. then i clicked "Delete setup files" which lets ZP remove setup files for me.

    but when i clicked that, i was given "Deleting files failed!".

    So how do i manually remove setup files (by deleting setup.php?)?
  • Also, I've got another issue in which:
    I've browsed to <internal web address IP>/gallery (eg. 10.10.10.1/gallery) but I was redirected to the setup page.
    going to 10.10.10.1/gallery/admin will also direct me to the setup page.

    is there any way to fix this?
  • acrylian Administrator, Developer
    Setup will run automatically on fresh installs or if you just upgraded. Just complete setup and it is done.

    Also you can install Zenphoto only under one domain (use htaccess redirects for use several ones which is also recommended for SEO). So if it is installed on www.domain.com that is actually internally <internalpath>/gallery Zenphoto would consider the direct access as a new different installation.

    You remove files manually by removing them manually via FTP as you uploaded them (within zp-core setup.php and a folder named setup).
  • it's on subdomain (https://gallery.on-sugar.com) but however my ISP's Residential Gateway (RG) which act like a router (even though I have my own infrastructure eg. switches, and firewall, etc) that doesn't allow NAT loopback therefore i had to directly type in the IP address with alias (which in this case: /gallery).

    So i've directed my browser to https://10.10.10.10/gallery but i was redirected to setup page. is there a way to solve this?

    Also, i've tried removing files manually by deleting setup.php and the entire folder of "setup" but i was thrown a blank page (when using chrome, i was given 500 internal error).
  • acrylian Administrator, Developer
    As I already explained above "gallery.on-sugar.com" is not the same url as "10.10.10.10/gallery" (same would be with on-sugar-com/gallery). If you use the latter it is not a subdomain url.

    If you use htaccess/modrewrite you need to decide what to use as otherwise Zenphoto does not know the rewrite base (on the first just / on the other /gallery) and tries to change it each time you use one of the urls. So you could try to disable modrewrite on the Zenphoto options.
  • and how'd i disable modrewrite since i've already activated modrewrite (i've tried deleting .htaccess but i'm redirected to upgrade page)
  • acrylian Administrator, Developer
    So you could try to disable modrewrite on the Zenphoto options.
  • what's the direct link to the admin cp?

    if it's /gallery/zp-core/setup.php, then it's showing "zenphoto upgrade" instead of administration site as going into <ip>/gallery will redirect me to /gallery/zp-core/setup.php
  • acrylian Administrator, Developer
    The link to the admin is <path to your installation>/admin (modrewrite) or <path to your installation>/zp-core/admin.php
    if it's /gallery/zp-core/setup.php, then it's showing "zenphoto upgrade" instead of administration site as going into <ip>/gallery will redirect me to /gallery/zp-core/setup.php
    I already explained but once again: You need to decide which is the url used so Zenphoto knows the rewrite base. If you installed on one ULR accessing again will tell "upgrade" , if access on the prior not used one it will think it is a new install as it tries to update the htaccess file for example.
  • so that means i'll have to specify the path on the config file? (zp-config.php)

    under Path Overrides?
  • btw, i've already removed .htaccess as mentioned.
  • acrylian Administrator, Developer
    Removing the htaccess will break the functionality if you don't also uncheck the modrewrite option.

    You can try to use the path overrides especially the full serverpath one as that seems to be your problem. (I never needed to use these anywhere though. )

    But still the two urls are different, you should decide which you use.
  • Zenphoto checks for certain things to see if the "environment" has changed. I suspect that there are some subtile configuration differences in your site based on the URL used to access it. (We have seen this misconfiguration also on some sites between https and http urls.)

    Bottom line: Things like the document root and the server administrator must be the same no matter how you access the site.
  • I've tried setting the "path overrides"
    define('WEBPATH', '/gallery');
    define('SERVERPATH', '<path>/public_html/gallery');

    but i'm still redirected to the upgrade page after logging on as administrator.
  • okay, i've reinstalled, and "test register" and everything's fine until i complete the email activation, the page went blank (using firefox).

    but using Chrome, i get the following error:
    You are not authorized to access the webpage at https://<int. IP>/gallery/. You may need to sign in.
    HTTP Error 403 (Forbidden): The server refused to fulfill the request."

    MSIE 9:
    HTTP 403 Forbidden
    The website declined to show this webpage
    HTTP 403
    Most likely causes:
    •This website requires you to log in.

    any idea? i even uploaded nightly build (http://www.zenphoto.org/pages/nightly-builds?download=3890)
  • You still have file permissions issues on your site with the scripts.
  • i've tried dropping ZP's database and entire folder (gallery) then reuploaded (w/o htaccess/mod rewrite enabled) and everything was fine too, until browsing half-way through, it went "blank page", i've tried changing the entire folder (gallery) to 777.
    but still, i'm getting blank load-out.
This discussion has been closed.