Configured to use CGI

Posted by: admin at 11 Monday 5th, 2008

httpd.conf and fixes.
httpd.conf is usually located below.
 /usr/local/apache2/conf 
Or
 /usr/local/etc/apache2 

Commented out of the bullet (#), remove the
httpd.conf
 AddHandler cgi-script .cgi 

Options to change the directive
httpd.conf
 <Directory />
     Options ExecCGI FollowSymLinks Includes MultiViews 
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory> 

URL from the "~" (tilde) to eliminate

Posted by: admin at 11 Monday 5th, 2008

httpd.conf and fixes.
httpd.conf is usually located below.
 /usr/local/apache2/conf 
Or
 /usr/local/etc/apache2 

httpd.conf
 Alias / USERNAME / "/home/ USERNAME /public_html/"
<Directory "/home/ USERNAME /public_html">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory> 
Directory in the directive is an example. Please change if necessary.

Fold the top in the FTP directory

Posted by: admin at 11 Monday 3rd, 2008

If you have multiple users, but has been watching the user's system directory and not the other.
The most permissions, and unauthorized access is possible, when I saw a list of other users on the server has been previously rented and borrowed a fright.
/etc/ftpchroot
 USERNAME01 
 USERNAME02 
 USERNAME03 
 USERNAME ...
 USERNAME ...
 USERNAME ... 
There is no user name is the group name.

Filed under Preferences |

No Comments »

To a specific user root grant

Posted by: admin at 11 Monday 3rd, 2008

At the command line user su and type is set to be able to gain root privileges.
/etc/group
 wheel:*:0:root, USERNAME 

Filed under General |

No Comments »

To stop and restart a specific service

Posted by: admin at 11 Monday 3rd, 2008

Stop
 # kill -KILL `cat /var/run/ PROCESS .pid` 

Restart
 # kill -HUP `cat /var/run/ PROCESS .pid` 

Check the process ID or the ID specified in the process.
Stop
 # ps -aux | grep named
# kill -KILL  PID 
Restart
 # ps -aux | grep named
# kill -HUP  PID 

Filed under General |

No Comments »

Process ID examine the

Posted by: admin at 11 Monday 3rd, 2008

 # ps -aux | grep  PROCESS_NAME 

Filed under General |

No Comments »

Network Settings

Posted by: admin at 11 Monday 3rd, 2008

/etc/rc.conf
 # ネットワークアドレスが 192.168.0.0/24 の場合
defaultrouter="192.168.0.1"
hostname="HOSTNAME.DOMAIN.NAME"
ifconfig_em0="inet 192.168.0.2 netmask 255.255.255.0" 
ifconfig_em0 of em0 is configuration NIC by the changes, dmesg dmesg NIC, etc. NIC check.

/etc/resolv.conf
 domain		DOMAIN.NAME
nameserver	xxx.xxx.xxx.xxx
nameserver	yyy.yyy.yyy.yyy 

Filed under Preferences |

No Comments »

Change Password

Posted by: admin at 10 Monday 31st, 2008

Log in to the user to change password
 $ passwd 

Filed under Preferences |

No Comments »

Delete User

Posted by: admin at 10 Monday 31st, 2008

 # userdel -n USERNAME -r 
-r option to delete the home directory.
, Why is the server's home directory public_html may not remove a directory.

Filed under Preferences |

No Comments »

Add User

Posted by: admin at 10 Monday 31st, 2008

 # pw useradd USERNAME -m -h fd 
adduser or pw to add
/usr/share/skel files in the directory, the directory is copied to the user.
Every object is to remove unnecessary to advance the idea to add what you need, it is very easy to add users.

In my vpopmail we are using the Maildir directory are also deleted, because the environment would be quite wrong to delete the directory (even出来NAKU be logged in) need to be careful.

Filed under Preferences |

No Comments »