Jump to content
php.lv forumi

Apache un PNG


Recommended Posts

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

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

[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

[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

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

×
×
  • Create New...