My proftpd is stopped after I restart my server. When I click Start Proftpd on virtualmin, it showed me Failed to start service : Starting proftpd: [FAILED]. Then I login to my server through ssh and I used these command but it give me error of
[root@SC-D6119 ~]# service proftpd start
Starting proftpd: [FAILED]
[root@SC-D6119 ~]# service proftpd stop
Shutting down proftpd: [FAILED]
[root@SC-D6119 ~]# service proftpd restart
Shutting down proftpd: [FAILED]
Starting proftpd: [FAILED]
I tested it several time and one time when i type service proftpd start, it showed me that /etc/int.d.proftpd not found.
Then I use the command yum install proftpd but it said that i have installed it and nothing to do.
[root@SC-D6119 ~]# /usr/sbin/proftpd
- warning: handling possibly truncated configuration data at line 250 of '/etc/proftpd.conf'
- Fatal: : unclosed context on line 250 of '/etc/proftpd.conf'
Umask 022 is a good standard umask to prevent new dirs and files
from being group and world writable
Umask 022
Allow users to overwrite files and change permissions
AllowOverwrite yes
AllowAll
A basic anonymous configuration, with an upload directory
Enable this with PROFTPD_OPTIONS=-DANONYMOUS_FTP in /etc/sysconfig/proftpd
User ftp
Group ftp
AccessGrantMsg "Anonymous login ok, restrictions apply."
# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp
# Limit the maximum number of anonymous logins
MaxClients 10 "Sorry, max %m users -- try again later"
# Put the user into /pub right after login
#DefaultChdir /pub
# We want 'welcome.msg' displayed at login, '.message' displayed in
# each newly chdired directory and tell users to read README* files.
DisplayLogin /welcome.msg
DisplayChdir .message
DisplayReadme README*
# Cosmetic option to make all files appear to be owned by user "ftp"
DirFakeUser on ftp
DirFakeGroup on ftp
# Limit WRITE everywhere in the anonymous chroot
<Limit WRITE SITE_CHMOD>
Oh well… It worked when I remove the anonymous part from my proftpd.conf
A basic anonymous configuration, with an upload directory
Enable this with PROFTPD_OPTIONS=-DANONYMOUS_FTP in /etc/sysconfig/proftpd
User ftp
Group ftp
AccessGrantMsg "Anonymous login ok, restrictions apply."
# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp
# Limit the maximum number of anonymous logins
MaxClients 10 "Sorry, max %m users -- try again later"
# Put the user into /pub right after login
#DefaultChdir /pub
# We want 'welcome.msg' displayed at login, '.message' displayed in
# each newly chdired directory and tell users to read README* files.
DisplayLogin /welcome.msg
DisplayChdir .message
DisplayReadme README*
# Cosmetic option to make all files appear to be owned by user "ftp"
DirFakeUser on ftp
DirFakeGroup on ftp
If you don’t need the anonymous FTP feature, it should be okay to just remove that block. Otherwise it should help to just add a line reading “” at the end of the block to fix the syntax error.