I am soooooo close to getting Gallery to work on IIS... upl
Ryan
Joined: 2002-08-30
Posts: 12 |
Posted: Fri, 2002-08-30 19:34 |
I'm running IIS5 on win2k server. I have a test gallery at http://www.customdesignroofing.com/gallery The gallery program itself is now working great, but I can't seem to get the upload to work. I have scoured the forums and mail archives for info, but I'm still stuck. Victory is barely eluding my grasp. IUSR_ account has full control over the entire gallery dir as well as the c:netpbm dir. In IIS I have given "read, write and script execution" to the entire gallery dir. When I try to upload a .jpg file I get the following error: Processing status... c:netpbmjpegtopnm c:ftpsitecustomdesignroofinggalleryalbumsalbum01amigos_001.jpg | c:netpbmpnmfile --allimages Results: Error messages: Status: 128 (expected 0) Sometimes I will get an "access is denied" just after the "adding jpg." This tells me that the program is unable for some reason to copy the jpg file. I tried running that line from the command line: C:ftpsitecustomdesignroofinggallery>c:netpbmjpegtopnm c:ftpsitecustomdesi It cannot open the "amigos.jpg" file because it is not there. I checked. So, I copied the file manually to that folder and ran the command again: C:ftpsitecustomdesignroofinggallery>c:netpbmjpegtopnm c:ftpsitecustomdesi It looks like it works! This leads me to believe that my entire problem is not being able to copy the jpg file to the c:...album02 dir. I have double-checked the NTFS permissions which are full control for the IUSR_ account and IIS has given "read, write and script execution" to that folder. I can't figure out for the life of me what my problem is. I think someone must have encountered this problem and has hopefully found a solution?? I know people have Gallery working on IIS from the posts I've read about it. Can anyone help? :eek: |
|
Posts: 12
I noticed on some posts of people running Gallery that they have version Gallery v1.3.1-cvs-b10. Well I downloaded gallery-1.3.1.tar.gz. Is this version different than the one I am using? If it is would anyone mind telling me where I can get the correct version for IIS?
-Ryan
Posts: 12
Well, I now am able to upload files to Gallery intermittently... Meaning: I can upload a bunch of pictures, then the next minute, I get my typical error:
Processing status...
- Adding 146.JPG
Executing:
netpbmjpegtopnm c:ftpsiteanitabathgalleryalbumstest-album146_G.jpg | netpbmpnmfile --allimages
Results:
none
Error messages:
Status: 128 (expected 0)
Error: Invalid image: 146_G.jpg!
Need help? Look in the Gallery FAQ
If I tweak the config.php file on the following line:
$gallery->app->pnmtojpeg = "ppmtojpeg";
and change it to:
$gallery->app->pnmtojpeg = "pnmtojpeg";
then it will work again for another minute.....
Then I will be getting the same errors again. I also put two ppmtojpeg files in the dir with one having an .exe extension because from some of the errors, the program was unable to run the file, but this was fixed by adding an .exe extension... I'm trying to think of everything I can to get around this.
So, I can definitely fix the problem by changing that line, but it comes back again after a couple minutes. This leads me to believe that the program is changing some setting which messes me up again. I looked into it a little deeper and found that the netpbm files changed a critical file's name in the newer version. So it appears to me that Gallery is trying to determine which pnmtojpeg or ppmtojpeg file you are using and changes the config automatically. I think this is done in the "confirm.inc" file in the setup dir with the following lines in the file:
/*
* In NetPBM 9.19, they renamed "ppmtojpeg" to "pnmtojpeg". !@#$%
* Add a special case constant to tell us which binary we located on
* the machine (so we know which one to use!). It sucks that we
* have to do this!
*/
if (fs_file_exists($constants["pnmDir"]["value"] . "/pnmtojpeg")) {
$data .= one_constant("pnmtojpeg", "pnmtojpeg");
$view .= row_wrap(one_constant("pnmtojpeg", "pnmtojpeg"));
} else {
$data .= one_constant("pnmtojpeg", "ppmtojpeg");
$view .= row_wrap(one_constant("pnmtojpeg", "ppmtojpeg"));
}
Now I don't know how to code any of this stuff; I am only taking educated guesses. If I could be told(by a developer?) how to correctly remark out the lines which change the files being used on me, or somehow solve this problem, I could get Gallery working for good on IIS running on Win2k. I would also be happy to write a detailed article on everything I have done to get Gallery running on my server. So even though you guys don't officially support IIS, you could still have a good article to help people who want to set this up anyway.
I have found out how to fix my problem, but the fix is temporary. I can go back and change that little line back and forth all day to keep it working, but there has to be a more permanent way to solve it.
Can I get any help? :eek:
Posts: 12
:grin: I FINALLY GOT GALLERY RUNNING ON IIDS5! :grin:
I'm going to write an article on how I did it to help others if they want to accept the daunting task of setting up Gallery on IIS... Actually, it's not difficult if there are steps lined out on what needs to be done... It was just hard to figure out what those steps were.
I think I can post the article in the "User Guide" section of this site if the devs will approve.
Posts: 3
Ryan, congratulations!
I am at the upload error stage....can you help me with this thorn?..I have followed all the instructions on the reads for iis with the same results
Posts: 2
Hey man, do you mind sharing with the class here? :cool:
Posts: 2
I replaced the NetPBM files from the Gallery Sourceforge download page with this:
<!-- BBCode Start --><A HREF="http://www.e-xoops.com/public/modules/mydownloads/singlefile.php?lid=27" TARGET="_blank">http://www.e-xoops.com/public/modules/mydownloads/singlefile.php?lid=27</A><!-- BBCode End -->
And all of my upload problems went away.
Posts: 3
Where did you put your .dll files? system folder or binary folder?
Posts: 3
I put the contents of the file in the netpbm directory, overwriting the files that were there before. It worked like a charm!!
Posts: 3
...also, I'm wondering if anyone has run into this? I'm running under IIS without problems (after you're helpful tip!), but I can't seem to configure Gallery properly. I can run my configue.bat file, then go to the /gallery/setup URL, see the first page and then move to the second...
All I see is an "HTTP 405 - Resource not allowed" message. I found <!-- BBCode Start --><A HREF="http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q216493&" TARGET="_blank">this support article</A><!-- BBCode End --> on the M$ site tonight, but haven't had time to sift through it.
Wondered if anyone had ideas for a solution.
Posts: 3
Thats what I did as well....I have root access to the server but still seem to be getting this after trying all permission configs possible:
Executing:
c:inetpubwwwrootphoto_gallerybinjpegtopnm c:InetpubwwwrootPhoto_Galleryalbumsalbum01small.jpg | c:inetpubwwwrootphoto_gallerybinpnmfile --allimages
Results:
none
Error messages:
Status: -1 (expected 0)
Error: Invalid image: small.jpg!
Posts: 3
oh, not sure if this will help, but one other thing I did have to do...
changed the config.php line (again):
$gallery->app->pnmtojpeg = "pnmtojpeg";
to
$gallery->app->pnmtojpeg = "ppmtojpeg";
(of course I first had changed it to pnmtojpeg per the instructions posted originally...)
Posts: 12
Here's another good article to read that I found with regards to uploading:
http://gallery.menalto.com/modules.php?op=modload&name=GalleryDocs&file=index&req=viewarticle&artid=32
After uploading over 500 pics and thousands more to go from myself and many other people with their own accounts , I still get the occasional error, but if I try again once or twice it takes. If I upload 25 pics at a time via the URL I usually have 3-5 pics that don't take, and I have to resubmit them. I have increased the wait time from 30 seconds to 1000 seconds since it can take a long time.
I have never seen:
Error messages:
Status: -1 (expected 0)
so I don't know what to do there.
I always got Status: 1 or status:128 or something like that.
One thing that really helped though was turning on the logging in Event Viewer for the IUSR_ and System account. Then I could monitor the resources they were not able to get at when trying an upload. I have tried so many different things on my computer that I'm not exactly sure which things tipped off the gallery to work which makes writing my article very difficult unless I was to setup another gallery and do it all over again. :sad:
I am currently in the process of tightening my permissions as much as possible since I really opened up my machine to get Gallery working. I have tightened it up some so far, and I think I can make it secure again.
I also have my netpbm dir located at c:netpbm and am using the local path c:netpbm in the setup file to point to it. I think the main thing which causes problems is the permissions. If you are like me and have changed all your permissions around then it is very hard to figure out where the problem is since the error messages are not permissions specific.
According to that article I posted I have edited the confirm.inc file and messed with the config.php file in regards to the pnmtojpeg and ppmtojpeg files. I think those two files and getting them to work is where all the trouble comes from.
If you are really stuck on IIS permissions then check this out: http://iisfaq.com/default.asp?View=A30
There are tons of good articles at http://www.iisfaq.com
--hope this info can ease your pain. It'd be nice to get all these tidbits of knowledge regarding IIS all in one location since it requires some searching to find them all.
Gallery is by far the most sophisticated web photo display program I have found, and it has already saved countless hours even with the difficult setup. Thanks developers!
Posts: 12
I meant to post this article URL instead:
http://gallery.menalto.com/modules.php?op=modload&name=phpBB_14&file=index&action=viewtopic&topic=215&1173
Posts: 6
Following this thread and the FAQs, I was able to get galleray up and running on IIS, until I ran into an "unable to fork" issue. This is discussed in the troubleshooting forum, but I thought I'd link it here for anyone else who might get stuck at the same place I did.
<!-- BBCode Start --><A HREF="http://gallery.menalto.com/modules.php?op=modload&name=phpBB_14&file=index&action=viewtopic&topic=402" TARGET="_blank">http://gallery.menalto.com/modules.php?op=modload&name=phpBB_14&file=index&action=viewtopic&topic=402</A><!-- BBCode End -->