help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • NickJ
    Junior Member
    • Apr 2004
    • 8

    #1

    help

    I'm trying to use the image software Gallery and I get an error message Status: (expected 0).

    The Gallery FAQ says this means that Gallery is unable to get a status message from PHP, which it relies on. One possible solution is that your host has disabled some needed php functions.

    To determine if they have create a PHP file containing

    <?php
    echo ini_get("disable_functions");
    ?>


    What am I supposed to do? Is there some way I can fix this?

    I'm pretty clueless about this stuff so I'd appreciate any help.

    Thanks,

    Nick
  • KyleC
    Senior Member
    • Mar 2004
    • 291

    #2
    do you get this on the setup status page?

    gallery should run fine on dathorn.
    want me to take a look at it? PM me.
    -Kyle

    Comment

    • NickJ
      Junior Member
      • Apr 2004
      • 8

      #3
      no, I get it when I'm debugging. I don't want to bother you over something like this if it's me who is doing something wrong. Let me look at it a bit more carefully, and if I still can't make it work I'll get back to you.

      thanks so much, I really appreciate all your help.

      Nick

      Comment

      • NickJ
        Junior Member
        • Apr 2004
        • 8

        #4
        One more little thing...

        So I get this error message when I try to configure gallery:

        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 (e.g. 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 /home/josefow/public_html/gallery>
        AllowOverride Options FileInfo
        </Directory>
        Is there something I can do about this?

        Thanks so much,

        Nick

        Comment

        • Grunfeld
          Senior Member
          • Mar 2004
          • 209

          #5
          I am running Gallery and it works fine here on Dathorn........ tricky to setup but it does work.....doesn't resolve your issue check the FAQ's on the Gallery web site they are great as is the support forums there, post your questions you will get help

          Cheers,

          Gary
          Cheers,

          Gary
          (This space for rent)

          Comment

          • Frank Hagan
            Senior Member
            • Mar 2004
            • 724

            #6
            Take a look at this post regarding phpSuExec being used here at Dathorn:

            This thread contains information regarding some of the basic differences that you may encounter between running php as CGI with suexec and running php as an apache module. What is the difference? Most sites will not be affected with the change, running php as cgi with suexec. Phpsuexec works in much the same way that cgi


            And then search over at the Gallery forums for how to set up Gallery when the host is using phpSuExec.

            I had to modify my installation, but I can't remember what I did back when we switched over.

            Comment

            • NickJ
              Junior Member
              • Apr 2004
              • 8

              #7
              So I posted to the gallery forums a while back and I have yet to receive a reply. I checked out the link to another post on this forum and it said:

              .htaccess
              You cannot manipulate the php.ini settings with .htaccess when running php as cgi/phpsuexec.

              If you are using .htaccess with php_ value_entries within it, you would receive an internal server 500 error when attempting to access the scripts. This is because php is no longer running as an apache module and apache will not handle those directives any longer.

              All php values should be removed from your .htaccess files to avoid this issue. Placing a php.ini file in its place will solve this issue. (Please see below.)
              I'm not sure what the php_value_entries in my .htaccess file are though. I was hoping that if I pasted my .htaccess file below someone could tell me what I should put in the php.ini file.

              # BEGIN Gallery section
              # (Automatically generated. Do no edit this section)
              # Note: still under development, so format may change.
              # If you edit this file, make a backup before runnng the Config. Wizard.


              Options -Indexes +FollowSymLinks
              <IfModule mod_rewrite.c>
              RewriteEngine On
              RewriteBase /gallery/
              RewriteRule ^([^\.\?/]+)/([0-9]+)$ /gallery/view_photo.php?set_albumName=$1&index=$2 [QSA]
              RewriteRule ^([^\.\?/]+)/([A-Za-z_0-9\-]+)$ /gallery/view_photo.php?set_albumName=$1&id=$2 [QSA]
              RewriteRule ^([^\.\?/]+)/$ /gallery/$1 [R]
              RewriteRule ^([^\.\?/]+)$ /gallery/view_album.php?set_albumName=$1 [QSA]
              </IfModule>
              # END Gallery section. Add User changes below this line
              Also, for the gallery installation, does anybody know if I just have to change the .htaccess file in the root gallery directory or also in other directories like /setup etc.

              Thanks so much for all your help guys, you're great!

              Nick

              Comment

              • mgu
                Junior Member
                • Sep 2004
                • 4

                #8
                with an error of 500 Internal Server Error, its likely that something is chmoded 777 and due to phpSuExec here at Dathorn should be 755

                I know this is an older post but FYI for the next person...

                Comment

                Working...