Closed Thread
Results 1 to 2 of 2

Thread: Internal Server Error because of .htaccess file

  1. #1
    striker9099 is offline x10Hosting Member striker9099 is an unknown quantity at this point
    Join Date
    Mar 2010
    Posts
    14

    Internal Server Error because of .htaccess file

    Hey everyone,

    I'm trying to run a website which was not coded by me on my hosting. The coder that actually wrote the code said I should include the following in my .htaccess file so the website would run as it should:
    php_flag register_globals on
    php_value session.auto_start on
    php_value session.use_only_cookies off
    php_value allow_url_fopen 1
    php_value allow_url_include 1
    When I did that, I started getting Internal Server Error 500. Is there anything wrong with the configuration?

  2. #2
    lemon-tree's Avatar
    lemon-tree is offline x10 Minion lemon-tree has a spectacular aura about
    Join Date
    Nov 2007
    Posts
    1,420

    Re: Internal Server Error because of .htaccess file

    Changing PHP settings is not available through .htaccess on free, so it is little surprise that this is causing an error. The minimum package that lets you have this sort of control over the PHP setup is a VPS.
    Also, the options you are trying to setup are pretty much all of the ones that are set to the opposite for a very good reason.

    - Register globals basically leaves all of your variables open to injection. Use $_GET or $_POST is you need to get user input.
    - Sessions can be started within PHP with a single function, so there is little need to add it to the config.
    - If you need to open a file, you can use file_get_contents with an external url. fopen may already be enabled though.
    - Url includes are a bad idea, they leave your site completely at the mercy of an external source and if they change their script to e.g. a password grabber then your site is instantly compromised.

    If this is all for a script you have downloaded, I recommend you delete it and look for something different. Any script that requires these to be enabled will have been written to the lowest possible standards.

Closed Thread

Similar Threads

  1. Joomla - Internal Server Error - .htaccess
    By oammpr25 in forum Free Hosting
    Replies: 2
    Last Post: 01-04-2011, 01:47 PM
  2. 500 Internal Server Error I have all file chmod 644
    By prasanna_9139 in forum Free Hosting
    Replies: 2
    Last Post: 09-23-2010, 12:28 PM
  3. change in .htaccess file - 500 Internal Server Error
    By kirtichandra176 in forum Free Hosting
    Replies: 1
    Last Post: 09-11-2010, 04:08 PM
  4. .htaccess causing 500 internal server error
    By marc2003 in forum Free Hosting
    Replies: 2
    Last Post: 10-16-2007, 06:29 AM
  5. .htaccess - 500 Internal Server Error
    By deadimp in forum Free Hosting
    Replies: 5
    Last Post: 09-03-2007, 04:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers