Не обязательно новостной, пойдет и товарный и развлекательный (только без сисек и игр)..
Посоветуйте плиз мобильную ПП где разрешен "чёрный трафик".
С кубом всё порешалось, всем спасибо!
Правлю который в etc/php.ini
Когда перенес файлы в /usr/lib/php/modules/
Снова стал ругаться
Цитата:
[root@vps modules]# php -v
Failed loading /usr/lib/php/modules/ioncube_loader_lin_5.6.so: /usr/lib/php/modules/ioncube_loader_lin_5.6.so: wrong ELF class: ELFCLASS64
PHP 5.6.30 (cli) (built: Jan 19 2017 23:06:47)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
[root@vps modules]#
Про ионкуб ни слова...
Ошибки такие же:
Вот что по этому поводу у разработчика:
Но у меня в etc нет php5((
<?php //0046bif(!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=realpath(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_exists('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);?>HR+cPztBoaaSBCzkpN9VQlx61diBTKY3K9Mo6QkiHctnYMVjt+wt5LKPQiXrdL2L4kPfUYzmMESClcAxEsG3poSelwD+kdd08ZYEwxLBpp7ygESUJ3bafOEpLpdkuPTvrz8X69Zu7qlvz818LBJQe/TzmxcC8cJvxWBWfyVldqFIfwAdP7FElroV7giVwaoFWplm+3Ut5FutMAWRd7f95Gb9ghPgLSMS7crq4Qx1E3bK1BTXgDrKZ0RfRbd2gSLZlA97dGwTbM8ccs9bbie3LGVEtZlGR/J9Bz142go08cr/Taymxfs4+ITF7iqEk8gWdywHV1tYKJvc26w4bpIW51IcXdcd0QDIdhx4PfTVmMxyVVmqPuVv8L23N6EIsTAuCNc5o8LjRzW2Yp4ctMJVPKkjWmg4HKs95xZABDbJ
В том то и дело, что ваш скрипт выдает:
Parse error: syntax error, unexpected '*' in /var/www/site/data/www/site.ru/1.php on line 2
И в phpinfo(); никакого упоминания ионкуба нет(
Так скрипт под кубом..
И 3я строчка это:
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=realpath(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_exists('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);
А инсталл говорит о том, что куб не установлен:
Файлы положил:
В пхп.ини путь прописал:
zend_extension=/usr/lib/php/modules/ioncube_loader_lin_5.6.so
Рестартнул.
Ошибку эту выдает скрипт - ради которого всё затевалось:
Ини-шки убрал:
Ссылку убрал:
В пхп.ини прописал (пока без зенда):
Результат:
[root@vps modules]# php -v Failed loading /usr/lib/php/modules/ioncube_loader_lin_5.6.so: /usr/lib/php/modules/ioncube_loader_lin_5.6.so: cannot open shared object file: No such file or directory PHP 5.6.30 (cli) (built: Jan 19 2017 23:06:47) Copyright (c) 1997-2016 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies [root@vps modules]#
Если прописываю путь, где лежат файлы куба:
zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.6.so
Ошибка исчезает:
[root@vps etc]# php -v PHP 5.6.30 (cli) (built: Jan 19 2017 23:06:47) Copyright (c) 1997-2016 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v6.0.9, Copyright (c) 2002-2016, by ionCube Ltd. [root@vps etc]#
Но и куб не работает(
Warning: file_exists(): open_basedir restriction in effect. File(/var/ioncube/ioncube_loader_lin_5.6.so) is not within the allowed path(s): (/var/www/site/data:.) in /var/www/site/data/www/site.ru/index.php on line 3 Site error: the file /var/www/site/data/www/site.ru/index.php requires the ionCube PHP Loader ioncube_loader_lin_5.6.so to be installed by the website operator. If you are the website operator please use the ionCube Loader Wizard to assist with installation.
service httpd restart делал