fopen没有使用弹性beanstalk php

时间:2016-01-11 07:24:24

标签: php amazon-web-services elastic-beanstalk

我在弹性beanstalk php中使用以下代码生成日志文件,但我收到此错误。但是相同的代码正在另一台服务器上运行。我怎样才能使它工作?

错误:

$(document).ready(function() {
  $("#dino-example").owlCarousel({
    items: 5,
    singleItem: true,
    afterMove: function (elem) {
      $(".owl-item").removeClass('active'); //remove it from every item
      var current = this.currentItem; //get currentItem
      $(elem).find(".owl-item").eq(current).addClass('active'); //add active class
    }
  });
  $(".owl-item:first").addClass('active'); //add active class to first owl-item on DOM ready
});

$(document.body).on('click', '.get' ,function(){
    var ipVal=$(".owl-item.active").find('input[type=text]').val();
    //find input present in active item and get its value
    alert(ipVal);
});

代码:

Error opening file in write mode!

1 个答案:

答案 0 :(得分:1)

确保您的php用户www-data有权在$path.'/logs/文件夹或chmod logs文件夹中写入0777权限< / p>