RHEL AS4下如何写php

Home Home
引用 | 編輯 wpwp00000
2006-12-02 16:44
樓主
推文 x0
最近安装了RedHat Enterpise Linux as4,默认安装了httpd(Apache)、mysql和php,测试html成功。在 /etc/httpd/conf/httpd.conf文件中的"#AddType application/x-tar .tgz"下面添加了一行AddType application/x-httpd-php .php .phtml,有写了一个php程序,但在浏览器里面却没有执行。不知道是什么原因,请各位大大帮帮小弟。谢谢!

獻花 x0
引用 | 編輯 ccxxx
2007-01-07 03:05
1樓
  
Hi,

It should be ready after installing redhat. You can check the php.conf file which is stored under "/etc/httpd/conf.d/php.conf", and make sure the php module is presented in "/usr/lib/httpd/modules"

LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php .php
DirectoryIndex index.php

獻花 x0
引用 | 編輯 mnbmnb5266
2010-08-20 23:38
2樓
  
你需要在瀏覽器中增添加載項用來識別你的程序。這個可以在論壇中或網上找到

獻花 x0