CPanel/服务器文件及目录

来自站长百科
跳转至: 导航、​ 搜索

CPanel | 面板说明 | 域名设置 | 邮件管理 | 数据库管理 | 文件管理 | 日志管理 | 安全管理 | 其他

cPanel服务器默认的各主要目录及配置文件的路径。cPanel服务器很多配置文件的路径和通常情况下安装LAMP的不同,另外还有很多是属于cPanel面板自己的配置文件。

Apache[ ]

/usr/local/apache
+ bin- apache binaries are stored here – httpd, apachectl, apxs
+ conf – configuration files – httpd.conf
+ cgi-bin
+ domlogs – domain log files are stored here
+ htdocs
+ include – header files
+ libexec – shared object (.so) files are stored here – libphp4.so,mod_rewrite.so
+ logs – apache logs – access_log, error_log, suexec_log
+ man – apache manual pages
+ proxy -
+ icons -

CPanel[ ]

/usr/local/cpanel
+ 3rdparty/ – tools like fantastico, mailman files are located here
+ addons/ – AdvancedGuestBook, phpBB etc
+ base/ – phpmyadmin, squirrelmail, skins, webmail etc
+ bin/ – cpanel binaries
+ cgi-sys/ – cgi files like cgiemail, formmail.cgi, formmail.pl etc
+ logs/ – cpanel access log and error log
+ whostmgr/ – whm related files

WHM[ ]

/var/cpanel – whm files
+ bandwidth/ – rrd files of domains
+ username.accts – reseller accounts are listed in this files
+ packages – hosting packages are listed here
+ root.accts – root owned domains are listed here
+ suspended – suspended accounts are listed here
+ users/ – cpanel user file – theme, bwlimit, addon, parked, sub-domains all are listed in this files
+ zonetemplates/ – dns zone template files are taken from here

Important CPanel/WHM files[ ]

/etc/domainips  独立ip  如果共享ip被当成了独立ip删除这里的就可以了
/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/cpbackup-userskip.conf -
/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 ( For resellers to give their nameservers )
/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.
/etc/wwwacct.conf – account creation defaults file in WHM (Basic cPanel/WHMSetup)
/etc/cpupdate.conf – Update Config
/etc/cpbackup.conf – Configure Backup
/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)
/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

PHP[ ]

Program :/usr/local/bin/php, /usr/bin/php
ini file: /usr/local/lib/php.ini – apache must be restarted after any change to this file

Exim[ ]

Conf : /etc/exim.conf – exim main configuration file
/etc/localdomains – list of domains allowed to relay mail
Log : /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
Mail queue: /var/spool/exim/input
Cpanel script to restart exim – /scripts/restartsrv_exim
Email forwarders and catchall address file – /etc/valiases/domainname.com
Email filters file – /etc/vfilters/domainname.com
POP user authentication file – /home/username/etc/domainname/passwd
catchall inbox – /home/username/mail/inbox
POP user inbox – /home/username/mail/domainname/popusername/inbox
POP user spambox – /home/username/mail/domainname/popusername/spam
Program : /usr/sbin/exim (suid – -rwsr-xr-x 1 root root )
Init Script: /etc/rc.d/init.d/exim

MySQL[ ]

Program : /usr/bin/mysql
Init Script : /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

更多...[ ]

Apache Linux cPanel mySQL Exim PHP

参考来源[ ]

  • 站长百科原创

CPanel使用手册导航

面板说明

账户信息 | 登陆面板 | 风格演示 | 后台语言更改 | 快捷方式设置 | 错误页 | 续费管理 | 修改面板密码 | 修改注册人信息 | 一键安装wordpress | 查看FTP用户名和IP地址 | BlueHost的独立IP价格 | HostMonster退款政策

域名设置

面板绑定域名 | 设置暂停的域 | 设置二级域名 | 设置附加域 | 域名续费 | 修改NS | 设置域名重定向 | 简单DNS设置 | 设置301重定向 高级DNS设置 | 设置泛域名解析 设置网络邮件

邮件管理

创建邮件账户 | 登录Web邮箱 | 添加MX记录 | 创建转发器 | 创建自动回复 | 设置默认地址 | 设置邮件递送路径 | 设置邮件列表 | 防垃圾邮件 设置用户等级过滤

数据库管理

建立MySql | 远程访问MySql | 管理phpMy | 修改phpMy密码 | 设置MySQL向导 | 更改数据库用户权限

文件管理

文件管理器 | 在线解压缩 | 创建FTP账户 | 网络磁盘 | 磁盘空间 | 查看文件数 | 伪静态设置 | 防盗链设置 | 更改FTP密码 | 网站备份 | 网站还原 | FTP会话控制 | FTP查看站点文件 | 修改文件权限 | 设置备份向导 | 设置Apache |设置匿名FTP |上传文件 |Legacy文件设置 |R1Soft恢复备份

日志管理

最近访客 | 带宽占用 | 原始访问日志 | 模拟Stats | 查看错误日志 |查看资源使用

安全管理

密码保护目录 | IP拒绝管理器 | SSH密钥登陆 | 索引管理 | 时钟守护 | 设置Leech保护 | 开启FastCGI | 设置网络工具 | 设置CGI功能 | 设置MIME类型 设置图像管理器 |安装SSL证书 设置GnuPG

其他

服务器文件及目录 | HostMonster视频教程