SeamusWarren

Joined: 2003-10-20
Posts: 36
Posted: Tue, 2003-10-21 13:59

I uploaded Gallery here: http://home.swiftdsl.com.au/~cybernaut/.

When I click on the "Gallery" directory I get this page telling me that Gallery has not been configured: http://home.swiftdsl.com.au/~cybernaut/gallery/.

When I click on the "Configuration Wizard" link, I get this "500 Internal Server Error" page: http://home.swiftdsl.com.au/~cybernaut/gallery/setup/index.php.

Am I supposed to configure Gallery on the ISP's Web server? Do I need "phpmyadmin" to do this?

Sorry about the dumb questions. I am pretty ignorant on this stuff. :)

Thank you. :)

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Tue, 2003-10-21 15:03

It shouldn't do that. Try removing gallery/setup/.htaccess

If that doesn't work, ask again in the Installation forum.

 
SeamusWarren

Joined: 2003-10-20
Posts: 36
Posted: Wed, 2003-10-22 20:17

Thanks for the suggestion. :)

Well, I did as you said and was then able to run that configuration thingy but I think it wants me to put .htaccess back on. :) I'll try running it again with .htaccess back on. :)

Here is the screen that came up:

Quote:
Gallery Setup: Step 1
This is the Gallery system check page. This page will validate your installation to make sure that you have all the necessary components and permissions on this system and that everything is configured reasonably.

Having problems? Try the documentation, Gallery Diagnostics Page and Gallery Help Page.

Check to see how old version Gallery of 1.4-pl2 is. Success
This version of Gallery was released on 10/11/03. You can check for more recent versions by visiting http://gallery.sourceforge.net.

--------------------------------------------------------------------------------

Check to see if you are running PHP 4. Note that some versions of PHP have bugs that cause Gallery to fail. PHP4.0.0 uses a different file upload protocol, versions 4.0.3 and 4.0.3pl1 have a bug in the unserialization code that cause Gallery to be unable to read its own database. Upgrade to at least PHP 4.0.4pl1 if you can. Success
PHP v4.1.2 is OK

--------------------------------------------------------------------------------

Check to see if you are running PHP 4.1 or greater. If you want to run the multi-language version of gallery, you need php 4.1. Upgrade to at least PHP 4.1 if you can. Success
PHP v4.1.2 is OK

--------------------------------------------------------------------------------

Check to see if PHP is running in Safe Mode. Safe mode is a PHP security feature commonly used in shared environments. Gallery cannot run when safe mode is enabled because it imposes too many restrictions. Success
safe mode is off

--------------------------------------------------------------------------------

Allow the Gallery .htaccess file to set application specific configuration options for the Gallery application. This is controlled by the webserver owner so it's not always possible for you to change it. The main drawbacks to not having this are that you may not be able to upload files > 2MB (eg, big ZIP files) and you may not be able to use mod_rewrite (see below). Warning!
Apache is not obeying your .htaccess file. Try entering the following into your web server's httpd.conf file:

<Directory /swiftdsl/0299847679/cybernaut/html/gallery>
AllowOverride Options FileInfo
</Directory>

--------------------------------------------------------------------------------

Check to see if magic quotes are enabled on your PHP server. If they're on, you may notice strange behaviour if you put ' (single-quote), " (double quote) or \ (backslash) characters in titles or captions in the gallery. Warning!
Magic quotes are on. Your webserver owner can turn them off by putting :
magic_quotes_gpc = Off
in your php.ini file

--------------------------------------------------------------------------------

Check to see if your webserver is compiled with mod_rewrite. Mod_rewrite allows the Gallery to use shorter URLs that are easier to read and look nicer when you mail them to your web-challenged relatives. It's not an essential feature. Warning!
Either mod_rewrite is not installed or your .htaccess file is not enabled (see above). Either way, we'll have to use longer URLs in the Gallery. If you want to turn it on I'd suggest that you make sure that your .htaccess file works and then if it still doesn't work you may need to reconfigure and rebuild Apache with this flag:
--enable-module=rewrite

--------------------------------------------------------------------------------

Check to see if NetPBM is installed so that Gallery can manipulate images (rotate, resize, make thumbnails, etc). You need to have NetPBM or ImageMagick installed. Warning!
I can't find NetPBM. If it's installed and not in the path of the webserver user that's OK -- you can specify the path to NetPBM by hand on the following page. If it's not installed, you have two choices:Gallery prefers NetPBM version 9.9 and up. You can install just the binaries Gallery needs from Gallery on SourceForge. Or, you can compile and install the entire NetPBM package from NetPBM on SourceForge.
Note: You can install the binaries from the Gallery site even if you don't have root access on your box! If you can't get it working, try leaving the NetPBM path blank and using ImageMagick intead.

--------------------------------------------------------------------------------

Check to see if ImageMagick is installed so that Gallery can manipulate images (rotate, resize, make thumbnails, etc). You need to have ImageMagick or NetPBM installed. Warning!
I can't find ImageMagick. If it's installed and not in the path of the webserver user that's OK -- you can specify the path to ImageMagick by hand on the following page. If it's not installed, you must install it. Gallery prefers ImageMagick version 5.4.8 and up. You can compile and install the entire ImageMagick package from www.ImageMagick.org.
Note: They also have binaries available for assorted operating systems. If you can't get it working, try leaving the ImageMagick path blank and using NetPBM instead.

--------------------------------------------------------------------------------

