22nd May 2017, 02:43 pm
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. |
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.
Category:
Uncategorized |
Comments Off on WordPress Error: Sorry, you are not allowed to access this page.
17th May 2017, 02:19 pm
Problem:
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.
Solutions:
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.
(Optional)
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
Category:
Uncategorized |
Comments Off on Windows 2012 Boot into Black Screen (Before Login)
27th March 2017, 07:41 pm
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/config.inc.php |
sed -ie 's#tcp://localhost#ssl://localhost#' /var/www/html/roundcube/plugins/password/config.inc.php
Or you can change it manually.
$config[‘password_directadmin_host’] = ‘tcp://localhost’;
to
$config[‘password_directadmin_host’] = ‘ssl://localhost’;
Enjoy!
Category:
Uncategorized |
Comments Off on Enable DirectAdmin RoundCube Password Plugin
25th March 2017, 06:00 pm
Building an new server for a customer of mine and encountered the following error.
[root@moon ]# /usr/bin/spamd --pidfile /var/run/spamd.pid -d -c -m 15 --ipv4
logger: add Syslog failed: Can't locate Sys/Syslog.pm 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/Syslog.pm line 39.
BEGIN failed--compilation aborted at /usr/share/perl5/Mail/SpamAssassin/Logger/Syslog.pm line 39.
Compilation failed in require at (eval 44) line 1.
BEGIN failed--compilation aborted at (eval 44) line 1. |
[root@moon ]# /usr/bin/spamd --pidfile /var/run/spamd.pid -d -c -m 15 --ipv4
logger: add Syslog failed: Can't locate Sys/Syslog.pm 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/Syslog.pm line 39.
BEGIN failed--compilation aborted at /usr/share/perl5/Mail/SpamAssassin/Logger/Syslog.pm 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…
11th January 2017, 12:30 am
Category:
Uncategorized |
Comments Off on Server Music has come live!
7th July 2016, 12:55 pm
A quick command line to search string in file.
findstr /c:”exact string” *.xml
13th October 2015, 08:15 pm
As I am working on a project which required me to extract a script from an image file which was backup using dd tool.
It is possible to mount the image file on a linux server.
1) you need to scan the image file and see partition
[root@c10 sax]# kpartx -v IPC-2Sep2015.img
loop0p1 : 0 409600 /dev/loop0 2048
loop0p2 : 0 1024000 /dev/loop0 411648
loop0p3 : 0 123621376 /dev/loop0 1435648 |
[root@c10 sax]# kpartx -v IPC-2Sep2015.img
loop0p1 : 0 409600 /dev/loop0 2048
loop0p2 : 0 1024000 /dev/loop0 411648
loop0p3 : 0 123621376 /dev/loop0 1435648
2) add the partitionto the system
[root@c10 sax]# kpartx -a -v IPC-2Sep2015.img
add map loop0p1 (253:3): 0 409600 linear /dev/loop0 2048
add map loop0p2 (253:4): 0 1024000 linear /dev/loop0 411648
add map loop0p3 (253:5): 0 123621376 linear /dev/loop0 1435648 |
[root@c10 sax]# kpartx -a -v IPC-2Sep2015.img
add map loop0p1 (253:3): 0 409600 linear /dev/loop0 2048
add map loop0p2 (253:4): 0 1024000 linear /dev/loop0 411648
add map loop0p3 (253:5): 0 123621376 linear /dev/loop0 1435648
Continue reading ‘Mounting LVM Parition inside an image file’ »
Category:
CentOS,
Debian |
Comments Off on Mounting LVM Parition inside an image file
17th January 2015, 01:53 pm
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.
REMEMBER THAT EDITING REGISTRY CAN BE DANGEROUS IF YOU DO NOT KNOW WHAT YOU ARE DOING!
Go to registry and locate this key:
Continue reading ‘Adobe Reader Issue in Windows 2012’ »
Category:
Uncategorized |
Comments Off on Adobe Reader Issue in Windows 2012
10th July 2014, 10:34 am
As I was trying to convert using VMware convertor from Critix to VMWare guest OS which is using CentOS 6, I bump into a difficult problem which took me at least 24 hours trying to resolve it.
The system fails to boot up and when grub is modified to show the output text of the console, it always hang after “Probing EDD (edd=off to disable)”
This include trying to following task
1) rebuild initramfs
2) downgrade lvm2 version (this fails as one of the rpm depends on latest lvm2 to work)
3) reinstall grub
4) performing a V2V using Acronis
5) removing xe-guest tools
This solutions works for me. I have to remove the following line from the GRUB boot loader for it to work.
console=hvc0
The above line is meant for Xen Console thus VMWare does not have such feature
I do really hope this helps someone out there as I have spend alot of time troubleshooting it.
Category:
CentOS,
Xen |
Comments Off on V2V Critix to VMWare CentOS 6
2nd March 2014, 03:09 am
Trying to install ESET ANTIVIRUS on CentOS 6 and bump into a slight issues.
Problem
error: Failed dependencies:
/lib/ld-linux.so.2 is needed by esets-4.0-10.x86_64
/usr/lib/gconv/UTF-16.so is needed by esets-4.0-10.x86_64 |
error: Failed dependencies:
/lib/ld-linux.so.2 is needed by esets-4.0-10.x86_64
/usr/lib/gconv/UTF-16.so is needed by esets-4.0-10.x86_64
I will just need to install the necessary dependencies
yum install ed glibc.i686 |
yum install ed glibc.i686
Enjoy!
Category:
CentOS |
Comments Off on ESET ANTIVIRUS CentOS installation