Archive for the ‘Uncategorized’ Category.

WordPress Error: Sorry, you are not allowed to access this page.

You face this problem when you log in to the admin page. This usually happens when you make changes to plugin/theme.

Sorry, you are not allowed to access this page.

I have spent quite a fair amount of time trying to troubleshooting this and it seems that some database has been changed resulting in this problem.

1) Go to phpMyAdmin
2) Look under _options table
3) Search for _user_roles. You should be able to see the first prefix is the same as your main table. If it is different, change it to the same prefix as your table.

Try it out.

Windows 2012 Boot into Black Screen (Before Login)

You might encounter black screen when booting up Windows 2012 R2 after running Windows Update.

This might happens if the Windows Update process did not complete successfully.

In your environment (VM or Physical), make sure you are able to access the Safe Mode by hitting F8 during the boot process. Go into “Safe Mode” and Windows will start reverting the updates.

If the above process does not seems to fix your problem, try this and repeat the above steps.

1. Boot into the recovery mode and use CMD
2. Use DiskPart to find out the location your system and Windows folder stored in.
3. Execute this: rename E:\Windows\WinSXS\Pending.xml Pending.old (assume that E drive is your Windows installation)
4. run ‘SFC /Scannow /OffBootDir=C:\ /OffWinDir=E:\Windows’ again where C:\ is your System folder and E:\ is your Windows folder location

Enable DirectAdmin RoundCube Password Plugin

In the newer build of DirectAdmin, Roundcube password changing is supported by default. However, if you are using SSL for your DirectAdmin port (2222), then you need to make a minor changes to the roundcube config file to connect via the SSL protocol.

sed -ie 's#tcp://localhost#ssl://localhost#' /var/www/html/roundcube/plugins/password/

Or you can change it manually.

$config[‘password_directadmin_host’] = ‘tcp://localhost’;


$config[‘password_directadmin_host’] = ‘ssl://localhost’;


Spamd Syslog Error

Building an new server for a customer of mine and encountered the following error.

[root@moon ]# /usr/bin/spamd --pidfile /var/run/ -d -c -m 15 --ipv4
logger: add Syslog failed: Can't locate Sys/ in @INC (@INC contains: /usr/share/perl5 /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5) at /usr/share/perl5/Mail/SpamAssassin/Logger/ line 39.
BEGIN failed--compilation aborted at /usr/share/perl5/Mail/SpamAssassin/Logger/ line 39.
Compilation failed in require at (eval 44) line 1.
BEGIN failed--compilation aborted at (eval 44) line 1.

Quick Solution to the problem:
yum install -y perl-Sys-Syslog

Hope this helps…

Server Music has come live!


Windows String Search

A quick command line to search string in file.

findstr /c:”exact string” *.xml

Adobe Reader Issue in Windows 2012

I had to install a software (Adobe Reader) requested by my client in Windows 2012 for them to use. Adobe Reader installation is a smooth and quick one as it always works after installation. However this time, it is slightly different. I had error launching the program due to a sandbox protection system in Adobe.

Follow this steps to disable it on startup.


Go to registry and locate this key:
Continue reading ‘Adobe Reader Issue in Windows 2012’ »

Dell iDRAC racadm issue

Happen to came across this problem. It does not happen to my other units of Dell Servers doing the same deployment procedure.

Take note that you need to purchase Dell DRAC Enterprise in order to execute ‘racadm’

[root@server ~]# racadm getled
This Integrated Dell Remote Access Controller does not support RACADM commands.
Please contact Dell Customer Service to upgrade your version of iDRAC.

Strangely, this should not happen to me as I have purchased Dell DRAC Enterprise. This did not happen to my previous unit of Dell Servers.

After much troubleshooting and pulling of my hair, I managed to locate the problem to this 2 specific package not installed by OMSA

yum install srvadmin-idrac7 srvadmin-idracadm7

After which, let’s try to execute the command again

[root@server ~]# racadm getled
LED State :    Not-Blinking

Looks good 🙂 Hope it helps!

PHP Build Issue No such file or directory

Bump into a slight issue today


gcc: /usr/lib64/mysql/ No such file or directory
make: *** [sapi/fpm/php-fpm] Error 1


ln -s /usr/lib64/ /usr/lib64/mysql/

A pretty quick solution for the problem I encounter 🙂

Cisco ASA 5505 Failover Active/Standby Configuration

Here is the quick configuration command

On Active Unit

failover lan unit primary
failover lan interface fo Vlan3
failover interface ip fo standby
interface Ethernet0/6
 switchport access vlan 3

Secondary Configuration

failover lan unit secondary
failover lan interface fo Vlan3
failover interface ip fo standby

Force the current unit to go on standby mode

no failover active

You got to understand how failover works as this is just a quick config on Cisco ASA