Home - Help & Support - Contact Us
    

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

Rated:NR/0 Votes
1172 Views
More Articles From PHP Photo Gallery
More Articles From PHP Photo Gallery
Print Article
Print
Share |
Comments, Questions & Reviews
#1 Comment by: Diane Challenor
2009-11-17 18:15:32
 
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 by: Hassan Sayed
2009-11-17 19:40:24
 
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 by: Hassan Sayed
2009-11-17 19:53:27
 
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 by: Diane Challenor
2009-11-19 10:45:45
 
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 by: Hassan Sayed
2009-11-19 11:21:26
 
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 by: Diane Challenor
2009-11-19 18:53:56
 
All seems to be working OK. Your Photo Gallery looks like it will fulfill all sorts of possibilities at www.artuccino.com. Thanks.



Comments is currently disabled for this article!
Related Articles and Readings
Understanding the PHP Photo Gallery Settings
To get to the settings page of your photo gallery, login to the manager's page using your username and pass ...
Making Photo Galleries Private
You can make your photo galleries private so that visitors won't be able to see them on your Web site. ...
Editing Photo Galleries
On the General tab, you can edit a photo gallery's name and privacy settings, and from the Gallery Theme tab, ...
Which php libraries are installed by default on my Dedicated Server?
The specific php libraries installed on your Dedicated Server depend on the operating system your server is using. Here are ...
The PHP Photo Gallery Template System
The template system embedded into the php photo gallery is designed to easily help you design your gallery the way ...
The information provided in this article is for general information and/or the comments is the sole responsibility of their respective authors and does not necessarily reflect the opinion of zeronese.net does not endorse any article and/or comments published by our web users unless otherwise noted.