XAMPP for LinuxのProFTPDサービスが起動しません

実現したいこと

XAMPP for Linux 8.2.4の環境にて、ProFTPDのサービスをスタートさせたいのですが、正常にスタートできません。
対処法等をご教示いただけますと幸いです。

前提

apacheで表示されるwebサイトのソースファイルをWindows環境からアップロードするために、proFTPDのサービスを起動したいのですが、
スタートコマンドを実行すると、エラーメッセージが表示され、サービスが起動できません。
メッセージ内容から、44行目のfunctionに問題があるようなのですが、何が問題なのかが分からない状況です。
ネットでエラーメッセージを検索してみましたが、私の環境とは異なるようで解決には至りませんでした。

発生している問題・エラーメッセージ

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

該当のソースコード

proftpd.conf

1# This is a basic ProFTPD configuration file (rename it to 2# 'proftpd.conf' for actual use. It establishes a single server 3# and a single anonymous login. It assumes that you have a user/group 4# "daemon" and "ftp" for normal operation and anon. 5 6ServerName "ProFTPD" 7ServerType standalone 8DefaultServer on 9 10# Port 21 is the standard FTP port. 11Port 21 12# Umask 022 is a good standard umask to prevent new dirs and files 13# from being group and world writable. 14Umask 022 15 16# To prevent DoS attacks, set the maximum number of child processes 17# to 30. If you need to allow more than 30 concurrent connections 18# at once, simply increase this value. Note that this ONLY works 19# in standalone mode, in inetd mode you should use an inetd server 20# that allows you to limit maximum number of processes per service 21# (such as xinetd) 22MaxInstances 30 23 24# Set the user and group that the server normally runs at. 25User daemon 26#Group daemon 27 28# Normally, we want files to be overwriteable. 29<Directory /opt/lampp/htdocs/*> 30 AllowOverwrite on 31</Directory> 32 33# only for the web servers content 34DefaultRoot /opt/lampp/htdocs 35 36<Limit SITE_CHMOD> 37 DenyAll 38</Limit> 39 40# daemon gets the password "xampp" 41# commented out by xampp security 42#UserPassword daemon 2TgxE8g184G9c 43UserPassword daemon <? 44 function make_seed() { 45 list($usec, $sec) = explode(' ', microtime()); 46 return (float) $sec + ((float) $usec * 100000); 47 } 48 srand(make_seed()); 49 $random=rand(); 50 $chars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz./"; 51 $salt=substr($chars,$random % 64,1).substr($chars,($random/64)%64,1); 52 $pass=$argv[1]; 53 $crypted = crypt($pass,$salt); 54 echo $crypted." 55"; 56?> 57 58# daemon is no normal user so we have to allow users with no real shell 59RequireValidShell off 60 61# daemon may be in /etc/ftpusers so we also have to ignore this file 62UseFtpUsers off

試したこと

事前に下記のコマンドにてlamppのセキュリティ設定を行いました。

[root@<サーバー名> ~]# /opt/lampp/lampp security

この処理の中で、ProFTPDのユーザー「daemon」に対するパスワードを初期値「xampp」から別のパスワードに変更しました。

補足情報(FW/ツールのバージョンなど)

XAMPP環境は一通り構築済み(https://teratail.com/questions/sdqe8lh9f5is0s)で、ProFTPDは使用予定が無かったので、
セキュリティ設定等は変更していなかったのですが、
Apacheでweb表示に使用するソースファイルをhtdocsにアップロードするために急遽使用することにしました。

コメントを投稿

0 コメント