PHP .htaccess error

I am getting this error when i create the .htaccess and write

php_admin_value open_basedir none

And now when i goto my website it says

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@kilbridebabyspace.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request

Please help!

Thanks

usman

Try


php_value open_basedir none

when you see 500 Internal Server, you should check web-server’s error log for the error message

Some server doesn’t allow php.ini settings in .htacess.
Please make sure that removing that line works properly else you have to contact your server administrator with problems.
More about settings here
Thanks

usmangt, don’t be silly
first, read the real problem description in the error log
second, find solution

Qouted from PHP Manual(link):

php_admin_value name value

Sets the value of the specified directive. This can not be used in .htaccess files. Any directive type set with php_admin_value can not be overridden by .htaccess or ini_set(). To clear a previously set value use none as the value.

Qouted from PHP Manual(link):

php_admin_value name value

Sets the value of the specified directive. This can not be used in .htaccess files. Any directive type set with php_admin_value can not be overridden by .htaccess or ini_set(). To clear a previously set value use none as the value.

Well this is what i found in the log

[Thu Nov 12 17:11:57 2009] [error] [client x.x.x.x] File does not exist: /home/yonged/public_html/500.shtml
[Thu Nov 12 17:11:57 2009] [alert] [client x.x.x.x] /home/yonged/public_html/plesk-billing/.htaccess: php_admin_value not allowed here

i tried the following but no success, i think you better know what log says

php_admin_value open_basedir none
php_value open_basedir none
php_admin flag open_basedir none

Plesae help

Thanks

usmangt

You cannot use .htaccess unless you are running php as an apache module. If you’re running php via cgi, it won’t work. You need to edit php.ini. Your host might allow you to configure or create your own php.ini, so ask them(there can be lots of variations on how they set it up).

Yes thats right what crmalibu has mentioned.

Please check the line quoted by me in above post and the text in your log file:

[Thu Nov 12 17:11:57 2009] [alert] [client x.x.x.x] /home/yonged/public_html/plesk-billing/.htaccess: php_admin_value not allowed here

you can know where the things had gone wrong.

Thanks