Forum Moderators: phranque

Message Too Old, No Replies

Apache/PHP recompile, htaccess edited

         

bheybugarin

1:48 am on Jan 8, 2009 (gmt 0)

10+ Year Member



Hi,

Our htaccess code was edited

from:
AddHandler application/x-httpd-php .php .html

to:
# AddHandler application/x-httpd-php .php .html

-
If its edited our php include in html pages will not work.
-

I received a confirmation from our host:
Last time we did an Apache/PHP recompile, we removed the immutable status (chattr -i <file>) of the .htaccess files, to see if they would still be modified. Some of the .htaccess files were still modified, however we checked them immediately after the recompile was done and made sure they were alright.

It seems the only solution at the moment is to make them immutable (chattr +i <file>). cPanel knows about the issue and I expect they will have a solution fairly soon, however until then we'll have to make due with chattr.

--
I needed an advise what to do w/ our htaccess to that it will not be modified when theres Apache/PHP recompile.

jdMorgan

1:57 am on Jan 8, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



From what you you said, this is a problem with cPanel, and not with Apache. Use the chattr command they sent you and change the attributes on your .htaccess file as instructed. Or ask your host to do it if you don't know how to use the *nix shell commands.

Jim

[edited by: jdMorgan at 1:57 am (utc) on Jan. 8, 2009]