500 error when installing Gallery in Cpanel

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • halyfax
    Senior Member
    • Mar 2004
    • 124

    500 error when installing Gallery in Cpanel

    I tried to install Gallery using the cpanel auto install and instantly get a 500 internal server error after the install
  • Buddha
    Senior Member
    • Mar 2004
    • 825

    #2
    Probably htaccess file. IIRC Gallery 1.5 trys to set a couple PHP values. Need to move those into a php.ini file. Think they're only need for setup though?

    What version?
    "Whatcha mean I shouldn't be rude to my clients?! If you want polite then there will be a substantial fee increase." - Buddha

    Comment

    • Buddha
      Senior Member
      • Mar 2004
      • 825

      #3
      Get it working Halyfax?
      "Whatcha mean I shouldn't be rude to my clients?! If you want polite then there will be a substantial fee increase." - Buddha

      Comment

      • halyfax
        Senior Member
        • Mar 2004
        • 124

        #4
        Originally posted by Buddha
        Get it working Halyfax?
        no I haven't had the time to go back and work on it. I have never messed with php.ini files before so wasn't sure where to start

        Comment

        • Buddha
          Senior Member
          • Mar 2004
          • 825

          #5
          Place the following:
          Code:
          auto_prepend_file = "php_value_ok.php"
          magic_quotes_gpc = off
          ... in a file called "php.ini" (without the quotes) and place that file in the Gallery setup directory (that's: /gallery/setup/).

          Comment out "#" the following lines in the setup htaccess file.
          Code:
          # $Id: .htaccess,v 1.17 2004/09/02 19:59:38 cryptographite Exp $
          #<IfModule sapi_apache2.c>
          #php_value auto_prepend_file	./php_value_ok.php
          #php_value magic_quotes_gpc off
          #</IfModule>
          
          #<IfModule mod_php4.c>
          #php_value auto_prepend_file	./php_value_ok.php
          #php_value magic_quotes_gpc off
          #</IfModule>
          
          #<IfModule mod_php5.c>
          #php_value auto_prepend_file	./php_value_ok.php
          #php_value magic_quotes_gpc off
          #</IfModule>
          
          Options +FollowSymLinks
          <IfModule mod_rewrite.c>
          RewriteEngine On
          RewriteRule ^(index.php)$			index.php?init_mod_rewrite=1&ampersandbroken=    [QSA]
          RewriteRule ^$					index.php?init_mod_rewrite=1&ampersandbroken=    [QSA]
          </IfModule>
          I think that should get Gallery 1.5.1 setup going? You can probably do all this from cpanel.

          Of course, if it doesn't work there are others here who actually know what there doing.

          EDIT: Found this if it helps: http://www.modwest.com/help/kb2-182.html
          Last edited by Buddha; 10-05-2005, 03:26 PM. Reason: Added some quotation marks.
          "Whatcha mean I shouldn't be rude to my clients?! If you want polite then there will be a substantial fee increase." - Buddha

          Comment

          Working...