Menu

PHPix 2.0.3 Help Requested by HTML'er

Help
Chris Gegg
2004-02-12
2004-02-13
  • Chris Gegg

    Chris Gegg - 2004-02-12

    I noticed "This page created using PHPix 2.0.3" at the bottom of a picture gallery recently and couldn't help but get my hands on the script for my website.  Unfortunately, I've never graduated past HTML and haven't been able to get PHPix 2.0.3 working on my site.  I've checked with my ISP and they confirm that I have access to ImageMagix and GD in /usr/local/bin, but things just don't work.  I would appreciate any help someone would want to give to a PHP novice.
    Currently, all I get is a mess of text, e.g.,
    \n"; $colcounter++; } for ($x = $start ; $x < $start+$items_per_page and $filelist[$x] ; $x++) { $file = $filelist[$x]; if ($colcounter == $display_cols) { print "\n"; $colcounter = 0; } if (is_dir($realbase . "/$album/" . $file)) { print
    I can see where it is dropping into the index.phtml file, but I can't see why.
    Any ideas?

     
    • marino

      marino - 2004-02-12

      Your server is not configured to use the phtml extension. Change the extension to .php and see what happens.

       
      • Chris Gegg

        Chris Gegg - 2004-02-12

        Awesome, thanks.  That worked.  Amazingly simple for all the trouble it's given me.

        Any idea why it only works in my root directory?  When I try to create a subdirectory for the PHPix, I get:  "500 Internal Server Error, The server encountered an internal error or misconfiguration and was unable to complete your request., Apache/1.3.29 Server at www.gegg.net Port 80"

        I would like to be able to set up separate albums, e.g., one that's public and one for family and friends.  If I can only get it to work in the root directory works, everything is public - essentially one large album, instead of smaller albums.

         
        • marino

          marino - 2004-02-12

          You installed it in the phpix directory not the root directory.
          http://www.gegg.net/phpix/?mode=album&album=cruise&dispsize=640&start=0

          You can rename phpix to "family" and then install everything again to another directory, you can call "friends".

           
          • Chris Gegg

            Chris Gegg - 2004-02-13

            That's really weird because I don't have a /phpix directory.  I can't explain why it looks like I have them in a phpix directory.  It's not there when I check.  All my phpix files are in the root directory.  I tried creating a similar set in a /phpix203 directory, but no luck.  Same interal error.  I made sure the phpix203 and album and generated directories are all 777 or drwxrwxrwx, but no difference.
            Maybe is has something to do with backing up to the root directory to get to the /usr/local/bin convert function?  I added . and .. before /usr, but that didn't change anything.
            THANKS AGAIN FOR ALL THE HELP.

             
            • marino

              marino - 2004-02-13

              I can see phpix203 just fine
              http://www.gegg.net/phpix203/

              I can also see
              http://www.gegg.net/phpix/ but I get a php error there. You messed that one up cuz yesterday was working just fine.

              Did you rename index.php to phpix.php ? Maybe that's what broke it.

              Warning: opendir(albums): failed to open dir: No such file or directory in /home/gegg/www/www/phpix.php on line 37

               
              • Chris Gegg

                Chris Gegg - 2004-02-13

                Thanks again.  Between my last post and just now another friend of mine who knows PHP looked at my site and suggested I change a few chmods for the folders.  Specifically, he had me change chmod on the phppix203 directory to 755 or drwxr-xr-x and on the generated directory to 777 or drwxrwxrwx.  I had tried 777 on all the directories yesterday, but that wasn't doing it, apparently the 755 was the trick.  Amazing how small a change can have such a large effect.
                He said that the reason you have to chmod 777 on that folder is that the apache user (or whatever user runs the web server) needs access to that
                folder.  If you run your own server you can set that to be 755, but have the folder owned by "apache."  But, in my case I have to own the
                folder since I need to maintain control over it.
                That's getting a bit beyond my knowledge, but now I have phpix running smoothly on my site.  Now, off to do some tweating.  Oh, and once I got the phpix203 directory working, I removed the albums and generated folders from my root directory, so the phpix files don't work there any more.
                Thanks again.  Oh, and any chance you have a good file manager to suggest using?  Right now I use WS_FTP and the webserver control panel and their a bit slow and not-so-user friendly.
                P.S.  How did you happen to run across my original PHPix Help posting?

                 

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.