BIG Problem

Discussion in 'Site & Server Administration' started by Soccerplayur012, Jan 1, 2008.

  1. #1
    I am creating a network of blogs (see: www.nbanewssite.com)

    At the bottom are links with subdomains to team specific blogs (see: nuggets.nbanewssite.com)

    The blog is within the public_html section, and each of the subsequent team blogs are located within a folder (public_html/nuggets). If the site isn't working, here is the error I'm getting:

    Help?
     
    Soccerplayur012, Jan 1, 2008 IP
  2. Spider-Man

    Spider-Man Banned

    Messages:
    2,684
    Likes Received:
    211
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Most likely an .htaccess file problem. Who are you hosting with?
     
    Spider-Man, Jan 1, 2008 IP
  3. Soccerplayur012

    Soccerplayur012 Peon

    Messages:
    1,291
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I'm hosting on my client's dedicated server.

    What would I do to fix it?
     
    Soccerplayur012, Jan 1, 2008 IP
  4. Spider-Man

    Spider-Man Banned

    Messages:
    2,684
    Likes Received:
    211
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hmm, not entirely sure as many servers, mainly dependent on whether they are Windows or Linux based servers. Navigate to your root folder (where you store your files), there should be a file called .htaccess (this isn't a file type, it's a file standard, so is called .htacces). Please PM me the contents of your htaccess file and I'll sort it and send it back.
     
    Spider-Man, Jan 1, 2008 IP
  5. InFloW

    InFloW Peon

    Messages:
    1,488
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Well I imagine the user is running suPHP or phpsuexec in their environment. In this case you cannot define php variables in a .htaccess file which some scripts love to include with their installers. The other common issue is improper permissions, so setting a php file to 777 instead of 644 or a folder to 777 instead of 755 for example.
     
    InFloW, Jan 1, 2008 IP
  6. Soccerplayur012

    Soccerplayur012 Peon

    Messages:
    1,291
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I had set a PHP file to 777 earlier because it was the header file within my Wordpress theme, and it needed to have write permissions.

    How would I handle that?
     
    Soccerplayur012, Jan 1, 2008 IP
  7. InFloW

    InFloW Peon

    Messages:
    1,488
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Well change the permissions of the file to 644. If your host is using suPHP or phpsuexec 777 on a php file will cause 500 internal errors.
     
    InFloW, Jan 1, 2008 IP
  8. Soccerplayur012

    Soccerplayur012 Peon

    Messages:
    1,291
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    0
    #8
    My client told me that his host changed security measures within his server and that caused the errors -- possible or not?
     
    Soccerplayur012, Jan 1, 2008 IP
  9. InFloW

    InFloW Peon

    Messages:
    1,488
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    0
    #9
    They probably switched to suPHP so as I said fix the permissions.

    PHP files should be 644

    directories should be 755

    PHP variables cannot be set in a .htaccess files so for example
    php_flags register_globals on

    is no longer valid it must be done in a php.ini as

    register_globals = on
     
    InFloW, Jan 1, 2008 IP
  10. Soccerplayur012

    Soccerplayur012 Peon

    Messages:
    1,291
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    0
    #10
    so I have to go through and change each and every php file and directory? Please say it isn't so :[
     
    Soccerplayur012, Jan 1, 2008 IP
  11. InFloW

    InFloW Peon

    Messages:
    1,488
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Yep that is the case if you lack SSH access. If you have SSH I believe these would do the trick for permissions

    In each case replace username with the actual username of the account.

    I am also assuming this is under cPanel
     
    InFloW, Jan 1, 2008 IP
  12. Soccerplayur012

    Soccerplayur012 Peon

    Messages:
    1,291
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    0
    #12
    What is SSH?
     
    Soccerplayur012, Jan 2, 2008 IP
  13. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    #13
    SSH is a telnet client software which is used to remotely work on server .

    Using ssh we can control the server or administrate the server.

    if its a unix server then you must know unix to handle it better

    If you donot know unix you can learn unix commands and basics


    Regards

    Alex
     
    kmap, Jan 2, 2008 IP
  14. chrissyj

    chrissyj Peon

    Messages:
    56
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Error 500 means that a script had an error. If you find the apache error log (NOT the access log!) for the website, there SHOULD be an error message in there telling you what is wrong. Of course, I'm assuming you are using Apache, and that the error logging is not turned OFF in the php.ini file.

    Good Luck!
     
    chrissyj, Jan 2, 2008 IP
  15. Soccerplayur012

    Soccerplayur012 Peon

    Messages:
    1,291
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    0
    #15
    error logs:

    [Wed Jan  2 18:23:47 2008] [alert] [client 68.253.33.207] /home/nbanewss/public_html/nuggets/.htaccess: Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
    [Wed Jan  2 18:23:47 2008] [alert] [client 68.253.33.207] /home/nbanewss/public_html/nuggets/.htaccess: Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
    [Wed Jan  2 18:23:47 2008] [alert] [client 68.253.33.207] /home/nbanewss/public_html/nuggets/.htaccess: Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
    [Wed Jan  2 18:23:47 2008] [alert] [client 68.253.33.207] /home/nbanewss/public_html/nuggets/.htaccess: Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
    [Wed Jan  2 16:49:35 2008] [alert] [client 66.249.73.57] /home/nbanewss/public_html/raptors/.htaccess: Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
    [Wed Jan  2 16:49:35 2008] [alert] [client 66.249.73.57] /home/nbanewss/public_html/raptors/.htaccess: Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
    [Wed Jan  2 15:26:26 2008] [alert] [client 66.249.73.57] /home/nbanewss/public_html/hawks/.htaccess: Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
    [Wed Jan  2 15:26:26 2008] [alert] [client 66.249.73.57] /home/nbanewss/public_html/hawks/.htaccess: Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
    [Wed Jan  2 14:21:02 2008] [alert] [client 66.249.73.57] /home/nbanewss/public_html/bobcats/.htaccess: Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
    [Wed Jan  2 14:21:02 2008] [alert] [client 66.249.73.57] /home/nbanewss/public_html/bobcats/.htaccess: Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
    
    Code (markup):
     
    Soccerplayur012, Jan 2, 2008 IP