Hello everyone !
I’m web developer from Russia. (and server administrator from a little time)
I’ve just bought a new server in datacentre.
I had a clear CentOS 5.3 installed on it.
I’ve got ip for it (example x.x.x.x further) and a hostname (x.x.x.x.colo.static.dc.domain.tld)
First, i’ve added string to /etc/hosts like:
x.x.x.x x.x.x.x.colo.static.dc.domain.tld
after that command hostname -f prints x.x.x.x.colo.static.dc.domain.tld
Then i set up dns. I registered domain (example: site.com) and created to subdomains: ns1 and ns2 and set IPs for them (for ns1 = ip of this server, for ns2 = ip of my another server with virtualmin).
I added Virtual Server for this domain (site.com) and in dns settings for it i set nameservers ns1.site.com and ns2.site.com. In Address part i’ve also added records
Then, i’ve downloaded virtualmin install script and installed it…
All works fine, but some problems:
- I’m trying to add simply another Virtual Server (first i added site.com, as i wrote before) and i get such error: “Failed to create virtual server : A ProFTPd virtual server with the same IP address already exists”.
My ProFtpd config : (generated by virtualmin)
ServerName “ProFTPD server”
ServerIdent on “FTP Server ready.”
ServerAdmin root@localhost
ServerType standalone
#ServerType inetd
DefaultServer on
AccessGrantMsg “User %u logged in.”
#DisplayConnect /etc/ftpissue
#DisplayLogin /etc/ftpmotd
#DisplayGoAway /etc/ftpgoaway
DeferWelcome off
Use this to excude users from the chroot
DefaultRoot ~ !adm
Use pam to authenticate (default) and be authoritative
AuthPAMConfig proftpd
AuthOrder mod_auth_pam.c* mod_auth_unix.c
IdentLookups off
UseReverseDNS off
Port 21
Umask 022
Default to show dot files in directory listings
ListOptions “-a”
Allow to resume not only the downloads but the uploads too
AllowRetrieveRestart on
AllowStoreRestart on
MaxInstances 20
Set the user and group that the server normally runs at.
User nobody
Group nobody
Disable sendfile by default since it breaks displaying the download speeds in
ftptop and ftpwho
UseSendfile no
This is where we want to put the pid file
ScoreboardFile /var/run/proftpd.score
Normally, we want users to do a few things.
AllowOverwrite yes AllowAllDefine the log formats
LogFormat default “%h %l %u %t “%r” %s %b”
LogFormat auth “%v [%P] %h %t “%r” %s”
I want an ability to login to Virtual Server’s ftp through a domain like ftp.site.com, ftp.site2.com, ftp.site3.com etc.
- I’m trying to add server in DNS Cluster Slave Server i got error “Failed to connect to fastrpc.cgi : Failed to connect to x.x.x.x:10003 : No route to host”
Friends! Help me plz !
Best Regards, Konstantyn