Page 1 of 1

fatal proftpd error

PostPosted: 07. April 2021 14:02
by leehigginbotham
Good day,

I'm a newbie when it comes to XAMPP and I've installed XAMPP 8.0.3-0 on a CentOS 7.9 virtual machine.

XAMPP starts fine, however, after running the security configuration, proftpd is giving me the following error:

proftpd[1616]: fatal: unknown configuration directive 'function' on line 44 of '/opt/lampp/etc/proftpd.conf'

Here is the section of the conf file in question Lines 43 - 56:

Code: Select all
     UserPassword daemon <?
              function make_seed() {
                  list($usec, $sec) = explode(' ', microtime());
                  return (float) $sec + ((float) $usec * 100000);
              }
              srand(make_seed());
              $random=rand();
              $chars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz./";
              $salt=substr($chars,$random % 64,1).substr($chars,($random/64)%64,1);
              $pass=$argv[1];
              $crypted = crypt($pass,$salt);
              echo $crypted."
      ";
      ?>


I've been unable to find anything on the forum regarding this error. Any assistance would be helpful.

Sincerely,
Lee

Re: fatal proftpd error

PostPosted: 07. April 2021 15:18
by Nobbie
leehigginbotham wrote:XAMPP starts fine, however, after running the security configuration


Why did you do that? The Xampp Linux FAQ does not mention to run security since many years already, it is not supported anymore and typically results in destroyed Xampp installation. It screwed up your proftpd.conf file.

Re: fatal proftpd error

PostPosted: 13. April 2021 19:41
by leehigginbotham
Good day Nobbie,

Why did you do that? The Xampp Linux FAQ does not mention to run security since many years already, it is not supported anymore and typically results in destroyed Xampp installation. It screwed up your proftpd.conf file.


Thank you for your reply.

I pulled that from the XAMPP FAQ after I stood it up:

https://IP_Address/dashboard/faq.html

How can I make my XAMPP installation more secure?
By default, XAMPP has no passwords set and it is not recommended to run XAMPP with this configuration as it is accessible to others.

Simply type the following command (as root) to start a simple security check:

sudo /opt/lampp/lampp security

Now you should see the following dialog on your screen:


XAMPP: Quick security check...

XAMPP: MySQL is accessable via network.

XAMPP: Normaly that's not recommended. Do you want me to turn it off? [yes] yes

XAMPP: Turned off.

XAMPP: Stopping MySQL...

XAMPP: Starting MySQL...

XAMPP: The MySQL/phpMyAdmin user pma has no password set!!!

XAMPP: Do you want to set a password? [yes] yes

XAMPP: Password: ******

XAMPP: Password (again): ******

XAMPP: Setting new MySQL pma password.

XAMPP: Setting phpMyAdmin's pma password to the new one.

XAMPP: MySQL has no root passwort set!!!

XAMPP: Do you want to set a password? [yes] yes

XAMPP: Write the passworde somewhere down to make sure you won't forget it!!!

XAMPP: Password: ******

XAMPP: Password (again): ******

XAMPP: Setting new MySQL root password.

XAMPP: Setting phpMyAdmin's root password to the new one.

XAMPP: The FTP password for user 'nobody' is still set to 'lampp'.

XAMPP: Do you want to change the password? [yes] yes

XAMPP: Password: ******

XAMPP: Password (again): ******

XAMPP: Reload ProFTPD...

XAMPP: Done.


(1) Setting a password will protect the XAMPP demo pages (http://localhost/xampp/) using this password. The user name is 'lampp'!

After running this command, your XAMPP installation should be more secure.

Re: fatal proftpd error

PostPosted: 13. April 2021 20:45
by Nobbie
WOW - that is really disturbing. Bitnami does not support that "security" feature for many(!) years and still provides that totally crazy FAQ. I did not know that, sorry, but that is really A HAMMER! Forget everything what is written there, its WRONG. As you can see, you are destroying your Xampp installation, and that is a well known fact already for many years. I dont know what Bitnami is "thinking" about that, probably nothing....

Ok, dont run "security", simply take your installation as it is. It is safe for local development. There is no need to "secure" anything.

Re: fatal proftpd error

PostPosted: 04. June 2021 17:22
by jaydee173
Hello all,

I am in the same position as OP leehigginbotham: I am a newbie, I followed the same XAMPP linux FAQs, and I got the same error. I have two follow-up questions:

1. How do I fix this? I guess I have to uninstall and reinstall, but I am finding conflicting information online as to how to do this (and most of the information is for Windows users). Is there a "best" way?

2. All this is making me feel a little confused. If the XAMPP FAQs are wrong, why have they not been changed after all these years? Also, surely more people would have encountered this error? I have found very few google and duckduckgo search hits on this error. Who am I supposed to trust?
(Nobbie, I mean no offence at all. I can see from your posting that you must be one of the most important people on this forum, and your replies to OP here specifically were very helpful. Just a genuine question, about a general issue that I have as a complete newbie because I know that that makes me vulnerable).

Re: fatal proftpd error

PostPosted: 05. June 2021 10:42
by Nobbie
1) I would simply remove the whole lampp folder and then start the installer again. Remove xampp by running this command in a terminal:

sudo rm -rf /opt/lampp

2) I dont know why Bitnami does not update the faq, obviously they do not test them. Bitnami overtook Xampp project many years ago from a german developer, i believe they never checked the shell scripts which are very old. I am neither a member of Xampp, nor a Moderator of this forum, i am simply an experienced user. You have to ask Bitnami if you want to know more.