pgowder
05-24-2001, 10:46 AM
How can I change my RaQ to accept files that have a php3 extension as a php file??
thanks
thanks
![]() | View Full Version : .php or .php3 pgowder 05-24-2001, 10:46 AM How can I change my RaQ to accept files that have a php3 extension as a php file?? thanks jtan15 05-24-2001, 12:58 PM Login via SSH or Telnet to your machine. Open the file: /etc/httpd/conf/srm.conf If you have PHP3 installed and want it to recognize .php3 extensions, put this line anywhere in the file: AddType application/x-httpd-php3 .php3 If you have PHP4 installed and want it to recognize .php3 extensions as PHP4, put this line anywhere in the file: AddType application/x-httpd-php .php3 Then execute this command: /etc/rc.d/init.d/httpd.init restart Hope this helps! :) BTW: This is on a RaQ 3. If this does not work for you, what RaQ are you using? pgowder 10-17-2001, 08:28 PM Sorry for the long delay, but the application I was working on had a version with .php. Now I'm back to this problem. I have a raq4, and I have a line in that file as this: AddType application/x-httpd-php4 .php3 However, my php3 files still only bring up a download dialog box. thanks dnid 10-18-2001, 04:25 AM It is AddType application/x-httpd-php .php3 and not AddType application/x-httpd-php4 .php3 HTH Daniel pgowder 10-18-2001, 09:00 AM Do I have to reboot, or restart anything? dnid 10-18-2001, 10:02 AM Do I have to reboot, or restart anything? Yes, you have to restart apache. See the posting of Vincent. pgowder 11-13-2001, 03:32 PM Again sorry for the delay. I tried to restart the server as mentioned above, but I get no such file or directory. I'm on Raq4. thanks dnid 11-13-2001, 03:38 PM ah, of course, you're right. This should work: /etc/rc.d/init.d/httpd restart Sorry Daniel pgowder 11-13-2001, 05:19 PM Thanks! :D |