[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] How to run PHP scripts on RaQ3 (was PHP3)



I just installed PHP4 on my RAQ3. I downloaded it from php.net and followed
the readme file that came with it. After it was done installing. I edited
the httpd.conf in /etc/httpd/conf/ and added the following for one of my
sites:

AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php

It now looks like:

NameVirtualHost IP addy
<VirtualHost IP addy >
ServerName www.domain.com
ServerAdmin site5
DocumentRoot /home/sites/site5/web
ServerAlias squarenet.org
RewriteEngine on
RewriteCond %{HTTP_HOST}                !^ip addy(:80)?$
RewriteCond %{HTTP_HOST}                !^www.domain.com(:80)?$
RewriteRule ^/(.*)                      http://www.domain.com/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/users/([^/]+)(/(.*))? /home/sites/site5/users/$1/web/$3
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddHandler server-parsed .shtml
AddType    text/html     .shtml
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site5/users/$1/web/$3
</VirtualHost>

When I type in www.domain.com/phptest.php, it just displays <? echo "<b>PHP4
is great.</b>"; ?>

What could the problem be?