[PHP-users 13875] cgi$BHG(Bphp $B$NJQ?t$r(Bmod_php $B$+$i;H$$$?$$(B
GO
php-users@php.gr.jp
Tue, 11 Mar 2003 12:23:33 +0900
$B2?EY$+<ALd$5$;$F$$$?$@$$$F$$$k0f>e$H$b$&$7$^$9!#(B
MySQL$B$K@\B3$9$k$?$a$N%f!<%6$d%Q%9%o!<%I$rB>$N(BUnix$B%f!<%6$+$i(B
$B8+$($J$/$9$k$?$a$K(BSuEXEC$B4D6-$N(Bcgi$BHG(Bphp$B$r;HMQ$7$F$=$N%U%!%$%k$K(B
$B%Q%9%o!<%I$rJQ?t$H$7$F=q$-9~$s$G$*$$$F$=$l$r%b%8%e!<%kHG(BPHP$B$+$iFI$_9~$_(B
$B$?$$$N$G$9$,!"!V(BPermission denied$B!W$H$J$C$F$&$^$/F0$$$F$/$l$^$;$s!#(B
$B$3$&$J$k$N$OEvA3$N7k2L$+$b$7$l$^$;$s$,!"$I$&$K$+$7$F%Q%9%o!<%I$r1#$7$F(B
$B0BA4$K(BphpMyAdmin$B$J$I$N%D!<%k$r;HMQ$7$?$$$N$G$9$,!"$I$J$?$+2r7hJ}K!(B
$B$4B8$8$NJ}$$$i$C$7$c$$$^$9$G$7$g$&$+!)(B
$B0J2<$N$h$&$K%F%9%H$7$F$_$^$7$?!#(B
/home/test/public_html$B!!Fb$K%U%!%$%k$rCV$-$^$7$?!#(B
SuEXEC$B$NM-8z%G%#%l%/%H%j$O(Bpublic_html$B$G$9!#(B
pass.cgi ($B%f!<%6(Btest,$B%0%k!<%W(Btest $B%Q!<%_%C%7%g%s(B700)
------------------
#!/usr/local/bin/php
<?
$pass = "test";
echo $pass;
?>
------------------
test.php ($B%f!<%6(Btest,$B%0%k!<%W(Btest $B%Q!<%_%C%7%g%s(B644)
------------------
<?php
include "pass.cgi";
?>
------------------
pass.cgi$B$N%Q!<%_%C%7%g%s$r(B755$B$K$9$k$HIaDL$K(Binclude$B=PMh$k$N$G$9$,!"(B
$B$=$l$G$O!"0UL#$,$J$$$b$N$G!#(B
$B%f!<%6(Btest,$B%0%k!<%W(Bwww,$B%Q!<%_%C%7%g%s(B701$B$K$9$k$H$$$&<j$b$"$k$N$G$9$,!"(B
$B40A4$K$+$/$;$J$$$h$&$G$9$N$G!&!&!&(B
$B<1<T$NJ}$O$3$&$$$C$?LdBj$I$&2r7h$5$l$F$$$k$N$G$7$g$&$+!)(B
$B4D6-(B
FreeBSD4.7
apache-2.0.44(SuEXEC)
mod_php4-4.3.1
CGI$B$N3HD%;R$O(Bcgi pl$B$G$9!#(B
$B0f>e!!Bg8g(B
go16@mac.com