[英]install Mod_security on Amazon Elastic Beanstalk (Apache, EC2)
It's pretty simple to recreate it: 重新创建它非常简单:
- launch a new PHP environment: -启动新的PHP环境:
- SSH into your instance: -通过SSH进入您的实例:
If you have the elastic beanstalk cli 如果您有弹性的豆茎cli
yum install mod_security
yum install mod_security
Now you should have: 现在您应该具有:
Error: httpd24 conflicts with httpd-2.2.31-1.7.amzn1.x86_64
Error: httpd24-tools conflicts with httpd-tools-2.2.31-1.7.amzn1.x86_64
Thank you for helping! 感谢您的帮助! If you have any questions, I'm here!
如果您有任何疑问,我在这里!
I saw on stackoverflow a solution was to remove them yum remove httpd httpd-tools
and install mod_security, but that brings other dependency issues... 我在stackoverflow上看到一个解决方案是删除它们
yum remove httpd httpd-tools
并安装mod_security,但这带来了其他依赖关系问题...
When you are logged in to your instance (eb or ssh), use this to install the relevant packages: 登录到实例(eb或ssh)后,请使用以下命令安装相关软件包:
sudo yum install httpd24-devel.x86_64
sudo yum install mod24_security.x86_64
Don't forget to restart apache 不要忘记重启apache
sudo /etc/init.d/httpd restart
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.