Saturday, October 30, 2010

Some important Hsphere file paths.

These are some default Hsphere file paths,
Mysql:
======
Socket file: /var/lib/mysql/mysql.sock
Database file: /var/lib/mysql
mysql password file: /var/lib/mysql/.my.cnf
Error log: /var/log/mysql/error.log

Ftp:
=====

Proftpd is default with hsphere.

Configuration file: /hsphere/shared/config/ftpd/proftpd.conf
Log file: /hsphere/local/var/proftpd/xferlog

Php:
=====

Configuration files:
/hsphere/local/config/httpd/php4/php.ini – with PHP version 4x
/hsphere/local/config/httpd/php5/php.ini – with PHP version 5x

Log file : /hsphere/shared/apache2/logs/php_error.log

Apache:
========

Configuration file: /hsphere/shared/apache2/conf/httpd.conf
Log file: /hsphere/shared/apache2/logs/error_log
Each domain has a separate configuration file:
/hsphere/shared/apache2/conf/sites/conf_file

Starting: /etc/init.d/httpd start
Re-Starting : /hsphere/shared/scripts/apache-restart
Stop: /etc/init.d/httpd stop

MOD Security:
=============

/hsphere/shared/apache2/conf/extra/httpd-security.conf

DOMAINS:
=========

Access the domains with domain name(without user name)
/hsphere/local/home/*/domainname

Access the domains with user name
/hsphere/local/home/username/domainname

Rebuilding the DB for the specific domain.
#java psoft.hsphere tools.DNScreator -m db -dz -z < Domain Name >

DNS
====

Zones configuration – /hsphere/local/var/named/zones
ex: /hsphere/local/var/named/zones/<zones _(domain number)>

Logs: /var/log/messages

#pgsql hsphere

#select * from dns_records where name=’domain.com’;

#update dns_records set data=’ip’ where name=’mysql2.domain.com’;

Qmail:
=====

configuration files:
/var/qmail/control

Some important config files:
rblhosts
rcpthosts
virtualdomains

Log files :
/var/log/messages
/var/log/maillog

To view mail location of a domain:

~vpopmail/bin/vdominfo domain.com

To view the information of a mail account:
~vpopmail/bin/vuserinfo domain.com

Hsphere Scripts:
=================
/hsphere/shared/scripts

Hsphere panel files:
=====================
~cpanel/shiva/psoft/hsphere/

No comments:

Post a Comment