Zeronese, Inc.
Home
Help & Support
Contact Us
   
Zeronese Webmaster Resources Directory

Installation of the Zeronese php photo gallery script

Installation of the gallery is fairly simple and if you follow the following steps, you should be up and running in less than 10 minutes.

Step 1: Extract the contents of the zip file of your script.
You should find the following content:
    - photo-gallery folder: This includes all the folders, php codes and files that you will need to upload to your server/host to run the script. Don't upload it just yet, just make sure it is there.
    - gallery.sql file: This is the file that contains the sql commands that will set up your database tables and settings. See step 2.
    - license.html: This is explains what you can do and can not do with the script. Please read it.

Step 2: Create a MySQL database on your server and note the server, database name, database username, and the database password.

Step 3: Execute the  gallery.sql file included in your zip file against your database.
This step will depend on how you manage your databases. You can either import the gallery.sql file or open it through an editor such as notepad, copy the MySQL commands in it and run it in your database.

Step 4: Open the "configuration.php" file included in the photo-gallery folder using any text or php editor. Lines 2 to 6 contains variables that you will change. Only change the values between the quotes (in red below) and ignore everything else.
    -  $dbhost = 'Your MySql Server'; /* your database server - */
    - $dbname = 'Database Name'; /* your database name - */
    - $dbuser = 'Database Username'; /* your database username - */
    - $dbpass = 'Database Password'; /* your database password - */
    - $manager_password = 'admin'; /* manager password */
Note: make sure to leave the quotes surrounding the variables intact otherwise you will start receiving errors!
Save the configuration.php file and now you are ready to upload.

Step 5: If you want to run the gallery from your root folder; that is, if you want to access the gallery through http://www.yourdomainname.com, upload the contents of the photo-gallery folder to the root folder of your hosting account. If you want to add the gallery as an extension to your website, you then can upload the folder photo-gallery  as is to your hosting account. The link to your gallery in that case will be http://www.yourdomainname.com/photo-gallery/ . You can also create your own folder and upload the contents of the photo-gallery folder into that folder. In that case the link to your gallery will be http://www.yourdomainname.com/your-folder/.

Step 6: chmod the photos directory to 777 and the thumps under photos directory to 777

Step 7: You can now test your gallery installation by going to the link in step 5, but for the gallery to work fine you will need to set the website url in the managers setting. You do that by going to the manager's page of the gallery at: http://www.yourdomainname.com/your-inastallation-folder/manager/
    -
Login using the password that you have set in step 4 above.
    - Click on the Settings link in the header.
    - Enter the url from step 5 in the Gallery URL field. Don't forget to enter the slash at the end.
    - Click the update settings button

For security reasons, you might want to change the name of the folder 'manager' to a name that only you know. You can name it any thing that is hard to guess but easy to remember. Renaming the manager folder will not effect the functionality of the manager's pages.

You are now ready to start uploading images by clicking the Albums link from the managers header, click Create New Album, create the album and then click the upload images to that album.



If you still did not get your copy of the php/mysql photo gallery... Get It Now


Attachments & Downloads

No attachments were found.

Would you like to...



Print this page Print this page Email this page Email this page Post a comment Post a comment Subscribe me (Subscribe to receive notification when this article is updated.) Add to favorites Add to favorites Remove Highlighting Remove Highlighting Edit this Article

User Opinions (6 votes)

100% thumbs up 0% thumbs down

How would you rate this answer?




Thank you for rating this answer.


Related Articles


No related articles were found.

Visitor Comments

  1. Comment #1 (Posted by Diane Challenor)
    Tuesday November 17th, 2009 06:15:32 PM
    I recently purchased your Photo Gallery it looks promising, unfortunately my installation has not been successful. After I load it up to my host and go to the Manager Login URL I receiving an error, as follows:
    Internal Server Error.The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.More information about this error may be available in the server error log.

    I've loaded the tables, album, comments, photos and settings into my Artuccino database. I configured as per the directions in your installation guide.

    Also, I'm using Dreamweaver CS3 so I would like to connect to my Database using the Dreamweaver method.

    I'll keep trying. I was hoping there would be a discussion forum where I could read about the experience of others but if there is one I can't find it.

    Meanwhile I'll repeat the steps in your installation guide to ensure I haven't missed an important step.

    Would it have something to do with the .htaccess file. After it is loaded up to the host it disappears.

  2. Comment #2 (Posted by Hassan Sayed)
    Tuesday November 17th, 2009 07:40:24 PM
    i am almost sure it is something with the .htaccess file.

    the error you are providing is not a script configuration error, most likely it is a server setting or something related to that. becuase .htaccess relates to that it might be cuasing the error.

    Note: the .htaccess on some hosts such as godaddy.com does not work until after like 30 minutes from the first upload.

    let me know if you are still having the problem.

  3. Comment #3 (Posted by Hassan Sayed)
    Tuesday November 17th, 2009 07:53:27 PM
    if you are now seeing a blank page, it is most likley you have wrong database information,
    to detect that
    in the configuration.php file
    replace:
    mysql_select_db($dbname);

    With
    mysql_select_db($dbname) or die(mysql_error());

    let me know if this helps.

  4. Comment #4 (Posted by Diane Challenor)
    Thursday November 19th, 2009 10:45:45 AM
    Hi Hassan, I contacted my web host and this was her comment: There is a convention that files which start with a dot "."are special (i.e .htaccess) and shouldn't be shown while browsing normally. The "500 Internal Server Error" message is caused by the line: "Options +FollowSymLinks" which is both unnecessary and not allowed on this server for security reasons.

    So I removed the .htaccess file from the directory and I was able to Login and upload images, view the picture and comment. It seemed to work well. Except when I clicked on "All Images" the browser could not find http://www.artuccino.com/photo-gallery/album/all/ The folder had not been created. The address of the photo-gallery is http://www.artuccino.com/photo-gallery/ There is one picture in it with one comment. I'll play with it some more tomorrow. Best wishes, Diane

  5. Comment #5 (Posted by Hassan Sayed)
    Thursday November 19th, 2009 11:21:26 AM
    i don't see how they think it is "unnecessary".
    Anyways, since they removed the .htaccess this means you cannot use the safe search engine urls.

    Go to the manager side of the script, login, and
    Look for “Use Safe Search Engine URLs” and set it to No

    Then go to the design folder, look for the template you are using, edit the header.html (using note pad or any html editor)
    Replace
    !!WEBSITE_URL!!album/all/
    With
    !!WEBSITE_URL!!?page=album&album_id=all

    Everything should work fine now.

    Let me know if you still have problems.

  6. Comment #6 (Posted by Diane Challenor)
    Thursday November 19th, 2009 06:53:56 PM
    All seems to be working OK. Your Photo Gallery looks like it will fulfill all sorts of possibilities at www.artuccino.com. Thanks.

Post a comment, a question or any related helpful information

To post a comment for this article, simply complete the form below. Fields marked with an asterisk are required.
   Name or Website::
   Email:
* Comment:
* Enter the code below: