前提・実現したいこと
OSSの開発環境を作るためにApacheを使ってVPSでページを立ち上げようとしますがエラーコード500の内部サーバーエラーが発生してしまいます。Apacheのエラーログを見るとこ以下のようなエラーが出ていました。
発生している問題・エラーメッセージ
[root@localhost logs]# tail -f error_log [Mon May 17 12:14:19.129160 2021] [mpm_event:notice] [pid 40026:tid 139716742412608] AH00489: Apache/2.4.37 (centos) configured -- resuming normal operations [Mon May 17 12:14:19.129214 2021] [core:notice] [pid 40026:tid 139716742412608] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND' [Mon May 17 12:26:14.666149 2021] [mpm_event:notice] [pid 40026:tid 139716742412608] AH00492: caught SIGWINCH, shutting down gracefully [Mon May 17 12:26:15.797978 2021] [core:notice] [pid 40416:tid 140418124097856] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0 [Mon May 17 12:26:15.800433 2021] [suexec:notice] [pid 40416:tid 140418124097856] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message [Mon May 17 12:26:15.836553 2021] [lbmethod_heartbeat:notice] [pid 40416:tid 140418124097856] AH02282: No slotmem from mod_heartmonitor [Mon May 17 12:26:15.837880 2021] [http2:warn] [pid 40416:tid 140418124097856] AH02951: mod_ssl does not seem to be enabled [Mon May 17 12:26:15.843065 2021] [mpm_event:notice] [pid 40416:tid 140418124097856] AH00489: Apache/2.4.37 (centos) configured -- resuming normal operations [Mon May 17 12:26:15.843118 2021] [core:notice] [pid 40416:tid 140418124097856] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
該当のソースコード
/etc/httpd/conf/httpd.confから一部抜粋 'Main' server configuration # # The directives in this section set up the values used by the 'main' # server, which responds to any requests that aren't handled by a # <VirtualHost> definition. These values also provide defaults for # any <VirtualHost> containers you may define later in the file. # # All of these directives may appear inside <VirtualHost> containers, # in which case these default settings will be overridden for the # virtual host being defined. # # # ServerAdmin: Your address, where problems with the server should be # e-mailed. This address appears on some server-generated pages, such # as error documents. e.g. admin@your-domain.com # ServerAdmin root@localhost # # ServerName gives the name and port that the server uses to identify itself. # This can often be determined automatically, but we recommend you specify # it explicitly to prevent problems during startup. # # If your host doesn't have a registered DNS name, enter its IP address here. # #ServerName localhost:80
試したこと
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message と書かれた箇所に原因があるようですが記事をみて修正してみましたが変化はありませんでした。
補足情報(FW/ツールのバージョンなど)
apache2.4
centOS8
mariaDB
googlechrome
回答1件
あなたの回答
tips
プレビュー