tommienbp
04-14-2004, 03:57 AM
I've just set no php for a site in the interface. So it cannot use PHP scripts.
I've just uploaded a script and it works fine. Strange huh?
I looked at the httpd.conf and in the virtualhost for this site wasn't any:
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
This happens to all the sites in which I disabled PHP. What am i doing wrong?
Have you customized your apache conf in any way? Looks like php may be configured at the server level.
tommienbp
06-01-2004, 08:35 AM
I did some modifications to my httpd.conf, but nothing with php. How can php be configured at serverlevel? How can i check this is the thing?
tommienbp
06-01-2004, 08:42 AM
Could this be the thing?
The servername in the httpd.conf is:
ServerName ns1.domain.nl
Then i configured a virtual host like this:
<VirtualHost xxx.xxx.xxx.xxx>
ServerName ns1.domain.nl
ServerAdmin admin
DocumentRoot /home/sites/home/web
RewriteEngine on
RewriteCond %{HTTP_HOST} !^xxx.xxx.xxx.xxx(:80)?$
RewriteCond %{HTTP_HOST} !^ns1.domain.nl(:80)?$
RewriteRule ^/(.*) http://ns1.domain.nl/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/home/users/$1/web/$3
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
</VirtualHost>
Could this be overruling the other PHP settings?
tommienbp
06-07-2004, 03:01 AM
Nobody a clue about how I can check where things go wrong? Any help would be appreciated. Thanks.
galacnet
06-07-2004, 03:21 AM
You are setting all this through your TelNet interface?
Most of the time when we do it over the Cobalt Main GUI the php files will just load up on the web brwser as a bunch of text showing what you used in the code.
Pubic Fish
06-10-2004, 10:58 PM
Pleaseeatgoats, I agree. This issue is similar to what I have encountered as well.
tommienbp
06-15-2004, 04:10 AM
so everybody has this on a raq4? What could be the cause?