Page 1 of 1

.htaccess & php.ini problem

Posted: Mon Dec 14, 2009 7:49 am
by adsegzy
Hello there, please i am having problem with my .htaccess file on my site. whenever I upload the .htaccess file, and try to visit the site but the site is showing me error "500 Internet Error" but if i remove the htaccess file, the site will open normally. I have some files that include "header" function which requires htaccess file.

When I contacted the hosting company, i was told that The Server this site is located on has never had PHP4 to start with, when PHP is running with SUEXEC support are to be placed within a php.ini file and not .htaccess. So, it appears that what i need is php.ini fill instead of .htaccess file. I do not know how to code the php.ini file. pls help me out.

regards

Re: .htaccess & php.ini problem

Posted: Mon Dec 14, 2009 1:53 pm
by requinix
What's in your .htaccess now?

Re: .htaccess & php.ini problem

Posted: Mon Dec 14, 2009 2:57 pm
by adsegzy
what am having in my .htaccess is

Code: Select all

<?
PHP_FLAG output_buffering on
?>

Re: .htaccess & php.ini problem

Posted: Mon Dec 14, 2009 5:19 pm
by requinix
Then for your php.ini

Code: Select all

output_buffering = on
Take that as an example for similar problems in the future.

(By the way, relying on output buffering is a bad choice. You should try to code for it being turned off.)

Re: .htaccess & php.ini problem

Posted: Tue Dec 15, 2009 1:14 pm
by adsegzy
Thanks a lot tasairis, it works and i really appreciate that.
regards