Link to home
Start Free TrialLog in
Avatar of keith li
keith liFlag for Hong Kong

asked on

proftpd-1.3.5 problem in linux RHEL 7

thanks for your advise, I have another issue when installing proftpd proftpd-1.3.5, I cant find the proftpd.conf any idea ?


 proftpd:[root@localhost proftpd-1.3.5]# whereis proftpd
 proftpd:[root@localhost proftpd-1.3.5]#


User generated image
Avatar of manuverhaegen
manuverhaegen

Hi,

Install ProFTPD server

Type the following command as root user:
# yum install proftpd

Start ProFTPD when the system reboot:
# chkconfig --level 3 proftpd on

To start proftpd ftp service, enter:
# service proftpd start

To Stop proftpd ftp server, enter:
# service proftpd stop

To restart proftpd ftp service, enter:
# service proftpd restart

To reload the configuration file, enter:
# service proftpd reload

/etc/proftpd.conf - Proftpd configuration file

The default configuration file is located at /etc/proftpd.conf. To edit the configuration file, enter:
# vim /etc/proftpd.conf

Checking the syntax of the configuration file
# proftpd -t6
Avatar of arnold
Since you compiled from source without seemingly making change to where the config goes, it is likely in /usr/local/ as the base prefix where sbin, bin and etc within that prefix is where you would find the various command.
In future when you install from source, ./configure --help includes what options you can change/adjust
--sysconfig
Etc.

strings /usr/local/sbin/proftpd | grep -I 'etc'

Should confirm the location where the config is being looked for.  Within the source you may have a proftpd.conf.in or something like that that is the base config and you need to run make with an option.  Look through the Makefile if it has an option that builds/sets up proftpd.conf.
Dump what you compiled from source.
Avatar of keith li

ASKER

[root@localhost ~]# strings /usr/local/sbin/proftpd | grep -I 'etc'
strings: '/usr/local/sbin/proftpd': No such file


Does it means the proftd.conf is located in below path ?

proftpd:[root@localhost /]# locate proftpd.conf
/root/Downloads/proftpd-1.3.5/src/proftpd.conf.5
/root/Downloads/proftpd-1.3.5/src/proftpd.conf.5.in


at first I was using this command,

./configure --with-modules=mod_sql:mod_sql_mysql:mod_quotatab:mod_quotatab_sql --with-libraries=/usr/lib/mysql --with-includes=/usr/include/MySQL

& then this

# ./configure --prefix=/usr --with-includes=/usr/local/ssl/include --with-libraries=/usr/local/ssl/lib --enable-openssl --with-modules=mod_sftp --enable-dso
SOLUTION
Avatar of gheist
gheist
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Preferably not overwriting authentic & supported files in /usr/ and /etc/ ;)
I don't receive any errors at all after I run make  & make install, and sorry I,m new in Linux I just run the ./configure from what I have found from the internet, any correct documentation can show me what I should use for command ./configure before using make && make install , thanks for all your reply !!


where I can find proftpd from below link

PLEASE INSTALL PROFTPD RPM FROM FEDORA EPEL https://fedoraproject.org/wiki/EPEL
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
After running "make install" you now need to clean up all the manual build trails from system directories and install clean RPM.
[root@localhost proftpd-1.3.5]# find /root/Downloads/proftpd-1.3.5/ -name "proftpd"
[root@localhost proftpd-1.3.5]#

my system is not registered to Red Hat Subscription Management yet, not able to use yum right now
You can add the repo.
On the link, there is in middle of the page where you can choose which version you have to navigate through the packages

Epel7 x86_64
Epel 6

Etc.

You had an error when you tried to configure, which would prevent the make and subsequent the make install.
Is this below in red ?

User generated image

which one ? sorry for trouble, and thanks a lot for you assist !!!

User generated image
You must reinstall system, register it with redhat, as proftpd install pulls couple of dependencies from redhat.
Why dont you try out on absolutely free CentOS instead and use expensive RedHat once you build enough muscle to handle it?

You must add repository to get security updates automatically.
Hello? How do you navigate website?

Please follow repo install instructions in front page (after cleaning system from mess you left building your own proftpd, preferably by clean reinstall.
Noted, I might build a CentOS instead, and thanks a lots for all your support !!
Atop the screen you posted the image there are a-z, select P and you will see all the available packages starting with p and proftpd.
It is not what you migh build.
Your handling irreversibly damaged the system. You need to reinstall and properly register it's redhat subscription.
Then you can have proftpd installed without glitch.
you I found it, now I,m looking for 3 dependencies in order to install proftpd, I found 2 and installed successfully, only for below need to be installed, Thanks Arnold !!! you helped a lots !!

 libmemcachedutil.so.2()(64bit) is needed by proftpd-1.3.5-5.el7.x86_64
Whenever you look for libs, it is in the form lib<packagename>.so


memcache I think us the package/dependency you need.
http://libmemcached.org/libMemcached.html

Check the DVD from which you installed rhel, some packages should be there.

There is often issues with using other repositories.

I think you can add the role repository to your yum search to have this process ....
Noted with thanks your info is very useful !!
One more issue once I have installed proftp , I want to open the firewall to open port 21 , but once I have turned on the firewall all of my client pc not able to access the Internet, any way I can turn on the firewall while all the client pc could access internet ? In RHEL 6 I could open the firewall to do port forward in GUI, anything I need to do ?
The difficulty in continuing answering questions not related to the topic at hand is that one needs to have a full picture/detail to answer the most recent one.
I.e what is the setup.

When you enable the firewall, you have to make sure that all services on which your LAN systems depend are open as well.  Your likely issue is that you need to open port 53 for both udp and TCP.
Fwbuilder is a GUI interface to iptables.  Which firewall do you have installed in rhel, firewalld or iptables?
System-config-firewall might be what you can use.

My suggestion you should open a separate question to deal with the firewall where you describe your setup, what services your RHEL system provides DHCP, DNS, mail, web, proxy, FTP, etc.
Noted I will close this one and open new topic thanks !
memcached is the component that you can get when your system is subscribed to redhat or satellite.
there is no "i found it on the internet" dependencies, you must apply like 10 security patches on top of 7U1 DVD install
Noted with thanks gheist
Or when you install CentOS you have all packages available....
Really dont waste subscription on learning experiments.
Thanks gheist, wanna know that is below like workabe to crack my RHEL 7 to become yum server, i will not going to do it just wondering whether it will really work ?

https://www.youtube.com/watch?v=N8kVMgDPBKY
No, that is breach of contract in eyes of redhat licence, and pretty much waste of time when CentOS, Oracle Linux and Scientific Linux offer 0.99:0.99 clone systems for free.