can't run cgi scripts
stuart rowland <[email protected]> Sun, 4 Aug 2024 23:03:25 +0000 (UTC)
| Newsgroups | gmane.comp.mozilla.devel.webtools |
|---|---|
| Message-ID | <[email protected]> |
--===============3409614558173422124== Content-Type: multipart/alternative; boundary="----=_Part_3740365_1662265273.1722812605324" ------=_Part_3740365_1662265273.1722812605324 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I am running Fedora 40 with SElinux. My bugzilla is located at /usr/share/b= ugzilla.=20 ./checksetup.pl runs fine=C2=A0 only warning that some optional perl module= s are not installed.httpd.conf consains the following: <Directory /usr/share/bugzilla> =C2=A0 AddHandler cgi-script .cgi =C2=A0 Options +ExecCGI +FollowSymLinks =C2=A0 DirectoryIndex index.cgi index.html =C2=A0 AllowOverride All </Directory> ScriptAlias /bugzilla /usr/share/bugzilla testserver fails: ./testserver.pl=C2=A0 http://localhost/bugzilla TEST-OK Webserver is running under group id in $webservergroup. TEST-FAILED Fetch of images/padlock.png failed Your web server could not fetch http://localhost/bugzilla/images/padlock.pn= g. Check your web server configuration and try again. The bugzillla main page contains only text. The error_log contains: [Sun Aug 04 08:38:55.104714 2024] [lbmethod_heartbeat:notice] [pid 18212:ti= d 18212] AH02282: No slotmem from mod_heartmonitor [Sun Aug 04 08:38:55.106176 2024] [systemd:notice] [pid 18212:tid 18212] SE= Linux policy enabled; httpd running as context system_u:system_r:httpd_t:s0 [Sun Aug 04 08:38:55.106404 2024] [mpm_event:notice] [pid 18212:tid 18212] = AH00489: Apache/2.4.62 (Fedora Linux) configured -- resuming normal operati= ons [Sun Aug 04 08:38:55.106426 2024] [core:notice] [pid 18212:tid 18212] AH000= 94: Command line: '/usr/sbin/httpd -D FOREGROUND' [Sun Aug 04 08:38:55.107527 2024] [:warn] [pid 19251:tid 19251] ./mod_dnssd= .c: No services found to register [Sun Aug 04 08:38:56.109269 2024] [mpm_event:warn] [pid 18212:tid 18212] AH= 00488: long lost child came home! (pid 19251) [Sun Aug 04 15:37:37.425352 2024] [cgid:error] [pid 19268:tid 19389] [clien= t ::1:60976] AH01215: stderr from /usr/share/bugzilla/images/padlock.png: A= H01241: error spawning CGI child: exec of '/usr/share/bugzilla/images/padlo= ck.png' failed (Permission denied) [Sun Aug 04 15:37:37.426217 2024] [cgid:error] [pid 19268:tid 19389] [clien= t ::1:60976] End of script output before headers: padlock.png [Sun Aug 04 15:39:42.678075 2024] [cgid:error] [pid 19268:tid 19398] [clien= t 127.0.0.1:52256] AH01215: stderr from /usr/share/bugzilla/skins/standard/= global.css: AH01241: error spawning CGI child: exec of '/usr/share/bugzilla= /skins/standard/global.css' failed (Permission denied), referer: http://loc= alhost/bugzilla/ [Sun Aug 04 15:39:42.678900 2024] [cgid:error] [pid 19268:tid 19398] [clien= t 127.0.0.1:52256] End of script output before headers: global.css, referer= : http://localhost/bugzilla/ [Sun Aug 04 15:39:42.680949 2024] [cgid:error] [pid 19268:tid 19402] [clien= t 127.0.0.1:52274] AH01215: stderr from /usr/share/bugzilla/js/yui/yahoo-do= m-event/yahoo-dom-event.js: AH01241: error spawning CGI child: exec of '/us= r/share/bugzilla/js/yui/yahoo-dom-event/yahoo-dom-event.js' failed (Permiss= ion denied), referer: http://localhost/bugzilla/ [Sun Aug 04 15:39:42.681017 2024] [cgid:error] [pid 19268:tid 19402] [clien= t 127.0.0.1:52274] End of script output before headers: yahoo-dom-event.js,= referer: http://localhost/bugzilla/ [Sun Aug 04 15:39:42.681033 2024] [cgid:error] [pid 19254:tid 19353] [clien= t 127.0.0.1:52262] AH01215: stderr from /usr/share/bugzilla/skins/contrib/D= usk/global.css: AH01241: error spawning CGI child: exec of '/usr/share/bugz= illa/skins/contrib/Dusk/global.css' failed (Permission denied), referer: ht= tp://localhost/bugzilla/ [Sun Aug 04 15:39:42.681175 2024] [cgid:error] [pid 19254:tid 19353] [clien= t 127.0.0.1:52262] End of script output before headers: global.css, referer= : http://localhost/bugzilla/ [Sun Aug 04 15:39:42.682289 2024] [cgid:error] [pid 19254:tid 19357] [clien= t 127.0.0.1:52280] AH01215: stderr from /usr/share/bugzilla/js/yui/cookie/c= ookie-min.js: AH01241: error spawning CGI child: exec of '/usr/share/bugzil= la/js/yui/cookie/cookie-min.js' failed (Permission denied), referer: http:/= /localhost/bugzilla/ [Sun Aug 04 15:39:42.682631 2024] [cgid:error] [pid 19254:tid 19357] [clien= t 127.0.0.1:52280] End of script output before headers: cookie-min.js, refe= rer: http://localhost/bugzilla/ [Sun Aug 04 15:39:42.683288 2024] [cgid:error] [pid 19253:tid 19316] [clien= t 127.0.0.1:52292] AH01215: stderr from /usr/share/bugzilla/js/global.js: A= H01241: error spawning CGI child: exec of '/usr/share/bugzilla/js/global.js= ' failed (Permission denied), referer: http://localhost/bugzilla/ [Sun Aug 04 15:39:42.683703 2024] [cgid:error] [pid 19253:tid 19316] [clien= t 127.0.0.1:52292] End of script output before headers: global.js, referer:= http://localhost/bugzilla/ I have been workin on this for several day now. I do not understand why thi= s is failing. Google found several cases reporting this problem, but none o= f the "solutions" (like removing the .htaccess files) worked. Any assistanc= e is greatly appreciated. Thank you. Stuart Rowland ------=_Part_3740365_1662265273.1722812605324 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <html><head></head><body><div class=3D"yahoo-style-wrap" style=3D"font-fami= ly:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div dir= =3D"ltr" data-setdir=3D"false">I am running Fedora 40 with SElinux. My bugz= illa is located at <span>/usr/share/bugzilla. <br></span></div><div dir=3D"= ltr" data-setdir=3D"false"><span><span>./checksetup.pl runs fine only= warning that some optional perl modules are not installed.</span></span></= div><div dir=3D"ltr" data-setdir=3D"false"><span><span>httpd.conf consains = the following:</span></span></div><div dir=3D"ltr" data-setdir=3D"false"><s= pan><span><br></span></span></div><div dir=3D"ltr" data-setdir=3D"false"><s= pan><div><Directory /usr/share/bugzilla><br> AddHandler cgi-scr= ipt .cgi<br> Options +ExecCGI +FollowSymLinks<br> DirectoryInde= x index.cgi index.html<br> AllowOverride All<br></Directory><br= >ScriptAlias /bugzilla /usr/share/bugzilla<br></div><div><br></div><div dir= =3D"ltr" data-setdir=3D"false">testserver fails:</div><div dir=3D"ltr" data= -setdir=3D"false"><br></div><div dir=3D"ltr" data-setdir=3D"false"><div>./t= estserver.pl http://localhost/bugzilla<br>TEST-OK Webserver is runnin= g under group id in $webservergroup.<br>TEST-FAILED Fetch of images/padlock= .png failed<br>Your web server could not fetch http://localhost/bugzilla/im= ages/padlock.png.<br>Check your web server configuration and try again.<br>= </div><div><br></div>The bugzillla main page contains only text.</div><div = dir=3D"ltr" data-setdir=3D"false"><br></div><div dir=3D"ltr" data-setdir=3D= "false">The error_log contains:</div><div dir=3D"ltr" data-setdir=3D"false"= ><br></div><div dir=3D"ltr" data-setdir=3D"false"><div>[Sun Aug 04 08:38:55= .104714 2024] [lbmethod_heartbeat:notice] [pid 18212:tid 18212] AH02282: No= slotmem from mod_heartmonitor<br>[Sun Aug 04 08:38:55.106176 2024] [system= d:notice] [pid 18212:tid 18212] SELinux policy enabled; httpd running as co= ntext system_u:system_r:httpd_t:s0<br>[Sun Aug 04 08:38:55.106404 2024] [mp= m_event:notice] [pid 18212:tid 18212] AH00489: Apache/2.4.62 (Fedora Linux)= configured -- resuming normal operations<br>[Sun Aug 04 08:38:55.106426 20= 24] [core:notice] [pid 18212:tid 18212] AH00094: Command line: '/usr/sbin/h= ttpd -D FOREGROUND'<br>[Sun Aug 04 08:38:55.107527 2024] [:warn] [pid 19251= :tid 19251] ./mod_dnssd.c: No services found to register<br>[Sun Aug 04 08:= 38:56.109269 2024] [mpm_event:warn] [pid 18212:tid 18212] AH00488: long los= t child came home! (pid 19251)<br>[Sun Aug 04 15:37:37.425352 2024] [cgid:e= rror] [pid 19268:tid 19389] [client ::1:60976] AH01215: stderr from /usr/sh= are/bugzilla/images/padlock.png: AH01241: error spawning CGI child: exec of= '/usr/share/bugzilla/images/padlock.png' failed (Permission denied)<br>[Su= n Aug 04 15:37:37.426217 2024] [cgid:error] [pid 19268:tid 19389] [client := :1:60976] End of script output before headers: padlock.png<br>[Sun Aug 04 1= 5:39:42.678075 2024] [cgid:error] [pid 19268:tid 19398] [client 127.0.0.1:5= 2256] AH01215: stderr from /usr/share/bugzilla/skins/standard/global.css: A= H01241: error spawning CGI child: exec of '/usr/share/bugzilla/skins/standa= rd/global.css' failed (Permission denied), referer: http://localhost/bugzil= la/<br>[Sun Aug 04 15:39:42.678900 2024] [cgid:error] [pid 19268:tid 19398]= [client 127.0.0.1:52256] End of script output before headers: global.css, = referer: http://localhost/bugzilla/<br>[Sun Aug 04 15:39:42.680949 2024] [c= gid:error] [pid 19268:tid 19402] [client 127.0.0.1:52274] AH01215: stderr f= rom /usr/share/bugzilla/js/yui/yahoo-dom-event/yahoo-dom-event.js: AH01241:= error spawning CGI child: exec of '/usr/share/bugzilla/js/yui/yahoo-dom-ev= ent/yahoo-dom-event.js' failed (Permission denied), referer: http://localho= st/bugzilla/<br>[Sun Aug 04 15:39:42.681017 2024] [cgid:error] [pid 19268:t= id 19402] [client 127.0.0.1:52274] End of script output before headers: yah= oo-dom-event.js, referer: http://localhost/bugzilla/<br>[Sun Aug 04 15:39:4= 2.681033 2024] [cgid:error] [pid 19254:tid 19353] [client 127.0.0.1:52262] = AH01215: stderr from /usr/share/bugzilla/skins/contrib/Dusk/global.css: AH0= 1241: error spawning CGI child: exec of '/usr/share/bugzilla/skins/contrib/= Dusk/global.css' failed (Permission denied), referer: http://localhost/bugz= illa/<br>[Sun Aug 04 15:39:42.681175 2024] [cgid:error] [pid 19254:tid 1935= 3] [client 127.0.0.1:52262] End of script output before headers: global.css= , referer: http://localhost/bugzilla/<br>[Sun Aug 04 15:39:42.682289 2024] = [cgid:error] [pid 19254:tid 19357] [client 127.0.0.1:52280] AH01215: stderr= from /usr/share/bugzilla/js/yui/cookie/cookie-min.js: AH01241: error spawn= ing CGI child: exec of '/usr/share/bugzilla/js/yui/cookie/cookie-min.js' fa= iled (Permission denied), referer: http://localhost/bugzilla/<br>[Sun Aug 0= 4 15:39:42.682631 2024] [cgid:error] [pid 19254:tid 19357] [client 127.0.0.= 1:52280] End of script output before headers: cookie-min.js, referer: http:= //localhost/bugzilla/<br>[Sun Aug 04 15:39:42.683288 2024] [cgid:error] [pi= d 19253:tid 19316] [client 127.0.0.1:52292] AH01215: stderr from /usr/share= /bugzilla/js/global.js: AH01241: error spawning CGI child: exec of '/usr/sh= are/bugzilla/js/global.js' failed (Permission denied), referer: http://loca= lhost/bugzilla/<br>[Sun Aug 04 15:39:42.683703 2024] [cgid:error] [pid 1925= 3:tid 19316] [client 127.0.0.1:52292] End of script output before headers: = global.js, referer: http://localhost/bugzilla/<br><br></div>I have been wor= kin on this for several day now. I do not understand why this is failing. G= oogle found several cases reporting this problem, but none of the "solution= s" (like removing the .htaccess files) worked. Any assistance is greatly ap= preciated. Thank you.</div><div dir=3D"ltr" data-setdir=3D"false"><br></div= ><div dir=3D"ltr" data-setdir=3D"false">Stuart Rowland<br></div><br></span>= </div><div dir=3D"ltr" data-setdir=3D"false"><span><br></span></div></div><= /body></html> ------=_Part_3740365_1662265273.1722812605324-- --===============3409614558173422124== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ support-list mailing list [email protected] https://lists.bugzilla.org/listinfo/support-list --===============3409614558173422124==--