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

OracleLinux9.1 : WEB Server (Apache)

1.Apache2 installation and virtual host configuration

1.1 Apache2

①httpd install

1.2 Apache Configuration

①Edit httpd.conf file

②If Firewalld is enabled, HTTP service permission is required; HTTP uses [80/TCP]

⑤Apache Auto-Start Configuration

⑥operation check
If you access http://[server IP address] and you see the Oracle Apache2 Test Page as shown below, it is OK.
⑦Hide the Oracle Welcome page, create a new index.html file as a Test Page, and check the operation of apache.

Rename the welcome page

Create HTML test page

If you access http://<server IP address> and the Test Page is displayed as shown below, it is OK.

1.3 Virtual Host Settings

Assign and configure the domain name [oracle.korodes.com] to the document root [/var/www/html/oracle.korodes.com] directory for virtual host operation

Creating a Document Directory
Restart Apache

2. Confirmation of CGI Script Usage

①Confirmation of CGI availability

②Create test scripts and check operation

3. PHP installation and configuration

1.PHP install

①Install

②Version Check

Upgrade to Php 8.1
EPEL and Remi repositories are required, so install them if you have not already done so.

Stop PHP once

Installing PHP 8.1

php-fpm configuration

③Restart Apache
After PHP installation, restarting Apache will invoke PHP-FPM (FPM : FastCGI Process Manager) by default, and php-fpm service will be started in conjunction with httpd startup.

④Confirmation of PHP operation
Create the following files

Access http://<domain name>/test.php in your browser and if you see the following screen, it is OK

タイトルとURLをコピーしました