Web Hosting Talk







View Full Version : forceType Error


webshome
10-29-2004, 04:37 AM
Dear Friends

I am using below code for SEFriendy url

<Files news>
ForceType application/x-httpd-php
</Files>

it's running on Apache server and working perfectly

no i shif the server and it's have

Server API= CGI?

and it's giving me

internal server error

Please help me

Regards
webshome

Loon
10-29-2004, 05:18 AM
It wont work if PHP is running as a CGI, try using:


SetHandler application/x-httpd-php

webshome
10-29-2004, 05:33 AM
hi Loon,

Thanks for quick help

it's working. but when i use the below code it's give me internal error


php_flag use_trans_sid off
<IfModule mod_php4.c>
php_value session.use_trans_sid 0
</IfModule>

or there is another syntex to disable to PHPSESSID

Regards
webshome

realvaluehosting
10-29-2004, 08:17 AM
Originally posted by webshome
Dear Friends

I am using below code for SEFriendy url

<Files news>
ForceType application/x-httpd-php
</Files>

it's running on Apache server and working perfectly

no i shif the server and it's have

Server API= CGI?

and it's giving me

internal server error

Please help me

Regards
webshome

Unfortunately that doesn’t work as easily when PHP is running as a CGI. http://forum.textpattern.com/viewtopic.php?id=4009 provide a good info. about your problem. Hope this help :)

Loon
11-02-2004, 10:43 AM
Originally posted by webshome
hi Loon,

Thanks for quick help

it's working. but when i use the below code it's give me internal error


php_flag use_trans_sid off
<IfModule mod_php4.c>
php_value session.use_trans_sid 0
</IfModule>

or there is another syntex to disable to PHPSESSID

Regards
webshome

Disable it from php.ini (find session.use_trans_sid and change to 0)