Rootop 服务器运维与web架构

script xxx.php not found or unable to stat

| 暂无评论

Hi all:

My system is RHEL6.0 , and i write a test script to test my php server environment , but when i visit it ,i get nothing.the page is null.

script name : test.php

script code:

<? phpinfo(); ?>

i founded that:”scrip test.php not found or unable to stat” in httpd log.

At last,i’m sure it’s php.ini had somewhere to correct:

; Allow the <? tag.  Otherwise, only <?php and <script> tags are recognized.
; NOTE: Using short tags should be avoided when developing applications or
; libraries that are meant for redistribution, or deployment on PHP
; servers which are not under your control, because short tags may not
; be supported on the target server. For portable, redistributable code,
; be sure not to use short tags.
short_open_tag = On

make the red section to ON

it’s OK ~

原创文章,转载请注明。本文链接地址: https://www.rootop.org/pages/445.html

作者:Venus

服务器运维与性能优化

发表回复