Deploy a dynamic registration page on an Ubuntu EC2 instance using Apache web server that
records user registration details in an RDS MySQL database. Ensure the RDS instance is not
publicly accessible and only allows access from your specific EC2 instance.
apahe2.service - the Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Thu 2024-07-04 03:18:42 UTC; 4s ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 2138 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
CPU: 22ms
Jul 04 03:18:42 ip-172-31-88-39 systemd[1]: Starting apache2.service - The Apache HTTP Server...
Jul 04 03:18:42 ip-172-31-88-39 apachectl[240]: AH00526: Syntax error on line 1 of /etc/apache2/ports.conf
Jul 04 03:18:42 ip-172-31-88-39 apachectl[240]: Cannot define multiple Listeners on the same IP port
Jul 04 03:18:42 ip-172-31-88-39 systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Jul 04 03:18:42 ip-172-31-88-39 systemd[1]: apache2.service: Failed with result 'exit-code'.
Jul 04 03:18:42 ip-172-31-88-39 systemd[1]: Failed to start apache2.service - The Apache HTTP Server.
Lines 1-13/13 (END)
200 nano 7.7
/etc/apache2/ports.conf
Listen 80
<IfModule mpm_prefork_module>
Listen 443
</IfModule>