简体   繁体   English

是否要安装ionCube PHP Loader ioncube_loader_win_5.3.dll?

[英]Requirement for ionCube PHP Loader ioncube_loader_win_5.3.dll to be installed?

I'm using AMPPS on a Windows machine, and when I try and navigate to http://localhost to make some modifications to my localhost server, I recieve the following error: 我在Windows机器上使用AMPPS,当我尝试导航到http://localhost以对我的localhost服务器进行一些修改时,我收到以下错误:

Site error: the file C:\Program Files (x86)\Ampps\ampps\softaculous\enduser\inc.php requires the ionCube PHP Loader ioncube_loader_win_5.3.dll to be installed by the website operator. If you are the website operator please use the ionCube Loader Wizard to assist with installation.

I checked out my php.ini file, and can't see anything wrong: 我检查了我的php.ini文件,看不出有什么问题:

;ionCube Loader
zend_extension="{$path}\{$php_dir}\ioncube_loader_win_5.3.dll"

When I echo phpinfo() , I can find no references to this IonCube loader whatsoever. 当我phpinfo() ,我找不到任何对这个IonCube加载器的引用。

When I try and fix the problem by using the IonCube installation wizard, I have no idea what to enter for the base URL and base Directory fields. 当我尝试使用IonCube安装向导解决问题时,我不知道要为base URLbase Directory字段输入什么。

Can someone help me out here? 有人可以帮帮我吗? Thanks. 谢谢。

You are facing this issue because Enduser panel files are encoded, so PHP requires ioncube loader to execute this files. 您正面临此问题,因为Enduser面板文件已编码,因此PHP需要ioncube loader来执行此文件。

Try this: 尝试这个:

First check which PHP version you are using. 首先检查您使用的PHP版本。 login to localhost/ampps and click on phpinfo option and check your php version. 登录到localhost / ampps并单击phpinfo选项并检查您的php版本。

If you are using PHP 5.3 or PHP 5.4 then download ioncube loader Windows VC9 (32 bits) zip file. 如果您使用的是PHP 5.3或PHP 5.4,请下载ioncube loader Windows VC9(32位)zip文件。

If you are using PHP 5.5 or PHP 5.6 then download ioncube loader Windows VC11 (32 bits) zip file. 如果您使用的是PHP 5.5或PHP 5.6,则下载ioncube loader Windows VC11(32位)zip文件。

Extract and copy Your_PHP_Version.dll file in /Ampps/php folder. 在/ Ampps / php文件夹中提取并复制Your_PHP_Version.dll文件。 example if you are 5.6 then copy ioncube_loader_win_5.6.dll" 例如,如果你是5.6然后复制ioncube_loader_win_5.6.dll“

Now open PHP config. 现在打开PHP配置。 AMPPS control panel --> PHP --> Configuration. AMPPS控制面板 - > PHP - >配置。

Search for the zend_extensions line and edit it with the following line: 搜索zend_extensions行并使用以下行进行编辑:

zend_extension="C:\\Program Files (x86)\\Ampps\\php\\ioncube_loader_win_5.6.dll" zend_extension =“C:\\ Program Files(x86)\\ Ampps \\ php \\ ioncube_loader_win_5.6.dll”

Restart Ampps Apache. 重启Ampps Apache。

Hope it helps :) 希望能帮助到你 :)

A few things to consider: 需要考虑的一些事项:

  1. Are there any messages concerning the Loader in your error log? 您的错误日志中是否有关于Loader的消息? If so, does the error message indicate a wrong path or something else? 如果是这样,错误消息是否指示错误的路径或其他内容?

  2. If you are using PHP 64bit, you should switch to the 32bit version instead. 如果您使用的是PHP 64bit,则应切换到32位版本。 The 64bit version is still marked as experimental on Windows according to windows.php.net 根据windows.php.net ,64位版本仍在Windows上标记为实验版

  3. Even though rare on Windows, some Apache installations have restricted read/write access, even on Windows. 尽管在Windows上很少见,但某些Apache安装限制了读/写访问权限,即使在Windows上也是如此。 Are you sure Apache/PHP can read the ionCube Loader files? 你确定Apache / PHP可以读取ionCube Loader文件吗? Error logs could help here, once again. 错误日志可以再次提供帮助。

  4. Did you download the correct Loaders? 你下载了正确的装载机吗? PHP as well as the ionCube Loaders are very picky with respect to Thread-safety, architecture and version. PHP和ionCube Loaders在线程安全,架构和版本方面都非常挑剔。 You should be able to get the required information from your phpinfo() . 您应该能够从phpinfo()获取所需的信息。

  5. Although I'm unfamiliar with AMPPS, this forum posts seems to suggest that AMPPS does not require the ionCube Loader, so removing the line seems to work for some. 虽然我不熟悉AMPPS,但这篇论坛文章似乎表明AMPPS不需要ionCube Loader,因此删除该线似乎对某些人有效。

  6. Lastly, you could try using the ionCube Loader Script ( download ) which could help you determine why the ionCube Loader is not being loaded. 最后,您可以尝试使用ionCube Loader Script( 下载 ),它可以帮助您确定未加载ionCube Loader的原因。

I am using Ampps. 我正在使用Ampps。 I've successfully installed ioncube on Ampps. 我在Ampps上成功安装了ioncube。 Firstly, I downloaded ioncube from ioncube.com. 首先,我从ioncube.com下载了ioncube。 Then I extracted the zipped file and executed the program. 然后我解压缩了压缩文件并执行了程序。

Check my screenshot: 检查我的截图:

在此输入图像描述

Hope it help! 希望它有所帮助!

Ok so I had the same problem for months! 好的,所以几个月来我遇到了同样的问题! I couldn't fix it so I had to do everything manually. 我无法解决它所以我必须手动完成所有事情。

What I found that worked though was to update ammpps manually! 我发现虽然工作,但手动更新ammpps! Check this link out http://www.ampps.com/wiki/How_to_update_Ampps_Manually 请查看此链接http://www.ampps.com/wiki/How_to_update_Ampps_Manually

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM