dsnw2651 2010-07-21 16:40
浏览 81
已采纳

无法访问上传的文件或php编写的文件

I'm having a problem with my server at work, it's not letting me access any files via FTP that were uploaded or created by PHP, like log files and user uploads. I CAN access them via HTTP.

Server - Apache/1.3.41 (Unix)

This is a big problem for me, and I feel like it must be some server configuration because this doesn't happen elsewhere. I am going to call our "server guy" and try to get him to correct this, but first I wanted to see if anyone had any clues about what might be going on before I do so - as he was a real pain to work with in the past and not eager to help.

  • 写回答

2条回答 默认 最新

  • dsgfdgh14569 2010-07-21 16:43
    关注

    If I had to guess, it's probably because when you upload files, the web server itself is writing those file to the disk, hence the files end up with the web-server's user permissions which are different from yours. If you need to be able to modify those files, have your php app chown() them to a group you have access to and chmod() them accourdingly.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 微带串馈天线阵列每个阵元宽度计算
  • ¥15 关于无人驾驶的航向角
  • ¥15 keil的map文件中Image component sizes各项意思
  • ¥30 BC260Y用MQTT向阿里云发布主题消息一直错误
  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM
  • ¥15 划分vlan后不通了