问题描述
我一直在试图让这两种装载机安装了一个晚上都没有成功。我已经把范围缩小到创建一个配置文件。我已经把一个config文件中位于我的根我的项目目录.ebextensions文件夹,我不知道,如果它需要在同一水平作为我的项目。但在任何情况下,每次403错误,出现以下消息:
I have been trying to get one of these two loaders installed all evening without success. I have narrowed it down to creating a config file. I have put a .config file in a .ebextensions folder located in my root directory of my project, I'm not sure if it needs to be at the same level as my project. But in any case every time 403 error with the following message:
您没有权限访问/在此服务器上。如果我删除脚本此消息消失。我也将包括在那里我可以得到与出包括config文件截图及原因,我需要安装装载机之一。在此先感谢这里是我的config文件是这样的:
"You don't have permission to access / on this server." If I remove the script the message goes away. I will also include a screenshot of where I can get to with out the .config file included and the reason why I need one of the loaders installed. Thanks in advance here is what my .config file looks like:
# Install ioncube
mkdir ion
cd ion
wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz
tar xzvf ioncube_loaders_lin_x86.tar.gz
mv ioncube/ioncube_loader_lin_5.4.so /usr/lib/php/modules/ioncube_loader.so
touch /etc/php.d/ioncube.ini
echo "zend_extension=/usr/lib/php/modules/ioncube_loader.so" >> /etc/php.d/ioncube.ini
cd ..
rm -rf ion/
这是我从这里得到的答案:的https://forums.aws ?.amazon.com / thread.jspa邮件ID = 446182&放大器;#446182
推荐答案
本安装了IonCube的工作只是现在对于EC2(希望工程以及弹性魔豆):
This installation for IonCube worked just now for EC2 (hope it works as well for elastic beanstalk):
PHP版本是5.5 - 请改变5.5到你安装的版本,如果你有一个不同的(PHP -v给你当前系统安装的):
PHP version installed is 5.5 - please change the 5.5 to your installed version if you have a different one ("php -v" gives you the currently installed one):
# Download current version of IonCube loader
wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
# Unzip to /usr/local
sudo tar -xzf ioncube_loaders_lin_x86-64.tar.gz -C /usr/local
# Add installed module to PHP config
echo 'zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.5.so' | sudo tee /etc/php-5.5.d/ioncubeloader.ini
# Restart Apache (if necessary)
sudo service httpd restart
如果您运行PHP -v现在,它应该告诉你IonCube安装:
If your run "php -v" now, it should show you IonCube installed:
PHP 5.5.12 (cli) (built: May 20 2014 22:27:36)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with the ionCube PHP Loader v4.6.1, Copyright (c) 2002-2014, by ionCube Ltd., and
with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies
这篇关于AWS弹性魔豆安装IonCube或Zend的装载机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!