faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

13 of 29 people (45%) answered Yes
Recently 4 of 10 people (40%) answered Yes


Is it possible to multiple web application platforms on the same server? ex: PHP and JSP on Apache

Feb 24th, 2008 20:08
dman, Ayse Geertsma, Dave Morrison, http://www.ttnr.org

Yes, it is. I'm not sure if PHP and JSP bite on an Apache but in 
general a webserver (including Apache and IIS) decides to parse a file 
based on it's file-extension.
I'm not sure if this is the same on all OS-es but in your httpd.conf 
(Apache!) there should be a line like :
AddType application/x-httpd-php .php .phtml
This line is already there but it's commented out. The last words (.php 
and .phtml) tell Apache to connect .php and .phtml with the correct 
handler. (There's another line to define the handler. See 
I guess a similar line can be added for perl (.cgi or .pl), jsp 
(.jsp?), ms-asp (.asp) etc. As long as you use different extensions it 
should be fine.