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.
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.
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\
+ include\
+ language\
+ lib\
+ 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.
path-to-geeklog directory is the directory db-configphp exists.
(In the case of Geeklog1.4, directory config.php exists.)
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.
Now that you have the files loaded on your server, it is time to actually perform the Media Gallery installation into Geeklog.
The following directory permissions must be set 757 (or 777).