php±àдִÐÐlinux shellÃüÁîµÄ´úÂë
ʹÓÃPHPµÄexecº¯Êýµ÷ÓÃlinuxµÄshellÃüÁÈçdateÈ¥ÐÞ¸Äʱ¼ä»òshutdownȥʵÏֹػú/ÖØÆô£¬µ«ÊÇ·µ»ØÖµ¶¼ÊÇʧ°ÜµÄ¡£¾¹ý¶à´ÎÊÔÑ飬È϶¨ÊÇûÓÐȨÏÞµÄÎÊÌâ¡£
ËùÒÔ£¬Ð¡µÜÔÚ´ËÇë½Ì¸÷룬ÈçºÎ²ÅÄÜÉèÖÃȨÏÞ£¬µ÷ÓÃlinux shellÃüÁî¡£
лÁË£¡
°ï¶¥°Ñ£¡
òËÆLinuxÏÂPHPÓû§Ã»ÓÐÕâô¸ßµÄȨÏÞ¡£
¿ÉÒÔÉ趨µÄ£¬ºÃÏñÊÇÉèÖÃapache£¬µ«ÊÇûÕÒµ½×ÊÁÏ¡£Óиölinuxϵͳopenfiler£¨´æ´¢¹ÜÀíµÄϵͳ£©¾Í¿ÉÒÔ×öµ½¡£µ«Ã»´ÓËûµÄÔ´ÂëºÍϵͳÉèÖÃÉÏÕÒµ½Ê²Ã´ÖëË¿Âí¼£¡£
ÕâÒª¿´Äãµ÷ÓÃ.php³ÌÐòµÄÓû§µÄȨÏÞÁË£¬Èç¹ûÄãÊÇÔÚROOTµÄcrontabÖе÷Óõģ¬ÐÞ¸Äʱ¼äÓëÖØÆô¹Ø»ú¶¼Ã»ÎÊÌâ¡£
Èç¹ûÄãÊÇͨ¹ýapacheµ÷Óõģ¬È¨ÏÞĬÈÏÊDz»¹ýµÄ£¬Èç¹ûÄã·ÇÒªÕâô×ö£¬¿ÉÒÔÌáÉýapacheÓû§µÄȨÏÞ
¸ßÊÖ°¡£¬ºÇºÇ¡£
ÇëÎÊÈçºÎÌáÉýapacheȨÏÞÄØ¡£ÎÒÔÚhttpd.confÀïÃæÐÞ¸Ä
User root
Group root
µ«ÊÇÎÞ·¨ÖØÆôhttpdÁË£¬ËµÊǸøµÄȨÏÞÌ«¸ß¡£
ÇëÎÊÈçºÎÌáÉýapacheȨÏÞ£¿
ÕÒ±¾linux»ù±¾µÄÊéÀ´¿´Ò»Ï¾ÍOKÁË
ÎÞ·ÇÊÇÐÞ¸ÄÊôÖ÷,»òÕßÔö¼ÓȨÏÞ.
chownºÍchmodÕâÁ½¸öÃüÁî½áºÏÆðÀ´.
linuxȷʵ²»É󤡣ѧϰ
linux²»ÊìϤ
Äã¿ÉÒÔ°ÑapacheĬÈÏÓû§£¨ÎÒµÄÊÇdaemon£©¼ÓÈëROOTÓû§×é¡£
²»¹ýÕâÑù°²È«ÉÏ»áÓзçÏÕ
Ïà¹ØÎÊ´ð£º
ÈçÌ⣬ÇëÖªµÀµÄ¸ßÊÖÖ¸µãһϣ¬THANKS
PHPº¯Êý¶¼ÊÇÓÃCʵÏÖµÄ~
·´ÆäµÀ¶øÐÐÖ®~
HOHO£¬¹Ø¼üÊÇ£¬×ÔÒÑÔÙȥʵÏÖÕâ¸ö¹¦ÄÜÀÛ°¡£¬PHPÓÐÏֳɵľÍÖ±½Óµ÷ÓúÃÁË£¬
¶¥Æð£¬ÓиßÊÖµã½âһϣ¬»òÕßÊÇÎÒÖ±½Ó½«PHP Ô´ÂëÖÐµÄ .c ......
<?php
if($_SERVER['HTTP_REFERER']!=''){
@header("Content-type:image/jpeg");
echo file_get_contents("xlight.jpg");
}
else{
@header("location:ht ......
ÎÒûÓа²×°²Ù×÷ϵͳµÄ¾Ñ飬¼´Ê¹ÊÇWINDOWS¡£ÏÖÔÚÏëÔÚLINUX²Ù×÷ϵͳ´ó»·¾³ÏÂѧCÓïÑÔ£¬ÓÖÒªÂò±¾±¾£¬ÇëÎÊÈç¹û²Ù×÷ϵͳ°²×°²»µ±£¬»á²»»á¶ÔµçÄÔÔì³Éʲô´óµÄÆÆ»µ£¿ÓÐûÓбØÒªÏÈÂòÒ»¸ö¶þÊÖµçÄÔÁ·Ò»ÏÂLINUXµÄ ......
Linux²»Õý³£¹Ø»úµ¼ÖÂϵͳ»µ£¬ÇëÎÊÔõô¼ì²éºÍÐÞ¸´ÏµÍ³£¿
ÔÚ¸ÕÆô¶¯µÄʱºò»áÓÐÌáʾµÄ¡£
ÐÞ¸´¿ÉÒÔ¿¿livecd
»òÕß°Ñ»ù±¾ÏµÍ³²¿·ÖÖØа²×°¼´¿É
ÊDz»ÊÇϵͳ±à³ÌÁËread-onlyµÄÀ²£¿ÎÞ·¨ÍùϵͳдÈëÊý¾Ý°¡£¿
ÓеÄÇé ......