command to verify that pure-ftpd is running and the server is listening on port 21.

1. Login to the server via SSH, run

1. service pure-ftpd status
2. lsof-i tcp:21

If ftp is not listening to any port, check ftp logs to see related error

less /var/log/messages | grep pure-ftpd

If you see below error

[ERROR] Unable to start a standalone server: [Address already in use]

Try the solution:

# /usr/sbin/pure-uploadscript -B -r /etc/pure-ftpd.conf

Restart the service :

# /etc/init.d/pure-ftpd restart

Ref : https://forums.cpanel.net/threads/pure-ftp-help.187152/

Thank you πŸ™‚


Sometimes Horde won’t work after a cpanel update. You may receive below error, while accessing Horde.

HTTP error 503 The service is unavailable. Horde is unavailable while the system is setting the hostname.

Solution 1:
1. Make sure hostname is correct.

/usr/local/cpanel/scripts/check_valid_server_hostname

Solution 2:

1. ssh in to the server.
2. cd /var/cpanel/.application-locks
3. rm UpdateHostname\:USERNAME
4. /usr/local/cpanel/bin/update_horde_config –user=USERNAME

Refer : https://forums.cpanel.net/threads/horde-wont-load-after-update-to-11-52.503071/

Thank you πŸ™‚

H-Sphere backend files

Posted: May 23, 2011 in Hsphere

Location of domains – /hsphere/local/home//
Qmail – /hsphere/local/var/qmail(A symbolic link given to /var/qmail)
Mails – /hsphere/local/var/vpopmail/domains
DNS – /hsphere/local/var/named
MySQL – /var/lib/mysql
Control Panel features – /hsphere/local/home/cpanel
Scripts in hsphere – /hsphere/shared/scripts/

Configuration files

Common path is /hsphere/local/config
Control panel – /hsphere/local/home/cpanel/shiva/psoft_config/hsphere.properties
FTP – /hsphere/local/config/ftpd/proftpd.conf
HTTP – /hsphere/local/config/httpd/httpd.conf
Mysql – /etc/my.cnf
Qmail – /hsphere/local/var/qmail/control/
DNS – /etc/named.conf
php.ini – /hsphere/local/config/httpd/php.ini OR /usr/local/lib/php.ini

Log files

FTP – /hsphere/local/var/proftpd/xferlog OR /var/log/proftpd/auth.log
HTTP – /hsphere/local/var/httpd/logs/
MySQL – /var/log/mysqld.log
Horde – /hsphere/local/var/horde/log
Mail – /var/log/maillog
DNS – /var/log/messages
HSphere – /var/log/hsphere/hsphere.log


For windows plesk πŸ™‚

If you are receiving HTTP 404 error when accessing webmail.domain.com, try to execute the following to resolve the issue.

+++++++++
“%plesk_bin%\websrvmng.exe” –reconfigure-webmail
“%plesk_bin%\defpackagemng.exe” –fix –type=webmail.horde
+++++++++

This error means that the web site β€˜webmail (default)’, responsible for webmail is not configured correctly in IIS. The above specified command need to be launched to fix the problem:


Sometime you may receive the following error message while trying to access the plesk “https://IP:8443”.

********
This webpage is not available.

or

The webpage at https://server_hostname:11444 might be temporarily down.

or

ERROR The requested URL could not be retrieved. While trying to retrieve the URL: server_hostname:11444
*********

This issue mainly happening when you upgrade plesk to 9.X version.

You can try following fix from your end.

*******
1. Login to the server through SSH.
2. Execute the following command to disable SSO.
/usr/local/psa/bin/sso –disable

*******

Most of the case the above fix will resolve the issue. πŸ™‚

CPANEL BACKEND FILES

Posted: December 7, 2009 in cPanel
Tags: ,

CPANEL:

/usr/local/cpanel : Cpanel directory

/usr/local/cpanel/3rdparty/ : tools like fantastico, mailman files are located here

/usr/local/cpanel/addons/ : AdvancedGuestBook, phpBB etc

/usr/local/cpanel/base/ : phpmyadmin, squirrelmail, skins, webmail etc

/usr/local/cpanel/bin/ : cpanel binaries
/usr/local/cpanel/cgi-sys/ : cgi files like cgiemail, formmail.cgi, formmail.pl etc

/usr/local/cpanel/logs/ : cpanel access log and error log

/usr/local/cpanel/whostmgr/ : whm related files

WHM related files

/etc/httpd/conf/httpd.conf apache configuration file

/etc/exim.conf mail server configuration file

/etc/named.conf name server (named) configuration file

/etc/proftpd.conf proftpd server configuration file

/etc/pure-ftpd.conf pure-ftpd server configuration file

/etc/valiases/domainname catchall and forwarders are set here

/etc/vfilters/domainname email filters are set here

/etc/userdomains all domains are listed here – addons, parked,subdomains
along with their usernames

/etc/localdomains exim related file – all domains should be listed here to
be able to send mails

/var/cpanel/users/username cpanel user file

