dongli5785 2015-02-12 11:42
浏览 31

Application.cpp中的SoftException:422:文件的目标UID(584)和UID(99)之间不匹配

I was setting up the Apache on CentOS server. My first testing script index.php as well as any others was causing:

500 Internal Server Error

I opened the log file (in my case /usr/local/apache/logs/error_log and /usr/local/apache/logs/suphp_log) and I found some entries as follows:

SoftException in Application.cpp:422: Mismatch between target UID (99) and UID (32010) of file "/usr/local/apache/htdocs/{DIRECTORY OF MY PROJECT}/index.php"

-AND-

[Wed Feb 11 15:16:03 2015] [warn] UID of script "/usr/local/apache/htdocs/{DIRECTORY OF MY PROJECT}/index.php" is smaller than min_uid

What I understood my fie permissions and/or ownership was wrong. Is there any recommended file ownership for website scripts in CentOS environment?

  • 写回答

1条回答 默认 最新

  • dtrj74376 2015-02-12 11:42
    关注

    The easiest solution I found was by using a command line:

    chown -R 99:99 {PROJECT ROOT DIRECTORY}
    

    where 99 is the target UID value required by the server.

    Alternatively you may use WinSCP. Just right click on the project root directory, select permissions and enter in Group and Owner fields value 99 (the same as target UID from error log), also check box 'Set group, owner and permissions recursively', click OK and after a while the files and folders ownership should adjusted to the one that is required by the server.

    评论

报告相同问题?

悬赏问题

  • ¥15 高缺失率数据如何选择填充方式
  • ¥50 potsgresql15备份问题
  • ¥15 Mac系统vs code使用phpstudy如何配置debug来调试php
  • ¥15 目前主流的音乐软件,像网易云音乐,QQ音乐他们的前端和后台部分是用的什么技术实现的?求解!
  • ¥60 pb数据库修改与连接
  • ¥15 spss统计中二分类变量和有序变量的相关性分析可以用kendall相关分析吗?
  • ¥15 拟通过pc下指令到安卓系统,如果追求响应速度,尽可能无延迟,是不是用安卓模拟器会优于实体的安卓手机?如果是,可以快多少毫秒?
  • ¥20 神经网络Sequential name=sequential, built=False
  • ¥16 Qphython 用xlrd读取excel报错
  • ¥15 单片机学习顺序问题!!