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
Uncategorized

Enable SSI on cPanel server

Apache handlers allow you to control what Apache will do with certain file types. When Apache sees a file, it has an action built in for that file type, and will perform that action. If you wish Apache to do a different action, you will need to make a handler to tell Apache to perform that action.

You can enable SSI support for a cPanel account via cPanel:

Go to : cPanel >> Apache Handlers

Here you can see two fields: Handler and Extension(s). Give it as below and restart apache on the server.

Handler : server-parsed
Extension(s): .html .htm

Some times you may need to add some custom rules like below on your .htaccess file to make this work.

AddType text/html .shtml
AddHandler server-parsed .shtml
Options Indexes FollowSymLinks Includes
AddHandler server-parsed .html .htm

Standard