PDA

View Full Version : From proftpd to pureftpd



Duboux
12-15-2011, 03:21 PM
help, seriously crying here :P

by setting the options in options.conf to:
proftpd=0
pureftpd=1
And running the ./build update_all command..

I believed that I would have a running pure-ftpd and a removed proftpd..

But after a while I see yet that:
- pure-ftpd ain't even mentioned as a running service in the control panel
- proftpd somehow still works
- pure-ftpd somehow not works
(this is after this: link (http://www.directadmin.com/forum/showthread.php?t=42296) got noticed and "fixed")


What am I missing that the custombuild doesn't tell me ?

zEitEr
12-15-2011, 10:52 PM
Hello,

Check with this http://www.directadmin.com/features.php?id=1143

Did you unify the files for PureFTPd? I guess no.

Additionally try


chkconfig proftpd off
service proftpd stop

Duboux
12-16-2011, 01:31 PM
in /usr/local/directadmin/conf/directadmin.conf

unified_ftp_password_file=1
pureftp=1(
btw, I noticed these too:

ftpconfig=/etc/proftpd.conf
ftppasswd=/etc/proftpd.passwd
ftpvhosts=/etc/proftpd.vhosts.conf)

also /usr/local/directadmin/custombuild/options.conf shows

#FTP options
proftpd=no
pureftpd=yes

So that's the "http://www.directadmin.com/features.php?id=1143" part.
For the "http://www.directadmin.com/features.php?id=1134" part, I may have installed pure-ftpd before the multi-IP was created. but that link shows this bit:

cd /usr/local/directadmin
echo "unified_ftp_password_file=1" >> conf/directadmin.conf
echo "action=convert&value=unifiedftp" >> data/task.queue
./dataskq d1
Which I can't remember if I did, but I think I did some conversion. (been a while since I installed pure-ftp)

Duboux
12-16-2011, 03:37 PM
Okay, I tried it too on a new server, which had proftpd installed by default.

Steps I did were:


# vim /usr/local/directadmin/custombuild/options.conf
have the following settings:
proftpd=no
pureftpd=yes
# ./build update_versions


Assuming this would take care of everything, I noticed proftpd was still running. As I've been liking the idea that custombuild does it all for u ;) <3

Searching guides and forumpost I did the following:


vim /usr/local/directadmin/conf/directadmin.conf
have the following settings:
unified_ftp_password_file=1 (was already so)
had to add:
pureftp=1
# vim /usr/local/directadmin/data/admin/services.status
removed the line: proftpd=ON
(there's no line like pure-ftp=ON or something)
# service directadmin restart


Nope.. still not good enough..

Then the guessing part started:


# service proftpd stop
# service pure-ftpd status (didn't exist..., so:)
# ./build pureftpd (did it again)
# echo "pure-ftpd=ON" >> /usr/local/directadmin/data/admin/services.status
and:
# cd /usr/local/directadmin
# echo "action=convert&value=unifiedftp" >> data/task.queue
# ./dataskq d1


And a restart of DA seemed to hold.

So why is this stuff not mentioned ?
And can't I see it on the forum / helpfiles ?
Am I the only one that had/s this not working ?



ps, it is kinda hard to follow this, since there's 3 usages for the name in use:
pureftp is used by directadmin.conf
pureftpd is used by custombuilds options.conf
pure-ftpd is as service name




~~~~~~~~~~~~~~ edit ~~~~~~~~~~~~~
My g*d, after a reboot:
[root@server ~]# service pure-ftp status
pure-ftp: unrecognized service
[root@server ~]# service proftpd status
proftpd is stopped

:'(

zEitEr
12-16-2011, 07:59 PM
I've got at least two boxes which have PureFTPd running, and I hardly remember a half of those issues you are facing now.
As far as I remember custombuild script does try to stop proftpd. And here is the code:


#setup the directadmin.conf
setVal pureftp 1 ${DACONF_TEMPLATE_FILE}
setVal pureftp 1 ${DACONF_FILE}

killall proftpd

doRestartDA;

if [ -e ${SERVICES} ]; then
/usr/bin/perl -pi -e 's/proftpd=/pure-ftpd=/' ${SERVICES};
fi

killall proftpd

pure-pw mkdb /etc/pureftpd.pdb -f /etc/proftpd.passwd

if [ ! -e /etc/logrotate.d/pure-ftpd ] && [ ${OS} != "FreeBSD" ]
then
wget ${WEBPATH}/pure-ftpd.logrotate -O /etc/logrotate.d/pure-ftpd
fi

cd ${CWD}
echo "Restarting Pure-FTPd."
${INITDDIR}/pure-ftpd restart

It seems it does nothing with chkconfig, but it try to stop ProFTPd and to start PureFTPd.

Duboux
12-18-2011, 05:54 AM
Yes, I don't know what has been causing it..
I also have a few other boxes that are still running pure-ftpd very well.

It's just fishy that the newest have it.
Maybe there's some error logs that I've missed ?

smtalk
12-19-2011, 01:12 AM
"./build update_versions" is not a command for installing services for the first time, it does nothing if /usr/sbin/pure-ftpd does not exist. Execute "./build pureftpd" and see if it helps.

Duboux
12-19-2011, 06:19 AM
ah okay, thanks