internal server error

Discussion in 'Site & Server Administration' started by decepti0n, Dec 27, 2006.

  1. #1
    I figure its something to do with the .htaccess file since it was that the last time, but i can't see anything wrong, and it all works fine on my localhost. Can anyone see anything?

    RewriteEngine On
    RewriteRule ^(cp)/+$ /user_cp.php
    RewriteRule ^(images|animations|games)/+$ /content.php?step=$1
    RewriteRule ^layouts/([A-Za-z]+)/$ /layouts.php?step=$1
    RewriteRule ^layouts/premade/([A-Za-z]+)$ /layouts.php?step=premade&category=$1
    RewriteRule ^backgrounds/view/([A-Za-z_]+)$ /backgrounds.php?Action=View&ID=$1
    RewriteRule ^(feeds|layouts|backgrounds|contact|content|register|login|cp)/?$  /$1.php
    RewriteRule ^content/special/([A-Za-z]+)/$ /content.php?step=$1
    RewriteRule ^layouts/([A-Za-z0-9-_]+)$ /layouts.php?step=id&title=$1
    RewriteRule ^member/([A-Za-z0-9-_]+)$ /members.php?user=$1
    RewriteRule ^feeds/([A-Za-z0-9-_]+)/$ /feeds.php?feedName=$1
    RewriteRule ^layouts/$ /layouts.php
    RewriteRule ^info/(terms|privacy)/$ /docs.php?page=$1
    RewriteRule ^contact-tables/([0-9]*)$ /contacttables.php?page=$1
    RewriteRule ^content/glitters/([0-9]*)$ /glitters.php?page=$1
    Code (markup):
     
    decepti0n, Dec 27, 2006 IP
  2. koolasia

    koolasia Banned

    Messages:
    1,413
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    0
    #2
    so does this server have mod rewrite enabled
     
    koolasia, Dec 27, 2006 IP
  3. akashif

    akashif Guest

    Best Answers:
    0
    #3
    hi

    do a `tail` to apache Error log.

    tail -f error_log ( your apache Error file name can be different)

    after starting the tail access the page , you will see the exect Error and line in .htaccess which is causing the Error.

    if not sure paste the last few lines of error log here


    thank
     
    akashif, Dec 28, 2006 IP
  4. Nick_Mayhem

    Nick_Mayhem Notable Member

    Messages:
    3,486
    Likes Received:
    338
    Best Answers:
    0
    Trophy Points:
    290
    #4
    And I can bet your PHPInfo.php file will be showing that your php is compiled as CGI module not an Apache module.

    Read this: http://www.hostmagik.info/phpsuexec.php

    It might give you some ideas
     
    Nick_Mayhem, Dec 28, 2006 IP
  5. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #5
    mod_rewrite is nothin to do with php, its an apache directive, the way php is compiled has no affect on it's operation.
     
    krakjoe, Dec 28, 2006 IP
  6. akashif

    akashif Guest

    Best Answers:
    0
    #6
    perfect :) .. have to see tha apache Error log to see the line which is infact causing the Error...
     
    akashif, Dec 28, 2006 IP
  7. Nick_Mayhem

    Nick_Mayhem Notable Member

    Messages:
    3,486
    Likes Received:
    338
    Best Answers:
    0
    Trophy Points:
    290
    #7
    I am referring that mod_rewrite has nothing to do with this problem he has.

    I have had a similar problem and it was due to the file permissions higher then 755 and folder permissions higher then 644.

    So just suggesting that he should also be looking in other directions to solve his problem as the .htaccess file he has posted here is not having any probs.
     
    Nick_Mayhem, Dec 28, 2006 IP
  8. syntax_error

    syntax_error Peon

    Messages:
    58
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    It seems you must see the error log which causing the error guessing will be not right, there are many problems due to server setting so if you have a error log viewer just copy the error and post here i will try to solve the issue :)
     
    syntax_error, Dec 28, 2006 IP