发新话题
打印

RedHat8.0下的PHP、Apache问题

RedHat8.0下的PHP、Apache问题

以前我安装RedHat7.2时,以Server方式选择所有包,则在安装完后,就可直接使用PHP。
现在我安装的是RedHat8.0,以Server方式选择所有包安装。
但安装完后,发现PHP没有正常工作。

现象为,在/var/www/html目录下建立a.php文件。内容为<?phpinfo()?>。
用Mozilla看http://127.0.0.1/a.php,不显示任何东西。“View Page Source”显示为<?phpinfo()?>

不知谁能正常使用?如何设置?

另:Apache为2.0.40,PHP为4.2.2      
笨,真笨!

TOP

我的也 是这样      

TOP

我也是这样,请帮忙!      

TOP

我也是如此!      

TOP

redhat自带的php,默认不支持<?  ?>标记,只支持<?php ?>标记。
我改了标记就能用了。      

TOP

需要配置apache支持php      
******进不去****** http://bbsof.3322.org/

TOP

#vi php.ini
[php]
; 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

[/php]      
@&#\※★○◎◆□△─┄╀┾┮┭┬

TOP

RedHat8.0自带的php默认不支持<?,试试<?php phpinfo();?>      

TOP

用rh9呀,保证没问题!      

TOP

要配的,老大!

要配的,老大!不是那么的easy!      

TOP

发新话题