- 论坛徽章:
- 0
|
本帖最后由 zerostudy 于 2012-08-17 09:06 编辑
yum install httpd
yum install php
yum install php-gd libjpeg* php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-mcrypt php-bcmath php-mhash libmcrypt
访问html页正常,访问php页,空白,没有任何内容。
[root@nagios /]# tail /var/log/httpd/error_log
[Sun Jul 15 10:10:45 2012] [notice] caught SIGTERM, shutting down
[Sun Jul 15 10:10:46 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun Jul 15 10:10:46 2012] [notice] Digest: generating secret for digest authentication ...
[Sun Jul 15 10:10:46 2012] [notice] Digest: done
[Sun Jul 15 10:10:47 2012] [warn] ./mod_dnssd.c: No services found to register
[Sun Jul 15 10:10:47 2012] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
tail /var/log/httpd/access_log
192.168.128.1 - - [15/Jul/2012:10:11:00 +0800] "GET /index.php HTTP/1.1" 200 17 "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727)"
messages 没有错误。
添加
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
也没用。一样空白。
百度过,没有找到解决方法。
直接用yum 安装的,别的应不用怎么配置就可以访问php吗?
|
|