Media Gallery Installation
Media Gallery follows the standard Geeklog plugins
procedure, which has not been well documented.
Below we will document two methods to install the Media Gallery files,
via
FTP and via standard shell access to the server.
IMPORTANT:
Media Gallery v1.6.0 only supports Geeklog v1.4.0 or higher.
Also, Media Gallery 1.6.0 requires that you have the Caching
Template Library installed on your Geeklog site.
SPECIAL NOTE FOR cPanel / Fantastico Users
If you used an automated
installer, like Fantastic, cPanel, or Plesk) to install your Geeklog
site, the paths may be a bit different than these instructions. You
will need to look at your Geeklog config.php to understand exactly
where your files should be copied. See the Auto Installed Geeklog section
below.
Auto Installed Geeklog
If you used an automated installed such as Fantastico, cPanel, or Plesk
to install Geeklog, or you host with a provider that does not allow you
to store information above the web root, you will need to adjust the
installation instructions below to ensure the files are copied to the
proper directory. If you manually installed Geeklog, you can
skip this section.
Auto installers generally do not follow the standard Geeklog
installation procedure and instead place all the Geeklog files in the
web root (main web directory) of your site. If this is how
your Geeklog site was installed, you may want to reference this FAQ at
the Geeklog.net site for some security tips.
In order to know the exact destination directories on your web server,
you will need to look at your Geeklog config.php file. There
are several $_CONF settings that define your Geeklog paths.
For example, generally when an auto installer was used, or you host
with a provider that does not allow content outside the web root, the
value for $_CONF['path'] and $_CONF['path_html'] are the same.
This means that when you see references to items like this:
Create a directory called mediagallery
under your public_html
directory, you probably do not have a public_html
directory. Instead you would create the directory in the
following location:
$_CONF['path_html'] /mediagallery
Replacing the the $_CONF['path_html']
with the actual directory value of the variable, so if
your $_CONF['path_html'] was set to '/home/www/mysitename/' you would
create the mediagallery directory at:
/home/www/mysitename/mediagallery
path-to-geeklog
You will want to find the value for $_CONF['path'], this is the main
(or root) directory for Geeklog. Anywhere in the installation
instructions where you see path-to-geeklog
you will replace that with the path defined in $_CONF['path'].
public_html
You will want to find the value for $_CONF['path_html'] in the Geeklog
config.php, this is the directory where the web server actually looks
for your HTML pages and your PHP files. Anywhere in the
installation instructions where you see public_html, you
will replace that with the path defined in $_CONF['path_html'].
FTP Installation
If you do not have shell access to your server and can only
use an FTP client to access your server, follow these instructions.
If you have shell access to your server, you may want to jump
down to the Shell
Access Installation instructions below.
To install Media Gallery, or any Geeklog plugin, you will
need to un-archive the plugin on your local computer. The Media Gallery
distribution will automatically create all the proper directories when
it is
un-archived.
To un-archive a .gz file, you can use later copies of
WinZIP or WinRAR.
- Create a temporary
directory on your local hard drive to hold the Media Gallery files
(let's use C:\tmp for our example).
- Open the
mediagallery-1.6.0-1.4.0.tar.gz file with WinRAR.
- Select Extract All
Files and point to the C:\tmp directory as the destination.
Now we should have a local copy of the Media Gallery Plugin
in C:\tmp
The directory should look like this:
+tmp\
+ mediagallery\
+ admin\
+ docs\
+ language\
+ public_html\
+ sql\
+ templates\
+ tmp\
+ uploads\
+ functions.inc
+
Now that you have a copy on your local hard drive, it is
time to FTP up to your server.
Start your FTP program, I recommend FileZilla if you do not
have a program you use already.
FileZilla is free and supports many different operating systems
(Windows, Linux, etc.).
Connect to your web server with your FTP program.
Our first FTP will be the entire Media Gallery distribution
to your server. You will want to use the
diagrams below to find the proper directory on your server and move the
entire c:\tmp\mediagallery\ directory to the path-to-geeklog/plugins/
directory.
To find the path-to-geeklog
you can look in your Geeklog config.php file and see what directory is
defined
in the $_CONF[‘path’] line.
SPECIAL NOTE: For
the initial FTP of the Media Gallery
distribution, you will want to
actually drag the mediagallery
folder from your local computer to the plugins
directory on your server. The remaining
FTP’s below you will actually drag the files, not the parent
directory.
tmp\ path-to-geeklog/
| |
+ mediagallery\--+ + backups/
| + data/
| + include/
| + language/
| + logs/
| + pdfs/
+------------->+ plugins/
+ public_html/
+ sql/
+ system/
+ config.php
Next, you will need to make a sub-directory under the
public_html
directory on your server called mediagallery. For most FTP programs you
can create directories by highlighting the parent directory,
public_html
in this case, then right click the mouse, select New Folder and name it
mediagallery.
This procedure may be a little different depending on which FTP program
you are
using, check their documentation.
path-to-geeklog/
|
+ backups/
+ data/
+ include/
+ language/
+ logs/
+ pdfs/
+ plugins/
+ public_html/
|
+ mediagallery <--- Make this subdirectory
+ sql/
+ system/
+ config.php
Next you will need to FTP all the files from the
c:\tmp\mediagallery\public_html\* directory to your server. Here you
will
want to select all the files and sub-directories in the public_html\
directory,
not just the public_html\ folder. Follow the diagram below:
tmp\ path-to-geeklog/
| |
+ mediagallery\ + backups/
| + data/
+ public_html/*-+ + include/
| + language/
| + logs/
| + pdfs/
| + plugins/
| + public_html/
| |
+-------------->+ mediagallery/
+ sql/
+ system/
+ config.php
Next, you will need to make a sub-directory under the
admin/plugins/
directory on your server called mediagallery.
path-to-geeklog/
|
+ backups/
+ data/
+ include/
+ language/
+ logs/
+ pdfs/
+ plugins/
+ public_html/
| |
| + admin\
| |
| + plugins\
| + mediagallery <--- Make this subdirectory
+ sql/
+ system/
+ config.php
Next you will need to FTP all the files from the
c:\tmp\mediagallery\admin\* directory to your server. Here you will
want to
select all the files and sub-directories in the admin\ directory, not
just the
public_html\ folder. Follow the map below:
tmp\ path-to-geeklog/
| |
+ mediagallery\ + backups/
| + data/
+ admin/---+ + include/
| + language/
| + logs/
| + pdfs/
| + plugins/
| + public_html/
| + admin/
| + plugins/
+-----------------------> + mediagallery/
+ sql/
+ system/
+ config.php
Congratulations! You
should now have all the files uploaded to your server and you are ready
to skin
to the Online Installation step
below.
Standard Shell Access Installation
- Backup your
Geeklog database because the Media Gallery plugin adds tables. You can
do this with the built in database backup facility in the Admin menu.
- Uncompress the
Media Gallery plugin archive while in the path-to-geeklog/plugins
directory. The archive will create a directory called mediagallery.
- In your public_html
directory, create a directory called mediagallery.
- Under
public_html/admin/plugins/ directory, create a directory called
mediagallery.
- Change to your
path-to-geeklog/plugins/mediagallery directory.
- Copy the files in
the admin directory to the admin/plugins/mediagallery directory you
created in step 4.
- Copy the files in
the public_html directory to the public_html/mediagallery directory you
created in step 3.
Online Installation
Now that you have the files loaded on your server, it is
time to actually perform the Media Gallery installation into Geeklog.
- Go to the plugin
administration page. The Media Gallery plugin should show up with a
link to install it. Click this link. The install page will tell you if
it was successful or not. If not, examine the Geeklog error.log in
path-to-geeklog/logs/ to see what the problem was. Fix the problem and
re-install.
- The install page
will offer you a link to the configuration page of Media Gallery. You
should select this link and make the necessary changes to Media Gallery
configuration to suit your environment.
Standard Upgrade Process
- BACK
UP YOUR EXISTING ENVIRONMENT!
- SAVE YOUR TEMPLATES IF YOU HAVE
MADE MODIFICATIONS!
You will need to re-apply your customizations to the templates after
the
upgrade.
- Refer
to the installation instructions for New Installations for detailed
instructions on uploading the new Media Gallery distribution to your
server. If you are prompted to overwrite
existing files, be sure to answer Yes.
- Go
to the Geeklog Plugins Menu (from the Geeklog Administrator’s
menu).
- Select
mediagallery plugin.
- You
should have an UPDATE button, select
it.
- If all goes well, the
upgrade should be complete. If there were errors, please review your
logs/error.log and correct any issues and try the UPDATE again.
Post Upgrade Checks
- Verify
all Media Gallery configuration settings.
New in v1.4 is that all configuration options are now configured
online,
no longer in the config.php file. Go
into the Media Gallery Administration
Screen and select System Options
and verify all your settings are as you would like.
- Verify
that all your auto tags are
correctly formatted. Depending on your
previous version of Media Gallery, there have been several changes to
how auto
tags are used.
- If
you are upgrading from a v0.8x or v0.9x of Media Gallery, you should
rebuild all thumbnails. Media Gallery has the ability to
display
larger (200x200 pixel) thumbnails, v0.8x and v0.9x created all
thumbnails at
150x150 px size. See the Media Gallery Administration Screen
for
the Rebuild All Thumbnail option.