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
General, Linux

404 error in Cloudlinux php selector

This error is happened due to lack of lvemanager on the server. To fix this, you should need to install lvemanager using the below command. Please note that cagefs should also be installed on the server.

yum install lvemanager

So, the complete steps will be like below.

Installation of different versions of PHP & modules:

$ yum groupinstall alt-php

Update CageFS & LVE Manager with support for PHP Alternatives
$ yum update cagefs lvemanager

cPanel/WHM: Make sure ‘Select PHP version’ is enabled in Feature Manager

=========<>========

Standard
cPanel, General, Linux

Error connecting to IMAP server: localhost.111 : Connection refused

If you are seeing this error in Squirrelmail in webmail

check whether imap and dovecot services are running fine using he below commands

root@server [~]# /etc/init.d/dovecot status
root@server [~]# telnet localhost 143
Trying ::1…
Connected to localhost.
Escape character is ‘^]’.

If there is no issues with the services, then check an important part that most of them don’t notice.

CHECK /etc/hosts file

It should have an entry like below:

127.0.0.1 localhost.localdomain localhost localhost4.localdomain4 localhost4

=======<>=======

Standard
Apache, cPanel, General, Linux

Negotiation: discovered file(s) matching request

If you are seeing this error in Apache logs, Please see the Apache configuration file for the below entry.

Apache configuration file path : /usr/local/apache/conf/httpd.conf or /etc/httpd/conf/httpd.conf

Options Indexes FollowSymLinks MultiViews

The moment I removed the MultiViews option

everything started working fine.

=======<>=======

Standard