armands Posted April 19, 2007 Report Share Posted April 19, 2007 Sveiki, Problēma sekojoša, ka Apache man PNG failus nez kāpēc cenšas izpildīt kā CGI scriptus, to saprotu pēc error loga. Esmu pārlasījies Web apr Apache un kā konfigurēt httpd.conf krustu šķērsu, bet neatrodu vainu, kur ko novērst! Izmēģināju ar IIS un viss man strādā, nezkāpēc tas saprot, ka PNG ir bilde nevis CGI skripts. Cik noprotu, tad kaut kur tajā pat konfig failā jānorāda, ka tāds tips jāuztver kā image un attiecīgi jāatver neves jācenšas izpildīt skripts. Tikai kur un kā. paldies jau iepriekš, Armands Link to comment Share on other sites More sharing options...
aldis Posted April 19, 2007 Report Share Posted April 19, 2007 Lai vai kaa... Kaads OS? Man nekas taads nav gadijies! Pameegini taa pat uzstaadiit tikai uz cita kompja! Link to comment Share on other sites More sharing options...
andrisp Posted April 19, 2007 Report Share Posted April 19, 2007 Man kaut kā liekas, ka defaultaijai konfigurācijai tādiem brīnumiem nevajadzētu notikt. Nobakupo konfigurācijas failu un pamēģini uzlikt defaulto. Link to comment Share on other sites More sharing options...
aldis Posted April 19, 2007 Report Share Posted April 19, 2007 jaa paguugleejot man arii neko neparaadiija par taadiem briinumiem! :D tik tiesham parstadi labak configuracijas failu, ja neizdodas, ta visu apache! Link to comment Share on other sites More sharing options...
marrtins Posted April 19, 2007 Report Share Posted April 19, 2007 Problēma sekojoša, ka Apache man PNG failus nez kāpēc cenšas izpildīt kā CGI scriptus, to saprotu pēc error loga. kā izskatās error.log rindiņa? Link to comment Share on other sites More sharing options...
armands Posted April 19, 2007 Author Report Share Posted April 19, 2007 OS ir Win XP, uzliku atpakaļ standarta konfig failu. Te ir vairākiem tāda probēma, varbūt tikai uz Windows .. http://www.mail-archive.com/users@httpd.ap...g/msg18817.html un http://ez.no/community/forum/install_confi...jpg_png_problem pamēģināšu ar vecāku apache versiju, jo pareiz man ir 2.2.4 .. Link to comment Share on other sites More sharing options...
armands Posted April 19, 2007 Author Report Share Posted April 19, 2007 tads izskataas log fails: Thu Apr 19 18:36:22 2007] [error] [client 127.0.0.1] C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/dog.png is not executable; ensure interpreted scripts have "#!" first line [Thu Apr 19 18:36:22 2007] [error] [client 127.0.0.1] (9)Bad file descriptor: don't know how to spawn child process: C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/dog.png [Thu Apr 19 18:38:17 2007] [error] [client 127.0.0.1] C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/Water.jpg is not executable; ensure interpreted scripts have "#!" first line [Thu Apr 19 18:38:17 2007] [error] [client 127.0.0.1] (9)Bad file descriptor: don't know how to spawn child process: C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/Water.jpg Link to comment Share on other sites More sharing options...
aldis Posted April 19, 2007 Report Share Posted April 19, 2007 [Thu Apr 19 18:38:17 2007] [error] [client 127.0.0.1] C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/Water.jpg is not executable; ensure interpreted scripts have "#!" first line [Thu Apr 19 18:38:17 2007] [error] [client 127.0.0.1] (9)Bad file descriptor: don't know how to spawn child process: C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/Water.jpg un kaapee uz jpg taa vinjs arii daraas? Link to comment Share on other sites More sharing options...
marrtins Posted April 19, 2007 Report Share Posted April 19, 2007 [Thu Apr 19 18:38:17 2007] [error] [client 127.0.0.1] C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/Water.jpg is not executable; ensure interpreted scripts have "#!" first line[Thu Apr 19 18:38:17 2007] [error] [client 127.0.0.1] (9)Bad file descriptor: don't know how to spawn child process: C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/Water.jpg un kaapee uz jpg taa vinjs arii daraas? a kurā folderī Tev tas Water.jpg un *png stāv? tiešām cgi-bin folderī? :) šādu efektu izdevās panākt, iemočījot bildes cgi-bin folderī. pamēģini bilžu vietā ielikt kādu html failu un paskatīties vai efekts nav tāds pats Link to comment Share on other sites More sharing options...
aldis Posted April 19, 2007 Report Share Posted April 19, 2007 lai vai kaa.. nemochii iekshaa cgi-bin folderii.. ieprieksh postojot nepamaniiju mapes adresi, tik pamaniju ka jpg ir ta pati proba! paskaties ko esi configaa noradijis ka web atrashanas mapi, uzliec kadu savu, un taja arii liec ieksha gan bildes, gan pashu majas lapu! :) Link to comment Share on other sites More sharing options...
Recommended Posts