If you receive such error in the error logs or in the browser please follow the steps below.
For non suexec/suphp servers
Create a htaccess file under the diretcory and add the code below
php_flag short_open_tag X
For suexec/suphp servers
Copy the server’s php.ini file under the diretcory and find for short_open_tag. Open the php.ini file and change it to
short_open_tag = X
Note :: The solution is valid only if you find the error due to line in your php/html file.
HTML Code:
xml version=”1.0″ encoding=”iso-8859-1″
OR
xml version=”1.0″ encoding=”UTF-8″
ABHIONLINUX
Site useful for linux administration and web hosting
2009/12/15
how to disable htaccess for domain account
You can disable .htaccess for a particular domain by editing the /etc/httpd/conf/httpd.conf file & following the below mentioned steps:
Open the /etc/httpd/conf/httpd.conf file.
Search for the “AllowOverride None” string.
directory “/”
AllowOverride None
Directory
Append it by:
directory “/home/username/public_html”
AllowOverride None
Directory
Such that it looks like:
directory “/"
AllowOverride None
Directory
directory “/home/username/public_html”
AllowOverride None
Directory
Restart the httpd/apache service on the server
This would disable the .htaccess for that particular account/domain.
Open the /etc/httpd/conf/httpd.conf file.
Search for the “AllowOverride None” string.
directory “/”
AllowOverride None
Directory
Append it by:
directory “/home/username/public_html”
AllowOverride None
Directory
Such that it looks like:
directory “/"
AllowOverride None
Directory
directory “/home/username/public_html”
AllowOverride None
Directory
Restart the httpd/apache service on the server
This would disable the .htaccess for that particular account/domain.
Subscribe to:
Posts (Atom)