Click here for "Safe Air Conditioner Repair and Proper Freon Recovery".

Debian10 ; FTP server, Web server Apache

1. FTP server installation

1.1 Install vsftpd

FTP Port21 permission
Edit vsftpd configuration file
Next, create a new vsftpd.chroot_list under /etc.
Add your Debian user name (e.g. debian-user) to this file.
Finally, enable vsftpd and reboot

1.2 Check the FTP connection.

Use FFFTP, a Windows FTP client, to check.
Open FFFTP and select Connect from the menu bar.

A window called "Host List" will open. Select a new host.

A window called "Host Settings" will open. Enter the following and press OK

1. host configuration name (any name)
2. Hostname (IP address in Debian) 192.168.11.100
3. User name (Debian user name) hoge
4. password ********

You will be returned to the Host List window. Press Connect.

A window called "Save Encryption Status" will open. Select Yes.

If you can see the Windows directory on the left and the Debian directory on the right, the connection is successful.
If you cannot connect, turn Passive mode on and off.

2. WEB server Apache2 installation

2.1 Apache2 Installation and Configuration

Open port 80 before installing Apache2.

Install Apache2

Basic Configuration of Apache2

2.2 Apache2; using Perl scripts

Install and enable Perl.

Enable the CGI module.

Restarting Apache

When the CGI module is enabled, the [/usr/lib/cgi-bin] directory will be allowed to execute CGI by default.
By creating and deploying the [/usr/lib/cgi-bin/index.cgi] script, you can access [http://(Apache2 server)/cgi-bin/index.cgi]. Note that this setting treats all files under [/usr/lib/cgi-bin] as CGI, so non-CGI files cannot be displayed.
Let's create the following test script and see if it works.

Create a test script

Grant permissions to script files.

operation check

In the rare case that you get a "curl: command not found" message

check again

2.3 Apache2; using PHP scripts

Install PHP

Configuring Apache2

Editing the PHP configuration file

Create a PHP test page and check it works
Creating a test page

Go to "http://<server IP address>/index.php"
If you see a page like the following, you are good to go.

2.4 Virtual Host Configuration

Copy the default configuration file and configure the virtual host settings

Edit the configuration file
Disable the default configuration file by putting a symbolic link to it
Default disable
Edit the hosts file
Create directory
Create a test page and check it works.
タイトルとURLをコピーしました