Tuesday, September 27, 2011

Error: httpd is disabled via /etc/apachedisable please re-enable to continue

You may get this error while running the script easyapache

!! 'httpd' is disabled via '/etc/apachedisable', please re-enable to continue. !!

Solution:
Enable httpd in Service Manager

Steps:
Login to WHM

Main >> Service Configuration >> Service Manager
Check the boxes for httpd
Save it [bottom in page]
Now try again.

See the following images if confused.

Main >> Service Configuration >> Service Manager


Check the boxes for httpd


After checking

Now run easypache again

Monday, September 26, 2011

date: cannot set date: Operation not permitted openvz

This post explains how to solve the following error while setting the time in a openvz container vps.

Error:
date: cannot set date: Operation not permitted

Reason:
Capability not set for the vps

Soultion:

On Openvz node:

Stop the vps
[root@test ~]# vzctl stop 9851

set the parameter

[root@test ~]# vzctl set 9851 --save --capability sys_time:on
Saved parameters for CT 9851

Start the vps
[root@test ~]# vzctl start 9851

Enter into the vps
[root@test8 ~]# vzctl enter 9851
entered into CT 9851
[root@abc /]#

check date
[root@abc /]# date
Fri Sep 16 00:39:09 CST 2011

Change date
[root@abc /]# date -s "Tue Sep 27 00:39:09 CST 2011"
Tue Sep 27 00:39:09 CST 2011

check date again
[root@abc /]# date
Tue Sep 27 00:39:19 CST 2011

Thats it. Date has been changed. 



Recommended Reading

1. Practical Guide to Linux Commands, Editors, and Shell Programming, A (2nd Edition)
2. UNIX and Linux System Administration Handbook (4th Edition)
3. Linux All-in-One For Dummies
4. Introduction to the Command Line (Second Edition): The Fat Free Guide to Unix and Linux Commands