Installing Tested on SME-6.01 modified
Gallery 2 is a web application and must be installed on your webserver in
order for you to use it.
Create Ibay Create an Ibay called gallery2 via your sever-manager panel. Make sure you enable php scripts.
Create mysql user and database Create via phpmyadmin an sql database called dbgallery and a user galleryuser.
Download de Gallery2 software by giving the following commands. Open Putty if you are working on a windows machine or use a terminal application on a linux machine to make a shh connection.
$ cvs -d:pserver:anonymous@cvs.sf.net:/cvsroot/gallery login (if it asks for a password, just hit enter)
$ cvs -d:pserver:anonymous@cvs.sf.net:/cvsroot/gallery co gallery2
This approach is great because any time you want to update
your Gallery install all you have to do is do:
$ cd gallery2
$ cvs update -Pd Move files: Take a look at where the files are stored in your IBAY most probably they will be in a directory /html/gallery2, you probably want them in the /html. So copy all the files over via
cp -Rv /home/e-smith/files/ibays/gallery2/html/gallery2/* /home/e-smith/files/ibays/gallery2/html/ After that remove the following directory:
rm -rf /home/e-smith/files/ibays/gallery2/html/gallery2/*rmdir /home/e-smith/files/ibays/gallery2/html/gallery2 Begin Installing - Open up your web browser and
browse to the http//:www.yoursite/gallery2/install/index.php.
Gallery 2 will walk you through the process of validating that your system is properly configured and will set everything up for you.
Authenticate - You will be asked to create and save a
small text file in order to authenticate. You may not proceed
until you do this. That’s how Gallery 2 knows that you’re authorized
to use the installer.
System Checks - The installer checks your system to
make sure that it will support Gallery 2. Make sure that all
checks are successful!
Installation Type - Gallery can support multiple independent sites with a single installation of the code. Here you will select a standard single install or the location of a new multisite install. There is more information about multisite in the
Gallery Codex. Storage Setup - Read the instructions on the
installer to set up a storage location for Gallery 2. This is
where Gallery 2 will store all of your images, as well as other cache
information.
Database Setup - Select your database type and enter
your database authentication information. If this is not your first Gallery 2 installation
and there are still some remains of the old installation, it will check the state of the
installed version and offer a clean install option which will delete all your data in the
storage directory and in the database. If the installed version seems to be fine, it will
also offer to reuse the existing database tables. Select this option if you did not start
the installer with the intent to start from scratch.
Admin User Setup - You are prompted for an
administrator username and password. Type in a password and
type it again to validate it. The full name and the email address are optional.
But entering an email address is highly recommended. Once you’re finished,
click ’Create’ to create the admin user for this installation of Gallery 2.
Create Config File - Gallery 2 will create the
config.php file in your Gallery 2 directory. This contains
all the answers you’ve provided in the installer and is
necessary for Gallery 2 to function properly. At this point, there’s also a sanity
check to prevent you from damaging your Gallery install by running the installer when you
should rather have started the upgrader.
Install the Core module - Here’s where we create all
the database tables and initial users and albums to get you
started. Unless something goes wrong, there’s nothing for you
to do here.
Install other modules - Gallery 2 has lots of different
modules that provide useful functionality. Choose which ones
you want to use. You can always go to the
[http://www.yoursite.com/gallery2/main.php?g2_view=core.SiteAdmin Site page later on to install, activate, deactivate or uninstall modules, so it’s ok to experiment here.
Check Security - Gallery 2 walks you through the process of
locking down your new
config.php.
Finished! - Congratulations! You have successfully
installed Gallery 2!