after reviewing the thread, I did the following
cd /etc
ls -l ho*
and found my hosts file was indeed empty, however there was a hosts.bak that had pretty much everything in it I would expect.
date on the file was Aug 02, I took a look at Webmin > Webmin > Webmin Actions Log, did find an action on the same date and time, but that was a “Manually edited server” when I was experimenting with some Apache conf for a server.
So I figured, let’s try
cd /etc/
mv hosts hosts.bad
mv hosts.bak hosts
/etc/init.d/proftpd restart
and the proftpd service restarted fine.
however there are problems with using the ftp service (cannot ftp in and put file).
did a check for updates, a number of updates were applied, ran another ftp test from a windows machine and was able to put file. From a CentOS machine, started FTP, was able to log in, typed ls, got message
227 Entering Passive Mode (192,168,nn,nn,nn).
Hi Eric
Similar problem here, Can’t get ProFTPD to start on CentOS 5.6 from virtualmin.
In virtualmin proFTPD is always showing as not runnning however if I give this command from SSH
service --status-all
proftpd (pid 9676) is running…
It appear that proFTPD is running …
any idea why Virtualmin is not detecting it
I have a similar problem.
Up to a short while ago (2 hours ago) the FTPD still worked, now it doesn’t.
Can’t start it. It’s not running, but there are some curious things …
the proftpd --configtest command prints this: Checking syntax of configuration file
warning: unable to determine IP address of ‘server1.mydomain.be’
warning: unable to determine IP address of ‘server1.mydomain.be’
ProFTPD terminating (signal 11)
FTP session closed.
Segmentation fault
I found a post telling me it might be a problem with the DNS, so I added an A record for server1.mydomain.be to the IP of the server.
The /var/log/messages tells me this: May 1 17:19:30 server1 kernel: proftpd[3832]: segfault at 0000000000000068 rip 0000000000465324 rsp 00007fffb2ccc590 error 4
My Error:
[root@datalawn ~]# proftpd --configtest
Checking syntax of configuration file
2017-11-04 09:09:20,180 datalawn.datalawn.com proftpd[9463]: processing configur ation directory ‘/etc/proftpd/conf.d’
2017-11-04 09:09:20,180 datalawn.datalawn.com proftpd[9463]: mod_dso/0.5: unable to load ‘mod_tls.c’; check to see if ‘/usr/libexec/proftpd/mod_tls.la’ exists
2017-11-04 09:09:20,180 datalawn.datalawn.com proftpd[9463]: mod_dso/0.5: module ‘mod_tls.c’ already loaded
2017-11-04 09:09:20,180 datalawn.datalawn.com proftpd[9463]: fatal: TLSRSACertif icateFile: ‘/etc/pki/tls/certs/proftpd.pem’ does not exist on line 8 of ‘/etc/pr oftpd/conf.d/virtualmin.conf’
I installed/provided SSL to ProFTPD and it started
After ProFTPD started,
[root@datalawn ~]# proftpd --configtest
Checking syntax of configuration file
2017-11-04 09:19:17,104 datalawn.datalawn.com proftpd[11448]: processing configuration directory ‘/etc/proftpd/conf.d’
2017-11-04 09:19:17,104 datalawn.datalawn.com proftpd[11448]: mod_dso/0.5: unable to load ‘mod_tls.c’; check to see if ‘/usr/libexec/proftpd/mod_tls.la’ exists
2017-11-04 09:19:17,104 datalawn.datalawn.com proftpd[11448]: mod_dso/0.5: module ‘mod_tls.c’ already loaded
Syntax check complete.
I still see an error regarding mod_tls.c. Maybe someone would enlighten me on that.
But I am glad proftpd is back up and running.
I Was also able to connnect/test using openssl s_client -connect localhost:21 -starttls ftp on the machine via SSH.