Menu

Windows NT Install

Help
Karl K.
2001-02-14
2001-03-06
  • Karl K.

    Karl K. - 2001-02-14

    I have Installed phpix2.0pre4 on a windows NT 4.0 Server (IIS4.0) and I just wanted to share my experience. Obviously I had to use the 3rd installation method listed in the install file (Manual/FTP Only). The first problem I had was no index.php. Both index.php and dfl_index.php are the same placeholder page. I had to go through the cvs to find a real index.php (Revision 1.2) in the attic directory. Is this the latest revision of index.php?
    Once I got the index.php everything (almost) started working. Here are the problems I have:

    1. The images are recreated everytime (instead of using the ones in the cache) if phpix is in the root of the webserver, if I move it to a directory off of the root (like /photos) it will use the cached images and everything is quick.

    2. When I add a new folder to the albums directory phpix2 can't seem to create the corresponding directory in the cache folder.
    I get the message (Warning: imagejpeg: unable to open 'cache/album3/imagename.jpg_scaled_100.jpg' for writing in common.inc on line 280) for each image in the new directory.
    If I manually create the folder in the cache directory phpix2 has no problem writing in the directory. I am giving everyone read and write permisions to the cache folder in IIS and "full control" in the NTFS permissions.

    Besides these two problems everything else works great. I really like this script. My next step is to get ImageMagick working on NT.

     
    • papa georgio

      papa georgio - 2001-03-06

      Your two problems(images being recreated and no directory being created) have to do ,I believe, with convert.sh. Take a look at it, it seems to make all the calls for that stuff ie. mkdir but its missing some package that is obviously found on a unix machine witch i cant seem to locate for windows.

       
    • Anonymous

      Anonymous - 2001-03-06

      Woo woo windows testers!

      I'm going to take a total shot in the dark and say that, because you're running Windows, the $SCRIPT_FILENAME environment variable isn't what PHPix2 is expecting.  So, I want you to take the following steps:

      1. Change the "chdir($matches[1]);" in common.inc to "chdir('c:\\wherever\\you\\installed');"

      2.  Change the "$scriptbase =" line in common.inc to "c:\\wherever\\you\\installed"

      3. Let me know if that fixes things :-)

      Since you're using the "gd" method, the convert script never gets used.  You can delete it if you want.  The new folder problem is something I should have fixed a long time ago and isn't unique to NT; it's that PHPix 1.x put the thumbnails in the albums directory and didn't ever need to create new directories.  Because I split the two apart, I need to make sure the directory is there before creating the thumbnail.  The version in CVS does this now (I think, can you try it?).

       
    • papa georgio

      papa georgio - 2001-03-06

      ok i did that, it didnt seem to help any. No error messages came up either

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.