PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : عمل نکردن کرون جاب cronjob لطفا راهنمایی کنید



kingserver72
December 9th, 2012, 16:13
سلام دوستان
مشکلی دارم روی سرورم و اونم اینه که cron job کار نمی کنه و توی whmcs فاکتور خودکار ساخته نمی شه و تیکت های غیرفعال رو نمی بنده و کلا کار نمی کنه
و این ارور رو سرور برام ایمیل می کنه

<br />
<b>Warning</b>: realpath() [<a href='function.realpath'>function.realpath</a>]: SAFE MODE Restriction in effect. The script whose uid is 522 is not allowed to access /usr/lib/php/extensions/no-debug-non-zts-20060613 owned by uid 0 in <b>/home/USER/public_html/my/admin/cron.php</b> on line <b>34</b><br />
Site error: the file <b>/home/USER/public_html/my/admin/cron.php</b> requires the ionCube PHP Loader ioncube_loader_lin_5.2.so (http://ioncube_loader_lin_5.2.so) to be installed by the website operator. If you are the website operator please use the <a href="Loader Download - PHP Encoder, protection, installer and performance tools from ionCube (http://www.ioncube.com/lw/)">ionCube Loader Wizard</a> to assist with installation

چطوری این مشکل رو حل کنم؟
کرون رو برای WHMCS تنظیم کردم که کار نمی کنه

rezaonline.net
December 9th, 2012, 17:09
چون حالت safe_mode سرور فعالیه لذا تابع realpath در خط 34 فایل public_html/my/admin/cron.php کار نمیکنه .
دو کار میتونی بکنی ، یا safe_mode رو غیرفعال کنی ، یا php رو به 5.3 ارتقا بدی یا اون فایلو بذار تا آدرسدهیش رو تغییر بدیم

kingserver72
December 9th, 2012, 17:14
آدرس دهی چه فایلی رو باید تغیر بدم؟
نمیشه فقط safe mod هاست یا بخشی که whmcs روش نسبه غیر فعال بشه؟ اینجوری مشکل حل نمیشه؟

rezaonline.net
December 9th, 2012, 17:25
safe_mode رو باید بگید مدیر هاستتون فعال کنه .
realpath آدرس دهی منطقی رو برمیگردونه .
بطور مثال شما بدید

echo realpath(dirname(__FILE__) . '../../../');
میتونید اسم سه دایرکتوری قبل رو بدست بیارید .
جهت انجام ندادن کارهای خرابکارانه توسط safe_mode بسته شده .

شما بگید safe_mode رو خاموش کنن اگه نکردن اون خط رو بذار اینجا تا تغییرش بدیم .

kingserver72
December 9th, 2012, 18:18
safe_mode رو باید بگید مدیر هاستتون فعال کنه .
realpath آدرس دهی منطقی رو برمیگردونه .
بطور مثال شما بدید

echo realpath(dirname(__FILE__) . '../../../');
میتونید اسم سه دایرکتوری قبل رو بدست بیارید .
جهت انجام ندادن کارهای خرابکارانه توسط safe_mode بسته شده .

شما بگید safe_mode رو خاموش کنن اگه نکردن اون خط رو بذار اینجا تا تغییرش بدیم .


ممنون میشم کد رو برام درست کنید
ارور از این خط هستش


if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3) );$__ln='ioncube_loader_'.$__oc.'_'.substr(phpvers ion(),0,3).(($__oc=='win')?'.dll':'.so');if(functi on_exists('dl')){@dl($__ln);}if(function_exists('_ il_exec')){return _il_exec();}$__ln='/ioncube/'.$__ln;$__oid=$__id=realpath(ini_get('extension_d ir'));$__here=dirname(__FILE__);if(strlen($__id)>1&&$__id[1]==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists ($__oid.$__lp)){$__ln=$__lp;break;}}}if(function_e xists('dl')){@dl($__ln);}}else{die('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec')){return _il_exec();}echo('Site error: the file <b>'.__FILE__.'</b> requires the ionCube PHP Loader '.basename($__ln).' to be installed by the website operator. If you are the website operator please use the <a href="http://www.ioncube.com/lw/">ionCube Loader Wizard</a> to assist with installation.');exit(199);

rezaonline.net
December 9th, 2012, 18:27
امیدوارم درست بشه .
جایگزین کنید

if(!extension_loaded('ionCube Loader'))
{$__oc=strtolower(substr(php_uname(),0,3));$__ln=' ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3 ).(($__oc=='win')?'.dll':'.so');if(function_exists ('dl')){@dl($__ln);}if(function_exists('_il_exec') ){return _il_exec();}$__ln='/ioncube/'.$__ln;$__oid=$__id=ini_get('extension_dir').'/';$__here=dirname(__FILE__);if(strlen($__id)>1&&$__id[1]==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists ($__oid.$__lp)){$__ln=$__lp;break;}}}if(function_e xists('dl')){@dl($__ln);}
}
else
{
die('The file '.__FILE__." is corrupted.\n");
}
if(function_exists('_il_exec'))
{return _il_exec();}
echo('Site error: the file <b>'.__FILE__.'</b> requires the ionCube PHP Loader '.basename($__ln).' to be installed by the website operator. If you are the website operator please use the <a href="http://www.ioncube.com/lw/">ionCube Loader Wizard</a> to assist with installation.');
exit(199);

kingserver72
December 9th, 2012, 18:46
ممنون تست می کنم ببینم جواب میده یا نه

kingserver72
December 10th, 2012, 11:43
متاسفانه کار نکرد و هنوز ایمیل ارور ارسال میشه و کرون جاب کار نمی کنه
دوستان لطفا راهنمایی کنید

rezaonline.net
December 10th, 2012, 11:47
دیگه باید safe_mode رو فعال کنی .