我在 apache 网络服务器上的Linux(centos)中安装了 mod_pagespeed 。
现在我的网站显示的是错误(内部服务器错误)500,而不是404(未找到)错误!
在我的日志中,我看到了:
[Fri Jan 11 01:50:25.855247 2019] [pagespeed:error] [pid 24009] [mod_pagespeed 1.13.35.2-0 @24009] /var/cache/mod_pagespeed/shm_metadata_cache/snapshot/,2Fvar/cache/mod_pagespeed/,2Fmetadata_cache/1/64/4452/128/93,.temp7r4AFi:0: opening temp file: Permission denied
[Fri Jan 11 01:50:25.874275 2019] [pagespeed:error] [pid 24009] [mod_pagespeed 1.13.35.2-0 @24009] /var/cache/mod_pagespeed/shm_metadata_cache/snapshot/,2Fvar/cache/mod_pagespeed/,2Fmetadata_cache/1/64/4452/128/15,.tempwilyY3:0: opening temp file: Permission denied
[Fri Jan 11 01:50:25.945841 2019] [pagespeed:error] [pid 24009] [mod_pagespeed 1.13.35.2-0 @24009] /var/cache/mod_pagespeed/shm_metadata_cache/snapshot/,2Fvar/cache/mod_pagespeed/,2Fmetadata_cache/1/64/4452/128/76,.tempTXYRzP:0: opening temp file: Permission denied
我在SSH中尝试了chcon -R -t httpd_sys_content_t /var/cache/mod_pagespeed
,但没有任何改变。