Check to see if jhead is installed so that Gallery can examine EXIF headers embedded in images created with most digital cameras. Warning!
I can't find jhead. If it's installed and not in the path of the webserver user that's OK -- you can specify the path to jhead by hand on the following page. If it's not installed, you can install it yourself. jhead is a public domain EXIF parser. Source, linux binaries, and windows binaries can be found at the jhead homepage.
Could not locate jhead

--------------------------------------------------------------------------------

Check to see if jpegtran is installed so that Gallery can perform lossless rotations (only works on JPEG images) Warning!
I can't find jpegtran. If it's installed and not in the path of the webserver user that's OK -- you can specify the path to jpegtran by hand on the following page. If it's not installed, you can install it yourself. jpegtran is a freely distributable tool distributed by the Independent JPEG Group as part of libjpeg. Source may be found at the IJG homepage. Binaries may be found at the JPEG club website or in the libjpeg package of Linux distributions.
Could not locate jpegtran

--------------------------------------------------------------------------------

Check to see if PHP is compiled with gettext for fast translations. Success
gettext installed

--------------------------------------------------------------------------------

Check to see what languages are available Warning! Only 28 of 29 possible languages are available. If you want the missing languages, download a fresh copy of Gallery from http://gallery.sourceforge.net.

--------------------------------------------------------------------------------

Testing to see if which locales are absent Serious Warning! We were unable to detect any system locales. Multilanguage functions will be disabled. Please install the corresponding locales or ask your Provider to do this. This problem is known on Debian systems. In this case please have a look at this Debian locale HowTo

--------------------------------------------------------------------------------

Your installation has serious warnings! Continue at your own risk...

 
SeamusWarren

Joined: 2003-10-20
Posts: 36
Posted: Wed, 2003-10-22 20:18

Well, when I put .htaccess back on my Web space it didn't work again. So I suppose my ISP has to do something to allow me to use .htaccess? :)

Thank you. :)

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Wed, 2003-10-22 20:29

Don't put the setup/.htaccess back. You can proceed with those warning, though you will need to install netpbm (if your host hasn't got it).

 
SeamusWarren

Joined: 2003-10-20
Posts: 36
Posted: Sat, 2003-10-25 05:44

A Support person from the ISP I am with sent me this reply:

Quote:
Dear Seamus,

In regards to your Gallery installation, the main problem is that it expects "AllowOverride Options" to be enabled. This is impossible for us to offer from a security perspective and is a bad dependency for any software to rely on. The new web server is about as unrestricted as we can make it, which was it's reason for being commissioned as a dedicated server. There's probably nothing that can be done to fix this if the gallery software must have that option enabled.

Regards,

Andrew Ivins
System Administrator
Swiftel

Still not sure how to fix the issues outlined when I ran the Configuration program. One guy on a Swiftel forum told me to do the following:

Quote:
You need to install netpbm in your own webspace - it can be downloaded from sourceforge.

I then chmoded both the netpbm directory and each of the files inside the directory to '755'.

Man, I'm in over my head. What the hell is chmod?

 
SeamusWarren

Joined: 2003-10-20
Posts: 36
Posted: Sat, 2003-10-25 08:22

Where should I place the NetPBM file? I downloaded the netpbm-gallery version 1.1 zip from Sourceforge:
http://prdownloads.sourceforge.net/gallery/netpbm1.1-gallery1.0-win32.tgz?use_mirror=flow.

Should I upload the extracted 3 MB netpbm1.1-gallery1.0-win32 file to the "Gallery" directory on my Web space? There is an instruction in the Gallery Setup - Page 2 (here) that tells me to make sure the NetPBM file is made "executable". How do I make sure the file is "executable" before I upload it to my Web space?

Quote:
Path to NetPBM
The path to the directory containing NetPBM on your system. If you downloaded NetPBM from the Gallery download page, don't forget to make the files executable. Eg. /usr/local/netpbm or /usr/local/bin or c:\apps\netpbm

Thank you. :)

 
SeamusWarren

Joined: 2003-10-20
Posts: 36
Posted: Sat, 2003-10-25 08:27

And what of the "Admin" password requirement? Is the password no longer required now that I have removed the .htaccess file?

Sorry about all the questions.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Sat, 2003-10-25 08:49

SeamusWarren, check FAQ Gallery:c.25 for extraction info.
Executable: Set the permissions as described in the documentation.

The admin password is the one you specify in the Config Wizard - That applies whether or not you have an .htaccess in place.

 
SeamusWarren

Joined: 2003-10-20
Posts: 36
Posted: Sat, 2003-10-25 08:52

Okay, so I can "chmod" by right clicking on the file in SmartFTP.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Sat, 2003-10-25 08:55

SeamusWarren, check SmartFTP's documentation to figure out how you do it there. That differs from client to client, so I can't give you an universal description other that look for the chmod command. :)

 
SeamusWarren

Joined: 2003-10-20
Posts: 36
Posted: Sat, 2003-10-25 13:16

Thanks. Yeah, I can access "chmod" by right clicking in SmartFTP.

 
tmedina

Joined: 2003-11-04
Posts: 20
Posted: Wed, 2003-11-05 00:10

I have followed all of these instructions also and still get the error message that netpbm couldn't be found, even though I've used the test.php file and used the path it gave me in the configuration utility, I have chmod 755 the netpbm directory and each file within it..........what other suggestions?

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Wed, 2003-11-05 08:02

URL?

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Wed, 2003-11-05 08:07

tmedina, PLEASE DON'T ASK THE SAME QUESTION IN MULTIPLE THREADS!