『CentOS7でPerlのCGIが実行できません』https://teratail.com/questions/132355 の質問の続きです。
直近のerror_logです。
error_log
1[Fri Jul 06 19:33:13.041158 2018] [mpm_prefork:notice] [pid 12032] AH00170: caught SIGWINCH, shutting down gracefully 2[Fri Jul 06 19:33:14.111654 2018] [core:notice] [pid 13309] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0 3[Fri Jul 06 19:33:14.112806 2018] [suexec:notice] [pid 13309] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) 4[Fri Jul 06 19:33:14.340078 2018] [auth_digest:notice] [pid 13309] AH01757: generating secret for digest authentication ... 5[Fri Jul 06 19:33:14.341083 2018] [lbmethod_heartbeat:notice] [pid 13309] AH02282: No slotmem from mod_heartmonitor 6[Fri Jul 06 19:33:14.349185 2018] [mpm_prefork:notice] [pid 13309] AH00163: Apache/2.4.6 (CentOS) mod_auth_kerb/5.4 mod_nss/2.4.6 NSS/3.15.4 Basic ECC mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations 7[Fri Jul 06 19:33:14.349225 2018] [core:notice] [pid 13309] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND' 8[Fri Jul 06 20:04:51.250456 2018] [core:error] [pid 13315] (13)Permission denied: [client 127.0.0.1:46177] AH00035: access to /buhin/btn056_09_5.gif denied (filesystem path '/var/www/html/buhin') because search permissions are missing on a component of the path, referer: http://127.0.0.1/ 9[Fri Jul 06 20:04:51.250601 2018] [core:error] [pid 13313] (13)Permission denied: [client 127.0.0.1:46176] AH00035: access to /buhin/btn056_09_4.gif denied (filesystem path '/var/www/html/buhin') because search permissions are missing on a component of the path, referer: http://127.0.0.1/ 10[Fri Jul 06 20:04:51.250623 2018] [core:error] [pid 13316] (13)Permission denied: [client 127.0.0.1:46178] AH00035: access to /buhin/btn056_09_6.gif denied (filesystem path '/var/www/html/buhin') because search permissions are missing on a component of the path, referer: http://127.0.0.1/ 11[Fri Jul 06 20:04:51.250659 2018] [core:error] [pid 13312] (13)Permission denied: [client 127.0.0.1:46179] AH00035: access to /buhin/btn056_09_7.gif denied (filesystem path '/var/www/html/buhin') because search permissions are missing on a component of the path, referer: http://127.0.0.1/ 12[Fri Jul 06 20:05:05.484613 2018] [cgi:error] [pid 15157] [client 127.0.0.1:46182] AH01215: (8)Exec format error: exec of '/var/www/cgi-bin/60a11.cgi' failed, referer: http://127.0.0.1/ 13[Fri Jul 06 20:05:05.485905 2018] [cgi:error] [pid 15157] [client 127.0.0.1:46182] End of script output before headers: 60a11.cgi, referer: http://127.0.0.1/
Python/2.7.5の文字も見受けられます。一体何なんでしょう?
①http://127.0.0.1/cgi-bin/60a11.cgi とCGIのディレクトリの指定を変更いたしました。 ②chown -R apache:apache /var/www/cgi-bin/60a11.cgi として60a11.cgiの実行権限をapacheに変更しました。 ③chmod 755 /var/www/cgi-bin/60a11.cgi として適宜にパーミッションを変更いたしました。 そこでFirefoxで127.0.0.1/を指定して、index.htmlのファイルを実行し、そこにある.gifボタンを押して、127.0.0.1/cgi-bin/60a11.cgiを実行しようとしてもエラーファイルが出て実行できないといった状況です。原因究明には皆様のお力が必要です、なにとぞ宜しくお願い致します。なおここで扱っているcgiはWINDOWS環境で作っていたものです。
解決策よろしくお願い致します。
