Commonly Used Configuration Files and Commands
March 31, 2005 Posted by KP
Bind
Configuration file: /etc/namedb/named.conf
Start: # /etc/rc.d/named restart[start/stop]# rndc reload
Apache
Configuration file: /usr/local/etc/apache/httpd.conf
Start: # /usr/local/sbin/apachectl restart[start/stop/graceful]
MySQL
# /usr/local/etc/rc.d/mysql-server.sh start[stop/restart]
Create new user
mysql> grant usage on database_name.* to user_name@localhost IDENTIFIED BY ‘somepassword’ WITH GRANT OPTION;
mysql> grant all on database_name.* to user_name@localhost;
PHP
Configuration file: /usr/local/etc/php.ini
ProFTPD
configuration file: /usr/local/etc/proftpd.conf
Start: # /usr/local/libexec/proftpd
Debug mode: # /usr/local/libexec/proftpd -n -d 9
inetd
# /etc/rc.d/inetd restart
Portsnap
# portsnap fetch update
CVSup
Configuration file: /root/ports-supfile
Update: # cvsup -g /root/ports-supfile
Postfix
Configuraton file: /usr/local/etc/postfix/main.cf
Reload: # /usr/local/sbin/postfix reload
Mail queue
Related Posts:
- Sample of BIND Configuration Files
- Start Program at Boot Time
- First Website Is Running
- Create MySQL User
- Log Files
- Install ProFTPD
- MySQL Start Script
- Switch to pure-ftpd
Filed Under: FreeBSD General