Ô¶³ÌlinuxÖ÷»úÉÏ,php ÎÞ·¨´´½¨Ð´ÈëÎļþ
ÓôÃÆÀ²£¬Õû¸öÎļþ¼ÐµÄÊôÐÔÎÒÒ²ÉèÖóÉ777ÁË,¾ÍÊDz»ÐС£
ÔÚÁíÍâһ̨linux·þÎñÆ÷ÉϽøÐÐͬÑùµÄ²Ù×÷£¬È´¿ÉÒÔÖ´ÐС£ ±ÈÈç ÔÚÏß½âѹ£¬¶¼³É¹¦ÁË¡£
µ«ÊÇÔÚÕą̂»úÆ÷ÉÏ£¬ËÀ»î¶¼²»ÐУ¬×ÜÊÇ permission denied...ÔÎÄÅ
¾ÍÄüܸöwordpressÀ´½²,°´Ëµ°²×°³ÌÐò»á×Ô¶¯´´½¨ wp-config.php Îļþ£¬¿ªÊ¼µ½ÁËÕâ²½¾Í±¨´í..
Assembly code:
Sorry, I can't write to the directory. You'll have to either change the permissions on your WordPress directory or create your wp-config.php manually.
´ó¼ÒÖªµÀÕâÊÇʲôÔÒòÂð??
PS:¿ÉÒÔftp »òÕß shell µÇ¼¡£
shellÀïÃæ ´´½¨Îļþ¼Ð ÊÇ¿ÉÒԵġ£
ls -l
htdocs Óû§ÊÇ sharl Óû§×éÊÇ dummy
htdocsÏÂËùÓÐÎļþ Óû§ÊÇ sharl Óû§×éÊÇ users.
Ö»Óеȴý¸ßÊÖÀ´»Ø´ðÄãµÄÎÊÌâÁË
ÓôÃÆÄÅ£¬ÎÒÒ²²»ÖªµÀÊÇÄĸöµØ·½³ö´íÁË¡£¡£ÎҸоõÓ¦¸Ã¿ÉÒÔÁËѽ£¬¿É¾ÍÊDz»ÐС£
ÓÐÈËÓöµ½¹ýºÍÎÒÏàͬµÄÎÊÌâû£¿
Çó¾È£¡
ÈçºÎÐÞ¸Ä? ÎÒÒѾ²»ÖªµÀÐÞ¸ÄÄÄÁË..
ÎÒ³¢ÊÔ°Ñ htdocs Ï ËùÓÐÎļþµÄgroup¸Ä³Édummy,±¨ ÎÞȨÏÞ ´í¡£
²»¶®£¬²»¹ý£¬ºÙºÙ£¬£¬£¬Òâ˼Òâ˼Ŷ£¬£¬£¬£¬
php×öCGI, apache?
¶Ô.
centos ϵͳ.
¿´Á˹ٷ½µÄwiki, htdocsĿ¼ÊÇread-onlyµÄ£¬¸ÄȨÏÞÊǸIJ»ÁËÁË
ÎÒÓÃÈíÁ´½Ósymlink½â¾öÁËÕâ¸öÎÊÌâ.
½áÌù£¬É¢·ÖÀ²
Ïà¹ØÎÊ´ð£º
<?php
if($_SERVER['HTTP_REFERER']!=''){
@header("Content-type:image/jpeg");
echo file_get_contents("xlight.jpg");
}
else{
@header("location:ht ......
ÎÒûÓа²×°²Ù×÷ϵͳµÄ¾Ñ飬¼´Ê¹ÊÇWINDOWS¡£ÏÖÔÚÏëÔÚLINUX²Ù×÷ϵͳ´ó»·¾³ÏÂѧCÓïÑÔ£¬ÓÖÒªÂò±¾±¾£¬ÇëÎÊÈç¹û²Ù×÷ϵͳ°²×°²»µ±£¬»á²»»á¶ÔµçÄÔÔì³Éʲô´óµÄÆÆ»µ£¿ÓÐûÓбØÒªÏÈÂòÒ»¸ö¶þÊÖµçÄÔÁ·Ò»ÏÂLINUXµÄ ......
ʹÓÃStruts2ÉÏ´«Îļþ£¬ÔÚlinuxϱ¨´í
2009-09-29 14:56:20,801 [org.apache.struts2.interceptor.FileUploadInterceptor]-[ERROR] Processing of multipart/form-data request failed. c:/temp/upload__1dcd07ee_12 ......
Õ¾µãÏÂÓÐ×ÓÎļþ¼Ð script Îļþ¼ÐÏÂÓÐjsÎļþindex.js
¸ùĿ¼ÏÂÓÐÎļþindex.php
ÏëȨÏÞÉèÖóÉÖ±½Óͨ¹ýURL:http://www.abc.com/script/index.jsÎÞ·¨·ÃÎÊ,ÐèҪȨÏÞ
µ«ÊÇͨ¹ýindex.phpµ ......