
High Grade Reseller Hosting Solutions
“For their high grade Reseller Hosting solutions, Cartika Hosting receives an Editors' Choice Award”
Network Information
| Network Configuration |
| Cluster MRTG Graphs |
| Cartika Network Status |
| Uptime Statistics |

| HSphere Web Server Configuration |
|
This document covers the following issues:
Installed Software
See H-Sphere package list to check the versions of Web server software products included into your H-Sphere installation. Apache Web Server ConfigurationApache configuration directory is /hsphere/local/config/httpd. Also, a symlink alias to this directory is generated in the Apache home directory, that is, /hsphere/shared/apache/conf. /hsphere/local/config/httpd/httpd.conf - Apache configuration file. In the Apache config directory, virtual host configuration files are located in the /hsphere/local/config/httpd/sites directory:
(HS 2.5+) /hsphere/local/config/httpd/logrotate.cfg - log rotate config file which includes all log confs located in the /hsphere/local/config/httpd/logrotate_conf/ directory:
FrontPage ExtensionsFrontPage Extensions version 5.0, is used as an upload server for Microsoft FrontPage site builder. /hsphere/shared/frontpage/ is the H-Sphere Frontpage binaries directory. /hsphere/shared/frontpage/version{number} is a subdirectory where Frontpage distribution is contained. Also, a symlink to this directory is /usr/local/frontpage/version5.0. This is made for the compliance with default FrontPage settings - FrontPage directory is /usr/local/frontpage by default. WebShell4Webshell is the H-Sphere web-based file manager that enables to browse remote directories without knowing the Unix file structure. /hsphere/shared/apache/htdocs/webshell3 - Webshell 3 installation directory. PHPMyAdminPHPMyAdmin is a PHP-based MySQL administration package. Its files are located in the /hsphere/shared/apache/php/phpMyAdmin directory. WebalizerWebalizer is one of the most popular traffic log analyzers. It is included to default H-Sphere installation and available for Linux-hosted accounts. Webalizer analyzes transfer log and generates readable HTTP transfer reports for a domain. To activate the Webalizer resource, the Transfer Log resource must be enabled. Webalizer is installed to /hsphere/shared/bin/webalizer. /hsphere/shared/apache/conf/webalizer_user.cfg - webalizer config file. In H-Sphere scripts directory, the following scripts are used for Webalizer activation and update: Webalizer directory for a domain: /hsphere/local/home/{user}/{domain.name}/webalizer/. For the location of user log files, please refer to Third-Party Traffic Calculation. ModloganModLogAn is a third-party traffic calculation utility, similar to Webalizer. To activate the Modlogan resource, Transfer Log must be enabled. Modlogan is installed in /hsphere/shared/bin/modlogan. /hsphere/shared/apache/conf/modlogan_user.cfg - Modlogan config file. In H-Sphere scripts directory, the following scripts are used for Modlogan activation and update: Modlogan directory for a domain: /hsphere/local/home/{user}/{domain.name}/modlogan/. For the location of user log files, please refer to Third-Party Traffic Calculation. AWStats(v.2.4 and up) AWStats is a free tool that generates advanced graphical web server statistics reports. AWStats is set up on each Unix/Linux and Windows web server with H-Sphere installation or upgrade. Statistics is calculated for each domain separately. AWStats directory: /hsphere/shared/awstats. Each domain has its own AWStats configuration file: /hsphere/local/home/{user}/{domain.name}/cgi-bin/awstats.{domain.name}.conf AWStats statistics for a domain is available at http://{domain.name}/cgi-bin/awstats.pl AWStats log directory for a domain: /hsphere/local/home/{user}/{domain.name}/awstats/data/ For the location of user log files, please refer to Third-Party Traffic Calculation. UrchinUrchin is a third party Web analytics software integrated into H-Sphere. Urchin is installed and configured separately. Urchin directory: /hsphere/local/urchin. Urchin collects statistics for each domain into the /hsphere/local/urchin/var/logs/urchin-{domain_id}.log files. This statistics is transfered to the Urchin remote server via HTTP by means of the print-log.pl script located in cgi-bin directory of each domain directory. Log file with Urchin history: /hsphere/local/urchin/data/history Web Traffic Calculation in H-SphereThere are two types of traffic calculation in H-Sphere:
Please refer to a separate document on Web traffic calculation and log rotation in H-Sphere for version 2.5 and up and for versions before 2.5. Sharing Common Resources With Mail Server Installed On The Same Physical ServerIf Unix Web server and mail server are installed on one box, one single Apache server is used for both services. Otherwise, Apache web server for mail server running on a separate machine would be simplified, void of Web features such as Frontpage extensions, SSL support, Webshell, Modlogan, Webalizer, rotatelogs and the like. Script Restarting ApacheThe following script is used to restart Apache: Running the script can give large number of warnings. Most of them mean that a user created subdomain(s) through the control panel and then manually deleted the related directory without removing the related configuation. This will not prevent apache from starting or from normal operation. Apache SuExecH-Sphere web box apache suexec is configured to run users' CGI scripts only within the /hsphere/local/home/ directory, recursively. Thus, a user may run his/her own cgi scripts only if he/she has fourth nesting level within the H-Sphere user home directory, for example, /hsphere/local/home/user_home1. List of Packages Compiled With ApacheTo get the list of packages configured with the Apache server, type the following command under root: You may get the following packages configuration: SSL ModeSSL is implemented by the mod_ssl utility. There are dedicated SSL mode and shared SSL mode. In the first case, a single SSL certificate is issued for a dedicated IP, in the second case, one SSL certificate would be used for all IPs under the same domain zone. Dedicated SSLFor dedicated IPs, SSL keys are located in the user home directory: If SSL is enabled, the following files will be placed to this directory:
Shared SSLDirectories with SSL certificates and keys are located in the Apache config directory (/hsphere/shared/apache/config/). /hsphere/shared/apache/conf/ssl.shared - directory for shared SSL certificates and keys. Shared SSL directory structure:
With SSL enabled, the following files are placed into this directory:
When the user turns off SSL, the files remain on the server. When the user turns SSL back on, they are overwritten with the new files. FTP ServerH-Sphere FTP server is based on ProFTPd version 1.2.4. ProFTPd binary is /hsphere/shared/sbin/proftpd There are two kinds of FTP:
User FTPLog File/hsphere/local/var/proftpd/logs/xferlog is the FTP log file. When a user uploads or downloads data, the corresponding record is made in the log file. ConfigurationFTP configuration directory is /hsphere/shared/config/ftpd. /hsphere/shared/config/ftpd/proftpd.conf - FTP configuration file. /hsphere/shared/config/ftpd/proftpd.conf.shared - FTP subaccounts configuration file. Download/Upload PermissionsUser can download and upload files from his document root directory (/hsphere/local/home/{user_name}/{domain_name}) after he logs in by FTP entering his login name ({user_name}) and password: User FTP Traffic CalculationCron runs the /hsphere/shared/scripts/cron/ftp_anlz_user.pl script on everyday basis for collecting user FTP traffic. ftp_anlz_user.pl parses the /hsphere/local/var/proftpd/xferlog FTP log file and writes FTP traffic statistics into the /hsphere/local/var/statistic/dd.mm.YYYY.gst.txt statistics files. The TrafficLoader Java class utility is launched by cron to process FTP traffic statistics and load it to the system database. TrafficLoader also calls the /hsphere/shared/scripts/xfer_cat.pl to gzip outdated statistics files and move them into the loaded directory where they are stored as dd.mm.YYYY.gst.txt.gz archives. Virtual FTPLog FileFor each virtual account, its own configuration file is located in the /hsphere/local/var/proftpd/logs/ directory. File format: {vhost_id}.ftp.log. For example, wwwuser has virtual FTP enabled for the test.psoft virtual host, and vhost_id=1208 is the virtual host identifier. When the virtual FTP user test3 connects by FTP to the virtual host (ftp This e-mail address is being protected from spam bots, you need JavaScript enabled to view it ), he would be allowed to download and upload (if permissions to write are set to that virtual host) from /hsphere/local/home/wwwuser/1208 directory for downloads and /hsphere/local/home/wwwuser/1208/incoming directory for uploaded files. The log records would be added to /hsphere/local/var/proftpd/logs/1208.ftp.log The same is true for anonymous FTP account. If this option is enabled for the test.psoft virtual host, any user may connect by FTP using anonymous login and any email as a password, and all his downloads would go to /hsphere/local/home/wwwuser/1208 directory, uploads to the /hsphere/local/home/wwwuser/1208/incoming subdirectory. ConfigurationConfiguration directory is /hsphere/local/config/ftpd. The sites subdirectory contains configuration files {vhost_id}.conf. These files are generat ed by H-Sphere when the new virtual FTP server is created, by parsing the /hsphere/local/home/cpanel/shiva/shiva-templates/common/ftp/ftp.config template where the structure of virtual host configuration is set. The sites/index.conf file contains the inclusions of the {vhost_id}.conf files. The sites/{vhost_id}.passwd files contain information on the following accounts: /hsphere/local/config/ftpd/proftpd.conf - configuration file. It includes the user FTP configuration file and sites/index.conf file. Virtual FTP Traffic CalculationCron runs the /hsphere/shared/scripts/cron/ftp_anlz.pl script daily to collect virtual FTP traffic statistics. The script parses the virtual FTP log files and writes traffic statistics into the timestamp-named /hsphere/local/var/statistic/dd.mm.YYYY.ftp.txt statistics files. The TrafficLoader Java class utility is launched by cron to process anonymous FTP traffic statistics and load it to the system database. TrafficLoader also calls the /hsphere/shared/scripts/xfer_cat.pl to gzip outdated statistics files and move them into the loaded directory where they are stored as dd.mm.YYYY.ftp.txt.gz archives. |