dte66654 2012-08-09 02:47
浏览 118

如何让Apache允许运行可执行文件?

I am just wondering what I can do in this situation. I have this simple web page, through which I want to invoke a program that leaves a file on site. For your information, this web page itself can write (it saves uploaded files in a specific location in the server). But the problem is that when I invoke the program via the web page, it doesn't produce a file in the same specific location the web page succeeded to leave a file.

Simply speaking, my situation is a web page can save a file to folder A, but when the web page invokes a program to leave a file in the folder, it can't. And the question is
how I can make the program to do so when it's invoked by the web page?

Thanks, HJ.

  • 写回答

1条回答 默认 最新

  • dtysql0586 2012-08-09 04:06
    关注

    You need to set the folder permissions to allow write access for apache. From the command line in linux:

    sudo chmod 644 path/to/folder
    

    You should probably allow the apache group to own that folder, as well.

    sudo chown yourlinuxusername:apache path/to/folder
    

    Apache may have a different name, too. In such a case, just change apache to whatever the name should be.

    评论

报告相同问题?

悬赏问题

  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥15 想问一下树莓派接上显示屏后出现如图所示画面,是什么问题导致的
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)
  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化