conf文件
ScriptAlias /php/ "x/php/" (x改成你php的安装目录)
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php-source .phps
Action application/x-httpd-php "/php/php.exe"
ScriptAlias /php/ "x/php/" (x改成你php的安装目录)
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php-source .phps
Action application/x-httpd-php "/php/php.exe"
ScriptAlias /php/ "x/php/" (x改成你php的安装目录)
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php-source .phps
Action application/x-httpd-php "/php/php.exe"
就是这个了.要不他不知道你运行的是什么东东.呵呵.
不是windows 呵呵
httpdconf里面所有该设的项都没问题
但还是出错
最后才发现是apache 和 php的版本不配对
换了一个高一点的版本的php就没事了
不知路径对不,如不对你可这样查找httpd.conf
find / -name httpd.conf
找到后改它.
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php
把这两行#号去掉,没有这两行就加上.
这一行就不要啦,php.exe是windows下的东东.Action application/x-httpd-php "/php/php.exe"
现在我遇到了新问题:我在安装Red Hat Linux7.2/7.3时差不多把所有的包都选上了(7.3少选一点),只差没有选everything,在用编译MySQL时,用scripts/mysql_install_db时,提示如下:
……
Installing all prepared tables.
scripts/mysql_install_db:./bin/mysqld:connot execute binary file.
Installation of grant tables failed!
……
如用./configure时也差不多是同样的问题。还有,我在安装盘中直接安装rmp包时,提示:
Nautilus has no installed viewer capable of displaying.
/mnt/cdrom/RedHat/RPMs/apache_1.3.23-11.i386.rpm请问这是什么问题呢?是不是还差什么没有装上?
我在自己的计算机上可以用:10.141.22.252 127.0.0.1 localhost 都可以访问的