הוסטס - פורום אחסון האתרים הגדול בישראל

הוסטס - פורום אחסון האתרים הגדול בישראל (https://hosts.co.il/forums/index.php)
-   תחזוק שרתים ושירותי רשת נוספים (https://hosts.co.il/forums/forumdisplay.php?f=29)
-   -   בעיה בהתקנת ioncube בVPS ועריכת PHP.INI (https://hosts.co.il/forums/showthread.php?t=104263)

or336622145 18-06-13 08:25

בעיה בהתקנת ioncube בVPS ועריכת PHP.INI
 
שלום יש לי פורום שמצריך את התוסף ioncube ניסיתי להתקין על השרת ואני נתקל בתקלה הבאה:
Please note that the following problems currently exist with the ionCube Loader installation:
The following ini file could not be found by the Wizard: /usr/local/lib/php.ini
This may be due to server restrictions in place.
The necessary zend_extension line could not be found in the configuration.
בקובץ PHP.INI לא נמצא zend_extension אלא :
extension_dir = "/usr/local/ioncube/ioncube_loader_lin_5.2.so"
ניסיתי עם "" ובלי ועדיין לא עובד.
איך אני מצליח לפתור את הבעיה?

eranwo 18-06-13 08:54

לפני הכל אתה צריך לבדוק כמובן לפני הכל מהי גירסאת הPHP שמותקנת בשרת
PHP -V
זאת השורה שאתה צריך להכניס ל PHP.INI (ללא " ")
zend_extension = /usr/lib/ioncube/ioncube_loader_lin_5.2.so
בנוסף בדוק שהנתיב לקובץ מדויק /usr/lib/ioncube/ioncube_loader_lin_5.2.so

or336622145 18-06-13 09:01

ציטוט:

נכתב במקור על ידי eranwo (פרסם 878338)
לפני הכל אתה צריך לבדוק כמובן לפני הכל מהי גירסאת הPHP שמותקנת בשרת
PHP -V
זאת השורה שאתה צריך להכניס ל PHP.INI (ללא " ")
zend_extension = /usr/lib/ioncube/ioncube_loader_lin_5.2.so
בנוסף בדוק שהנתיב לקובץ מדויק /usr/lib/ioncube/ioncube_loader_lin_5.2.so

הגרסת PHP שלי היא :
Php 5.2.17
והנתיב הנכון לקובץ שלי הוא:
/usr/local/ioncube/ioncube_loader_lin_5.2.so

eranwo 18-06-13 09:10

מה אתה מקבל כשאתה רושם PHP -V ?

or336622145 18-06-13 09:12

הנה הפלט:

[root@direwolf ~]# php -v
Failed loading /usr/local/ioncube/ioncube_loader_lin_5.2.so: /usr/local/ioncube/ioncube_loader_lin_5.2.so: wrong ELF class: ELFCLASS64
PHP 5.2.17 (cli) (built: Jun 14 2013 16:38:02)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies

eranwo 18-06-13 09:15

שים לב שהקובץ צריך להתאים לסוג השרת
x86-64 או x86

or336622145 18-06-13 11:03

אחרי שהעלתי מחדש את הקבצים של 86 כדי לוודא שזה אכן הקבצים הנכונים והרצתי את הקוד v- בSSH קיבלתי את הפלט הבא:
[root@direwolf ~]# php -v
PHP 5.2.17 (cli) (built: Jun 14 2013 16:38:02)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
with the ionCube PHP Loader v4.4.1, Copyright (c) 2002-2013, by ionCube Ltd.

אבל עדיין התוסף לא הותקן כמו שצריך והפורום עדיין עם השגיאה הבאה:
Site error: the file /home/fercho/domains/fercho.wcreatev.info/public_html/forum/hooks/wolf_class_recentPosts_cafe910cd24b30eda46389c4504 b0190.php requires the ionCube PHP Loader ioncube_loader_lin_5.2.so to be installed by the website operator. If you are the website operator please use the ionCube Loader Wizard to assist with installation.


עריכה:

אחרי העלאת הקבצים מחדש וביצוע ריסט ההתקנה בוצעה בהצלחה תודה רבה


כל הזמנים הם GMT +2. הזמן כעת הוא 06:50.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