teranex weblog - Comments: Tricks for servers running phpsuexechttps://budts.be/weblog/2004/10/tricks-for-servers-running-phpsuexec/2005-03-01T15:49:00+01:00Posted by: Erik2005-03-01T15:49:00+01:002005-03-01T15:49:00+01:00Eriktag:budts.be,2005-03-01:/weblog/2004/10/tricks-for-servers-running-phpsuexec//comment-03<p><strong>In a .htaccess I would this</strong></p>
<p>In a .htaccess I would this piece of code (working :P)</p>
<p>php_flag short_open_tag Off</p><p><strong>In a .htaccess I would this</strong></p>
<p>In a .htaccess I would this piece of code (working :P)</p>
<p>php_flag short_open_tag Off</p>Posted by: TeRanEX2004-11-11T12:17:00+01:002004-11-11T12:17:00+01:00TeRanEXtag:budts.be,2004-11-11:/weblog/2004/10/tricks-for-servers-running-phpsuexec//comment-02<p><strong>Maybe try creating a</strong></p>
<p>Maybe try creating a .htaccess file in every subdirectory? I only found this info by googling a bit, so i don't now much more about it...</p><p><strong>Maybe try creating a</strong></p>
<p>Maybe try creating a .htaccess file in every subdirectory? I only found this info by googling a bit, so i don't now much more about it...</p>Posted by: Peter Marquis-Kyle2004-11-10T10:47:00+01:002004-11-10T10:47:00+01:00Peter Marquis-Kyletag:budts.be,2004-11-10:/weblog/2004/10/tricks-for-servers-running-phpsuexec//comment-01<p><strong>I am delighted to find this</strong></p>
<p>I am delighted to find this page! At last, here are some clues how to fix my site. My web host suddenly introduced phpsuexec, which required me to remove some directives from my .htaccess file -- in particular, "AddType application/x-httpd-php .htm" -- which meant various bits of php not working.</p>
<p>Following your suggestion, and with my rudimentary understanding of regular expressions, I added this to the .htaccess file in my public_html directory:</p>
<p><FilesMatch "\.htm$"><br />
SetHandler application/x-httpd-php<br />
</FilesMatch></p>
<p>This worked for .htm files in that directory (that is, the php code in them was executed). But when I browsed to files in sub-directories I got 500 server errors.</p>
<p>Have you any suggestions for me, please? (I'm not a programmer, as you might have guessed).</p><p><strong>I am delighted to find this</strong></p>
<p>I am delighted to find this page! At last, here are some clues how to fix my site. My web host suddenly introduced phpsuexec, which required me to remove some directives from my .htaccess file -- in particular, "AddType application/x-httpd-php .htm" -- which meant various bits of php not working.</p>
<p>Following your suggestion, and with my rudimentary understanding of regular expressions, I added this to the .htaccess file in my public_html directory:</p>
<p><FilesMatch "\.htm$"><br />
SetHandler application/x-httpd-php<br />
</FilesMatch></p>
<p>This worked for .htm files in that directory (that is, the php code in them was executed). But when I browsed to files in sub-directories I got 500 server errors.</p>
<p>Have you any suggestions for me, please? (I'm not a programmer, as you might have guessed).</p>