.htaccess problem
drabino
Joined: 2005-02-24
Posts: 12 |
Posted: Tue, 2005-03-01 16:21 |
I'm having a problem with .htaccess on this installation. I've tried setting it at 644 and I've tried setting it at 777 and both ways it prevents me from getting into the gallery config wizard. As soon as I remove it, I can get in, but then on the last page of course it comes up as an error that needs to be fixed. And so do the following errors even though what it's saying is not true. In other words, for some reason the program is not picking up on the fact that these folders are there. Error: Directory http://host.mynocdns3.com/~robinsch/gallery/albums does not exist. Please create it. It is there. Error: Directory http://host.mynocdns3.com/~robinsch/gallery/tmp does not exist. Please create it. It is there. Error: use_exif: http://host.mynocdns3.com/~robinsch/gallery/jhead must be a valid file (not a directory)! But it is there and if there's no file extension, how can it indicate to be a file?---- Error: Could not find http://host.mynocdns3.com/~robinsch/gallery/bin/pnmtojpeg. Check your NetPBM directory to see which PNG->JPEG converter you have (or just try using ppmtojpeg instead). Please check your configuration (or use ImageMagick). I found the file in Netpbm, but is the file supposed to be in the bin directory or in netpbm? The following information is required to get an answer: |
|
Posts: 13451
OK, lets break this one down...
1. Your host uses Linux (Linux host.mynocdns3.com 2.6.8.1-HN-2.0-P4 #1 SMP Tue Oct 19 11:13:46 EDT 2004 i686) not Windows XP.
2. the file is to be called .htaccess and be placed in your gallery/ directory, then chmod 777.
You can create a .htaccess file on Windows as well, and this is how:
1. Open notepad
2. File -> Save As
3. Use "All files" as the filetype in the dropdown
4. enter .htaccess in the filename box
5. Save
6. Done
3. You need to extract the NetPBM binaries, not upload the compressed file. You need the NetPBM 1.4 Linux-Intel binaries to be able to run them on that host.
4. Try using paths and not URLs, and your live would be much easier too, you have entered the URL to your binaries, not the system path. FAQ Gallery:c.32 might prove very helpfull.
Posts: 12
I have been able to make it through several more obstacles. Now my remaining obstacles are:
1. Can't find netpbm. I've installed the binaries that I got from the download page. I can't get it recognized so I'm thinking of using ImageMagick instead.
The instructions stymie me, however. THere are so many versions and i have no idea which one to use. I am lost if it's anything but a .zip file. HELP!
2. uploading .htaccess to the gallery directory shuts me out of the gallery and I get an error message. I've tried it several times in both CHMOD's recommended--777 and 644. Both ways I get locked out. I've asked the server administrators what's up and they simply are curious why .htaccess is supposed to be an empty file. In otherwords, no help there.
HELP!
Posts: 12
I did get .htaccess to work and not shut me out. Now the only problem is netpbm. The config wiz is recommending version 9.9 but all I see is netpbm_gallery-1.4-pl2-linux-intel.zip.
ImageMagick looks beyond me to install. I don't understand the instructions...
Posts: 13451
drabino, use the NetPBM files, they are fine. 1.4 is our numbering scheme.
.htaccess is supposed to be empty, and writeable, because Gallery will fill it with info when you finish the config.
Posts: 391
Hi!
The http://host.mynocdns3.com/~robinsch/gallery/bin/
doesnt contain any netpbm files.
Download the netpbm_gallery-1.4-pl2-linux-intel.zip and unzip them and then chmod them. Then rerun the config wizard and put in the path to the binaries.
Then run secure.sh
Posts: 12
Hi NitroTN,
I get it now--they go into the bin folder! OK.
But how to chmod them? What numbers? 777? 644? what? :D
Posts: 391
chmod 755 should do.
Then also find the path to convert (imagemagicks tool).
Do a:
which convert
You have 2 of 3 imagemagick binaries installed on your server - you just have to find them...
Posts: 12
You're starting to take me into alien territory.
I'm guessing I have to convert 2 or 3 imagemagick binaries to netpbm binaries?
also, did the binaries inside bin (from netpbm) have to remain in a netpbm folder or can they go directly into bin?
How do I find these imagemagick binaries? What is a which convert and how to do it?
steep learning curve.
Posts: 12
Well!
I got into the gallery but now it doesn't want to accept my user name and password, the one I used to do the configuration!
Now what?
and thanks for your help... :wink:
Posts: 391
These files needs to be chmod 755:
/home/robinsch/public_html/gallery/bin/ppmtogif
/home/robinsch/public_html/gallery/bin/ppmquant