/var/cpanel/cpanel.config cpanel configuration file ( Tweak Settings )*

/etc/sysconfig/network Networking Setup*

/etc/hosts –

/var/spool/exim –

/var/spool/cron –

/etc/resolv.conf Networking Setup–> Resolver Configuration

/etc/nameserverips Networking Setup–> Nameserver IPs

/var/cpanel/resellers For addpkg, etc permissions for resellers.

/etc/chkserv.d Main >> Service Configuration >> Service Manager

/var/run/chkservd Main >> Server Status >> Service Status

/var/log/dcpumon top log process

/root/cpanel3-skel skel directory. Eg: public_ftp, public_html. (Account
Functions–>Skeleton Directory )

/etc/wwwacct.conf account creation defaults file in WHM (Basic cPanel/WHM
Setup)
/etc/cpupdate.conf Update Config

/etc//etc/clamav.conf clamav (antivirus configuration file )

/etc/my.cnf mysql configuration file

/usr/local/Zend/etc/php.ini OR /usr/local/lib/php.ini php configuration file

/etc/ips – ip addresses on the server (except the shared ip) (IP Functions–>Show IP Address Usage )

/etc/ipaddrpool IP Addresses which are free

/etc/ips.dnsmaster name server ips

/var/cpanel/Counters To get the counter of each users.

/var/cpanel/bandwidth To get bandwith usage of domains

/var/cpanel/bandwidth : rrd files of domains

/var/cpanel/username.accts : reseller accounts are listed in this files

/var/cpanel/packages : hosting packages are listed here

/var/cpanel/root.accts : root owned domains are listed here

/var/cpanel/suspended : suspended accounts are listed here

/var/cpanel/users/ : cpanel user file – theme, bwlimit, addon, parked, sub-domains all are listed in this files

/var/cpanel/zonetemplates/ : dns zone template files are taken from here

Common CPanel scripts

/scripts/addns :add a dns zone

/scripts/addfpmail :Add frontpage mail extensions to all domains without them

/scripts/addfpmail2 : Add frontpage mail extensions to all domains without them

/scripts/addnobodygrp :Adds the gorup nobody and activates security

/scripts/addpop :add a pop account

/scripts/addservlets :Add JSP support to an account (requires )

/scripts/addstatus :(Internal use never called by user)

/scripts/adduser : Ad a user to the system

/scripts/bandwidth : Bandwidth

/scripts/betaexim :Installs the latest version of exim

/scripts/biglogcheck :looks for logs nearing 2 gigabytes in size

/scripts/bsdcryptoinstall :Installs crypto on FreeBSD

/scripts/bsdldconfig : Configures the proper lib directories in FreeBSD

/scripts/bsdpkgpingtest :Tests the connection speed for downloading FreeBSD packages

/scripts/buildbsdexpect : Install expect on FreeBSD

/scripts/builddomainaddr : build domain address

/scripts/buildeximconf :Rebuilds exim.conf

/scripts/buildpostgrebsd-dev Installs postgresql on FreeBSD.

/scripts/chcpass change cpanel passwords

/scripts/easyapache recompile/upgrade apache and/or php

/scripts/exim4 reinstall exim and fix permissions

/scripts/fixcommonproblems fixes most common problems

/scripts/fixfrontpageperm fixes permission issues with Front Page

/scripts/fixmailman fixes common mailman issues

/scripts/fixnamed fixes common named issues

/scripts/fixndc fixes rndc errors with named

/scripts/fixquotas fixes quota problems

/scripts/fullhordereset resets horde database to a fresh one – all previous user

data are lost
/scripts/initquotas initializes quotas

/scripts/installzendopt installs zend optimizer

/scripts/killacct terminate an account – make sure you take a backup of the account
first
/scripts/mailperm fixes permission problems with inboxes

/scripts/park to park a domain

/scripts/pkgacct used to backup an account

/scripts/restartsrv restart script for services

/scripts/restorepkg restores an account from a backup file ( pkgacct file)

/scripts/runlogsnow update logs of all users

/scripts/runweblogs update stats for a particular user

/scripts/securetmp secures /tmp partition with options nosuexec and nosuid

/scripts/suspendacct suspends an account

/scripts/unsuspendacct unsuspends a suspended account

/scripts/upcp updates cpanel to the latest version

/scripts/updatenow updates the cpanel scripts

/scripts/updateuserdomains updates userdomain entries

APACHE:
————

/usr/local/apache/bin apache binaries are stored here – httpd, apachectl, apxs

/usr/local/apache/conf configuration files – httpd.conf

/usr/local/apache/cgi-bin

/usr/local/apache/domlogs domain log files are stored here

/usr/local/apache/htdocs

/usr/local/apache/include header files

/usr/local/apache/ libexec shared object (.so) files are stored here –
libphp4.so,mod_rewrite.so

/usr/local/apache/logs apache logs – access_log, error_log, suexec_log

/usr/local/apache/man apache manual pages

Exim

/etc/exim.conf exim main configuration file

