cPanel, Linux

webpage showing different language on different browser

in some cases I could see pages show different languages on different browsers. The issue is with the charset value in the script from which the page is loading. To fix this ,change charset on the particular file from unicode to utf-8

charset=unicode  shoud be changed as charset=utf-8

Standard
Uncategorized

checking for unixODBC support configure: error: ODBC header file ‘/usr/local/myunixodbc/include/sqlext.h

If you are seeing this error on EasyApache do the following to resolve it.

Go to file /var/cpanel/easy/apache/rawopts/all_php5 and check for unixODBC, you can see as below.

–with-unixODBC=/usr/local/myunixodbc

Now,install unixODBC using yum.

yum install unixODBC-devel.x86_64

and then edit the unixODBC line in /var/cpanel/easy/apache/rawopts/all_php5 as below

–with-unixODBC=/usr

Now, perform the EasyApache.

Standard
Uncategorized

Request exceeded the limit of 10 internal redirects due to probable configuration error

To prevent infinite looping adding an extra RewriteCond line on top of your rule like this:

========================
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
=========================

Standard