Webmail login failed on cPanel

3

When you get the error login failed because of invalid username and password (horde, roundcube, squirrelmail)

Here is the solution:

Check the hostname using the following command
#hostname

Server needs a FQDN hostname configured and also need to be resolvable in DNS. For example if your domain name is linuxtechme.com then hostname can be server.linuxtechme.com And you should add an entry for server.linuxtechme.com in the DNS.

You can do that in WHM as follows

Main >> Networking Setup >> Change Hostname

It will also ask you add an A record entry for it.

Now run the following commands.

#rm -f /etc/userdomains
[# /usr/local/cpanel/scripts/updateuserdomains –force

Now restart the cPanel service.

#/etc/init.d/cpanel restart

The webmail login error with cPanel should be fixed now.

Install PHP.5.3 + APC on Plesk Linux

0

Install PHP 5.3 + APC on Plesk Linux

Installing atomic repo on the server, may be the apc rpm is not available in Plesk repo

[#wget -q -O – http://www.atomicorp.com/installers/atomic |sh

yum install php-pear httpd-devel pcre-devel
yum install gcc
pecl install apc

Build process completed successfully
Installing ‘/usr/include/php/ext/apc/apc_serializer.h’
Installing ‘/usr/lib64/php/modules/apc.so’
install ok: channel://pecl.php.net/APC-3.1.13
configuration option “php_ini” is not set to php.ini location
You should add “extension=apc.so” to php.ini
—————————-

To check the php version

[]# php -v
PHP 5.3.25 (cli) (built: May 12 2013 16:33:12)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
with the ionCube PHP Loader v4.2.2, Copyright (c) 2002-2012, by ionCube Ltd.
——————————–>

To check the apc modules in the server

———-
[root@vps-1130388-16019 ~# php -m | grep apc
apc
———-
[]# php -r “phpinfo();” | grep apc
Additional .ini files parsed => /etc/php.d/apc.ini,
apc
MMAP File Mask => /tmp/apc.XXXXXX
apc.cache_by_default => On => On
apc.canonicalize => Off => Off
apc.coredump_unmap => Off => Off
apc.enable_cli => Off => Off
apc.enabled => On => On
apc.file_md5 => Off => Off
apc.file_update_protection => 2 => 2
apc.filters => no value => no value
apc.gc_ttl => 3600 => 3600
apc.include_once_override => Off => Off
apc.lazy_classes => Off => Off
apc.lazy_functions => Off => Off
apc.max_file_size => 1M => 1M
apc.mmap_file_mask => /tmp/apc.XXXXXX => /tmp/apc.XXXXXX
apc.num_files_hint => 1024 => 1024
apc.preload_path => no value => no value
apc.report_autofilter => Off => Off
apc.rfc1867 => Off => Off
apc.rfc1867_freq => 0 => 0
apc.rfc1867_name => APC_UPLOAD_PROGRESS => APC_UPLOAD_PROGRESS
apc.rfc1867_prefix => upload_ => upload_
apc.rfc1867_ttl => 3600 => 3600
apc.serializer => default => default
apc.shm_segments => 1 => 1
apc.shm_size => 64M => 64M
apc.slam_defense => On => On
apc.stat => On => On
apc.stat_ctime => Off => Off
apc.ttl => 7200 => 7200
apc.use_request_time => On => On
apc.user_entries_hint => 4096 => 4096
apc.user_ttl => 7200 => 7200
apc.write_lock => On => On
——————————–>