fatal proftpd error

Problems with the Linux version of XAMPP, questions, comments, and anything related.

fatal proftpd error

Postby leehigginbotham » 07. April 2021 14:02

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
Lee Higginbotham
Linux Server Specialist
leehigginbotham
 
Posts: 3
Joined: 31. March 2021 20:31
Location: Louisville, KY, USA
XAMPP version: 8.0.3.0
Operating System: CentOS 7.9

Re: fatal proftpd error

Postby Nobbie » 07. April 2021 15:18

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.
Nobbie
 
Posts: 12012
Joined: 09. March 2008 13:04

Re: fatal proftpd error

Postby leehigginbotham » 13. April 2021 19:41

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.
Lee Higginbotham
Linux Server Specialist
leehigginbotham
 
Posts: 3
Joined: 31. March 2021 20:31
Location: Louisville, KY, USA
XAMPP version: 8.0.3.0
Operating System: CentOS 7.9

Re: fatal proftpd error

Postby Nobbie » 13. April 2021 20:45

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.
Nobbie
 
Posts: 12012
Joined: 09. March 2008 13:04


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 5 guests