業務用エアコン関連の技術情報、エラーコード、環境問題対策に関する別サイト「エアコンの安全な修理・適切なフロン回収」

OpenSUSE Tumbleweed : WEB Server (Apache)

1. WEB Server (Apache)

1.1 apache2 Install

1.2 Apache2 :Basic Settings

1.3 Firewalld

HTTP サービスの許可が必要です。なお、HTTP は 80/TCP を使用します。HTTPSは443

1.4 Apache2 : operation check

Create an HTML test page to check the operation. Start a Web browser on the client PC and check if the test page you created can be accessed as follows

Access http://[IP address] with a browser and confirm that it is displayed as shown below.

2. Apache2 : Using Perl Scripts

 Configure Perl scripts to be used as CGI

2.1 Perl

①Install

Enable CGI module

CGI execution is permitted by default under [/srv/www/cgi-bin/].
For example, by creating and placing the script [/srv/www/cgi-bin/index.cgi], you can access [http://(httpd server)/cgi-bin/index.cgi].
This configuration treats all files under [/srv/www/cgi-bin/] as CGI, so files other than CGI cannot be displayed.

Create test scripts and check operation

Authorize script files

operation check

If "Hello CGI" is displayed, it is normal.

3. Apache2 : Virtual Host Settings

Assign and configure the domain name [FQDN] to be operated on the virtual host in the document root [/srv/www/htdocs/[FQDN]] directory

Create a new virtual host configuration file

Create directory named /srv/www/htdocs/[FQDN]

Create the idex.html file in the /srv/www/htdocs/[FQDN] directory

Edit hosts file

Access "http://[FQDN]/" with a web browser.

4. Apache2 : Using PHP Scripts

Install and configure PHP so that PHP scripts are available

4.1 PHP Install

Find out what php version you can install

4.2 Create a PHP test page and check its operation

Create test page

Start a Web browser on the client PC, access "http://[FQDN]/test.php", and if the test page you created is displayed as shown below, it is OK.(PHP version may be different)

Copied title and URL