/etc/localdomains list of domains allowed to relay mail

/var/log/exim_mainlog incoming/outgoing mails are logged here

/var/log/exim_rejectlog exim rejected mails are reported here

/var/log/exim_paniclog exim errors are logged here

var/spool/exim/input Mail queue

/scripts/restartsrv_exim Cpanel script to restart exim

/etc/valiases/domainname.com Email forwarders and catchall address file

/etc/vfilters/domainname.com Email filters file

/home/username/etc/domainname/passwd POP user authentication file

/home/username/mail/inbox catchall inbox

/home/username/mail/domainname/popusername/inbox POP user inbox

/home/username/mail/domainname/popusername/spam POP user spambox

ProFTPD
========
Start /etc/rc.d/init.d/proftpd
Conf /etc/proftpd.conf
Log /var/log/messages, /var/log/xferlog
FTP accounts file /etc/proftpd/username – all ftp accounts for the domain
are listed here

Pure-FTPD

Start /etc/rc.d/init.d/pure-ftpd
Conf /etc/pure-ftpd.conf
Anonymous ftp document root – /etc/pure-ftpd/ip-address

Mysql

start /etc/rc.d/init.d/mysql
Conf /etc/my.cnf, /root/.my.cnf
Data directory /var/lib/mysql – Where all databases are stored.
Database naming convention username_dbname (eg: john_sales)
Permissions on databases drwx 2 mysql mysql
Socket file /var/lib/mysql/mysql.sock, /tmp/ mysql.sock

SSH Service

Start /etc/rc.d/init.d/sshd
Conf /etc/ssh/sshd_config
Log /var/log/messages

PHP

ini file /usr/local/lib/php.ini – apache must be restarted after any change to this file
php can be recompiled using /scripts/easyapache

Named(BIND)

Start /etc/rc.d/init.d/named
Conf /etc/named.conf
db records /var/named/
log /var/log/messages


Problem: In plesk, sometime, after php upgrade if you take “http://webmail.domian.com” via browser, you will get blank page.

Check the apache logs. If you find any logs as follows:


Fatal error: require_once() [function.require]: Failed opening required ‘Horde/String.php’ (include_path=’/usr/share/psa-horde:/usr/share/psa-horde/pear:.’) in /usr/share/psa-horde/lib/Horde/Browser.php on line 4

Perform following steps:

1. Copy Webmail VirtualHost entry from “/etc/httpd/conf.d/zz010_psa_httpd.conf” to “/etc/httpd/conf.d/webmail.conf”.

2. Find the “php_admin_value include_path” value from the “/etc/httpd/conf.d/webmail.conf” file.

3. Replace it with following entry:

php_admin_value include_path “/usr/share/psa-horde/lib:/usr/share/psa-horde:/usr/share/psa-horde/pear:.

Note : You should change this value for all “php_admin_value include_path”.

4. Restart apache and plesk services.
—-

Now, access the URL “http://webmail.domian.com” πŸ™‚


Plesk root directory : /usr/local/psa
Version : /usr/local/psa/version
Admin password is stored : /etc/psa/.psa.shadow
Plesk configuration file : /etc/psa/psa.conf
Restart Plesk : /etc/rc.d/init.d/plesk restart

Apache
β€”β€”β€”-
Main httpd configuration file : /etc/httpd/conf/httpd.conf
Plesk httpd : /etc/httpd/conf.d/zz010_psa_httpd.conf
Include conf files are under : /etc/httpd/conf.d (depends on the location specified in main httpd)
Startup script for plesk apache : /usr/local/psa/admin/bin/httpsdctl start
Apache main log files under : /var/log/httpd

PHP
β€”β€”-
Php configuration file : /etc/php.ini
Php extension modules are taken from : /etc/php.d

Named
———–

Conf file located : /var/named/run-root/etc/named.conf
DB record : /var/named/run-root/var/domain.com
Log file : /var/log/messages
Service to restart : /etc/init.d/named restart

FTP
β€”β€”

Conf file : /etc/proftpd.conf
Log file : /var/log/messages

Mysql
β€”β€”β€”

Databases are located at : /var/lib/mysql

Configuration file : /etc/my.cnf

Mysql log : /var/log/mysqld.log

Mail Server:
β€”β€”β€”β€”

Location of qmail directory : /var/qmail

Mail directory of a domain : /var/qmail/mailnames/domain.com

Mail log : /var/log/maillog or /usr/local/psa/var/log/maillog

Home directory of a domain:
———————————–
Home directory : /var/www/vhosts/domain.com

Httpd conf file of a domain : /var/www/vhosts/domain.com/conf/httpd.include

document root directory : /var/www/vhosts/domain.com/httpdocs

Document root directory of secure website : /var/www/vhosts/domain.com/httpdsdocs

Subdomains are created under : /var/www/vhosts/domain.com/subdomains

Domain specific logs are under : /var/www/vhosts/domain.com/statistics/ logs

Hello world!

Posted: May 7, 2009 in Uncategorized

Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!