PDA

View Full Version : Pure FTPd not running


andreasnrb
19th March 2010, 20:28
First I followed the install instructions here:http://www.ispconfig.org/docs/INSTALL_UBUNTU_8.04.txt
I skipped myDNS since I don't need that.

My problem is I can't seem to get pure ftp to run.
ISPConfig says FTP-server is offline and this:
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Conf pure-ftpd-mysql (1.0.21-11.1ubuntu2 Ubuntu:8.04/hardy)

netstat -tap

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:10025 *:* LISTEN 30297/master
tcp 0 0 127.0.0.1:mysql *:* LISTEN 30115/mysqld
tcp 0 0 *:webcache *:* LISTEN 11833/apache2
tcp 0 0 *:www *:* LISTEN 11833/apache2
tcp 0 0 *:tproxy *:* LISTEN 11833/apache2
tcp 0 0 *:smtp *:* LISTEN 26572/smtpd
tcp 0 0 *:https *:* LISTEN 11833/apache2
tcp 0 0 127.0.0.1:10024 *:* LISTEN 30383/amavisd (mast
tcp6 0 0 [::]:pop3 [::]:* LISTEN 32290/couriertcpd
tcp6 0 0 [::]:imap2 [::]:* LISTEN 32218/couriertcpd
tcp6 0 0 [::]:ssh [::]:* LISTEN 1641/sshd
tcp6 0 0 [::]:imaps [::]:* LISTEN 32257/couriertcpd
tcp6 0 0 [::]:pop3s [::]:* LISTEN 32329/couriertcpd
tcp6 0 248 server.example.com:ssh 55.114.227.87.stat:5464 ESTABLISHED 1784/0


I've googled and googled but can't seem to find an answer.
Thx in advance.

till
19th March 2010, 20:58
Is this a vserver?

andreasnrb
19th March 2010, 21:08
if you by vserver mean VPS then yes.
Cant use the quota stuff on it, but I dont think lack of quota interferes with the FTP.
Could also add that ISPConfig says MySQL is not running but its running fine.
When I followed an instruction for ISPConfig 2 and used ProFTPd the FTP worked but couldn't login into it.

till
19th March 2010, 21:13
Then you most likely use a vps based on openvz or virtuozzo, some providers do not have capabilities enabled which causes pure-ftpd not to start. There are 2 options:

1) enable the capabilities (this has to be run on the host system and not within the vps):

VPSID=101
for CAP in CHOWN DAC_READ_SEARCH SETGID SETUID NET_BIND_SERVICE NET_ADMIN SYS_CHROOT SYS_NICE CHOWN DAC_READ_SEARCH SETGID SETUID NET_BIND_SERVICE NET_ADMIN SYS_CHROOT SYS_NICE
do
vzctl set $VPSID --capability ${CAP}:on --save
done


2) Recompile purefpt without capability support:

http://www.howtoforge.de/howto/pureftpd-ohne-capabilities-unter-debian-lenny-selbst-bauen/

These instructions are only available in german, but you might be able to follow them.

andreasnrb
19th March 2010, 21:25
Yeah they have OpenVZ
Thanks for solution, I can read german so no problem there.
Have to say I learn a lot trying to config nix setup.
Is it required to use Pure or could I use another FTP server instead?

till
19th March 2010, 21:39
Only pure-ftpd is supported.

andreasnrb
19th March 2010, 22:02
Ok thx.
Cant get apt-get source to work however. Only got two sources listed in my sources.list file.
deb http://archive.ubuntu.com/ubuntu/ hardy main restricted universe
deb http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted universe

Which repository do I have to add to get apt-get source pure-ftpd to work?
[EDIT]
Nevermind found it =).

andreasnrb
19th March 2010, 22:21
Well seems I can't use that method.
After fixing all the dependency crap I get

Can't exec "debian/rules": Permission denied at /usr/bin/dpkg-buildpackage line 477.
dpkg-buildpackage: failure: debian/rules clean failed with unknown exit code -1

when running dpkg-buildpackage -uc -b

I have done chmod +x debian/rules but denial persists.

andreasnrb
20th March 2010, 01:01
It was a noexec so thats why the permission denied happened.
The german instructions worked.
Thx for the help Till.