dongwen3093 2016-07-12 05:40
浏览 44

我应该打开什么终端来运行命令来修复php中的权限被拒绝错误?

I found the solution to fix "fopen(document.pdf): failed to open stream: Permission denied in C:\Program Files\VertrigoServ\www\Project\makePDF.php on line 8". It was suggested that to open terminal and run the command

sudo chmod filename.php

But i don't know which terminal should I open to run this command?

Please help me. I'll be very thankful to you.

  • 写回答

2条回答 默认 最新

  • douyiyi5284 2016-07-12 06:13
    关注

    Windows security settings is preventing you to access that file which is in program Files folder.

    1. First method You should note that The DocumentRoot and Directory directive directory should match. Your vhosts file inside apache->conf->extra should have the proper directory listing

    <Directory "C:\Program Files\VertrigoServ\www\Project">
        Options Indexes FollowSymLinks Includes
        AllowOverride All
        Order Allow,Deny
        Allow from all
        Require all granted
        </Directory> 

    1. Install XAMPP in C Drive itself like C:/VertrigoServ instead of C:\Program Files\VertrigoServ\ . Program Files Directory require special permissions.
    </div>
    
    评论

报告相同问题?

悬赏问题

  • ¥15 树莓派与pix飞控通信
  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题