clipshare: Some general background configurations…..

1 Set all files in cgi-bin to 755.
2 check /upload/cgi-bin/ubr_upload.pl path to tmp/uploader/ also in ubr_ini.php
3 Edit /upload/include/config.local.php in a text editor and set $config’BASE_URL’ and the database credentials.
4 Set write permissions (chmod 777) to the following folders:

/flvideo
/video
/thumb
/chimg
/photo
/tmp
/tmp/logs
/tmp/sessions
/tmp/thumbs
/tmp/uploader
/cache/templates_c

Changing Time zone in an OpenVZ VPS.

Changing the time in VPS via WHM Main >> Server Configuration >> Server Time, won’t change the VPS time correctly to a time zone other that that in the hardware node.
You can change it with ntp.

For this install ntp:

yum -y install ntp

Identify time zone from http://www.pool.ntp.org/

# vi /etc/ntp.conf

select a server.

eg: 0.centos.pool.ntp.org

# ntpdate servername

While doing the ntpupdate you may receive the following error: “step-systime operation not permitted”

Suggested Fix

# vzctl stop

# vzctl set –capability sys_time:on –save

needs to be replaced by your container’s ID
After executing the command above, your container’s configuration file needs to be reloaded. Thus, use ‘vzctl‘ to restart it.

# vzctl restart

Yum Operations on your vps server failed with following messages,

yum clean dbcache
Loaded plugins: fastestmirror
error: no dbpath has been set
error: cannot open Packages database in /%{_dbpath}
Traceback (most recent call last):
File “/usr/bin/yum”, line 29, in ?
yummain.user_main(sys.argv[1:], exit_code=True)
File “/usr/share/yum-cli/yummain.py”, line 309, in user_main
errcode = main(args)
File “/usr/share/yum-cli/yummain.py”, line 157, in main
base.getOptionsConfig(args)
File “/usr/share/yum-cli/cli.py”, line 187, in getOptionsConfig
self.conf
File “/usr/lib/python2.4/site-packages/yum/__init__.py”, line 665, in
conf = property(fget=lambda self: self._getConfig(),
File “/usr/lib/python2.4/site-packages/yum/__init__.py”, line 240, in _getConfig
self._conf = config.readMainConfig(startupconf)
File “/usr/lib/python2.4/site-packages/yum/config.py”, line 805, in readMainConfig
yumvars[‘releasever’] = _getsysver(startupconf.installroot, startupconf.distroverpkg)
File “/usr/lib/python2.4/site-packages/yum/config.py”, line 878, in _getsysver
idx = ts.dbMatch(‘provides’, distroverpkg)
TypeError: rpmdb open failed

Solution,

rm -f /dev/urandom

mknod -m 644 /dev/urandom c 1 9

rpm –rebuilddb

yum clean all

yum update

I hope this will help 🙂

View stats without login into capnel

Without login into cpanel we can check the webalizer stats via following steps. Then you think how it is possible? yes it is possible,you can access your webaliazer via http://www.yourdomainname.com/stats

steps:

1. cd /home/cpaneluser/public_html/
In most cases your stats location will be on your /home/username/tmp/

2 ln -s home/cpaneluser/tmp/webalizer/ stats

3. chown -R cpaneluser.cpaneluser stats/

then please check your stat now http://www.domainname.com/stats 🙂