Archive

Posts Tagged ‘install’

Install phTagr on Windows using WAMP

December 15th, 2012 Comments off

This post describes how to install webserver Apache, database mySQL and PHP on Windows using WAMP. WAMP is a great webserver toolset to get the free multi user web gallery phTagr running under windows with an ease. See also HowToInstallWamp for updates and changes.

Download WAMP

Download WAMP from their website. In time of writing, this was version wampserver2.2e-php5.3.13-httpd2.2.22-mysql5.5.24-x64 (64 bit version)

http://demo.phtagr.org/media/thumb/417 http://demo.phtagr.org/media/thumb/418

Install WAMP

Execute the WAMP installation file and follow the setup dialog. In the 7th step you are asked to enter your default browser. I’ve chosen Chrome.

http://demo.phtagr.org/media/thumb/424 http://demo.phtagr.org/media/thumb/425 http://demo.phtagr.org/media/thumb/426 http://demo.phtagr.org/media/thumb/427 http://demo.phtagr.org/media/thumb/428 http://demo.phtagr.org/media/thumb/419 http://demo.phtagr.org/media/thumb/420 http://demo.phtagr.org/media/thumb/421 http://demo.phtagr.org/media/thumb/423

After successful installation you can launch WAMP and you will see a green W in your tray icon bar.

http://demo.phtagr.org/media/thumb/429

Configure WAMP

To run phTagr we need to configure Apache. To have nice URLs we need the rewrite module. To enable it, click left on the green W icon in the tray icon and select the rewrite module under Apache / Apache modules.

http://demo.phtagr.org/media/thumb/430

Further we need PHP extension php_exif and php_zip under PHP / PHP extensions.

http://demo.phtagr.org/media/thumb/431

After enabling/disabling a module/extension in WAMP, WAMP restarts. The W icon becomes orange shortly. Further, the modules/extension list requires one or two restart/reloads to show the correct module/extension list. Do don’t be bothered by WAMP if it does not show the correct list immediately.

Create Database

phTagr uses a mysql database for fast media selection queries. Therefore, we need to create a database before installing phtagr. Start phpMyAdmin via W tray icon.

http://demo.phtagr.org/media/thumb/432

Create a phtagr user with a database via menu Users / Add user. Please select Create database with same name and grant all privileges on user creation.

http://demo.phtagr.org/media/thumb/433 http://demo.phtagr.org/media/thumb/435 http://demo.phtagr.org/media/thumb/434 http://demo.phtagr.org/media/thumb/436

Download phTagr

Please install latest version of open source gallery phtagr via website phtagr.org.

http://demo.phtagr.org/media/thumb/438

Extract the ZIP file to C:\wamp\www directory.

http://demo.phtagr.org/media/thumb/439

Now open your browser with at localhost/phtagr and follow the installation instructions.

http://demo.phtagr.org/media/thumb/442 http://demo.phtagr.org/media/thumb/440 http://demo.phtagr.org/media/thumb/444 http://demo.phtagr.org/media/thumb/443 http://demo.phtagr.org/media/thumb/441 http://demo.phtagr.org/media/thumb/446

phTagr runs on free web hoster!

January 9th, 2010 Comments off

I was just curious if phtagr runs fine on a free web hoster. And yes – it does and does a great job! This entry shows how you can setup your own photo web gallery – totally for free!

I chose the free hoster megabyet.net which comes with

  • Spam and ads free
  • 1,6 GB free storage
  • PHP
  • MySql database

… so all I need for running the gallery.

I signup at http://megabyet.com/signup.php for the free account, entered my new domain (of cause I choose the name phtagr), entered my name, email, and address. Then a captcha – success, I am human. After a few seconds I received an confirmation email with my new web space, username, password for the cPanel, and FTP.

Signup for a free web space at megabyet.net

So login to cPanel  for creating a mysql database – called phtagr, which becomes phtagrme_phtagr.

cPanel of megabyet.net

Successfull creation of a MySQL database

Successfull creation of a MySQL database

In the meanwhile I downloaded the latest phtagr source (r505) and extracted it locally. After doing that I was uploading it via FTP (FileZilla) the provided www directory of my new webspace.

Upload phtagr via FTP with FileZilla

Upload phtagr via FTP with FileZilla

Now its time to setup the new gallery! I opend the setup page of http://phtagr.megabyet.net/setup and followed the instructions. Everything worked fine. The connection to the database and the admin user creation had no problems.

Setup welcome screen

Setup welcome screen

Setup of database connection

Setup of database connection

Setup of admin account

Setup of admin account

I skipped these optional step

I skipped these optional step

As test images I used the screenshots which I did so far. I zipped them, uploaded the zip archive and imported the files after successful upload. Now it was time for some tagging.

Successful upload and extraction of the zip archive

Successful upload and extraction of the zip archive

Some tagging within the photo explorer

Some tagging within the photo explorer

The home page of phtagr

The startup page of phtagr

I wanted also to geo tag some images so I created a new google maps key (you need a google account for it) for the gallery URL http://phtagr.megabyet.net. The key was entered in the System -> Commands and now I was able to geo tag, too!

Entering the new key for google maps

Entering the new key for google maps

Geotagging with google maps

Geotagging with google maps

And as last test I did a WebDAV connection with cadaver to http://phtagr.megabyet.net/webdav. That worked, too!

WebDAV connection to gallery

WebDAV connection to my gallery files

So all in all it made lots of fun seeing this great gallery running on a free web hoster. You can upload your photos, tag them – also with geo location, see your images in the build-in slideshow, add other users with there upload quota, etc.

When do you install your own phTagr?

You can see all screenshots at the demo page or some screenhost at megabyet.net.

PS: What does not worked well was an initial setup at byethost.com where the database connection was not working for some reasons. Also the sending of email did not work out of the box at megabyet.net.