PDA

View Full Version : Is it possible to run ASP under LINUX


hosting
05-09-2008, 03:15 AM
To make ASP run under Linux, PHP script files are saved as ASP extensions and are redirected to the PHP interpreter. So it looks like the server serves ASP files, but these are actually PHP scripts.

phppete
05-09-2008, 03:22 AM
Yes, add this to your .htaccess file

AddType application/x-httpd-php .asp

so index.asp would give the impression you are on a windows box using ASP, or

AddType application/x-httpd-php .aspx

although a quick visit to netcraft would reveal the truth :)

Kevin
05-09-2008, 11:41 AM
Note that the methods listed above will let you run php scripts that are named *.asp or *.aspx. They will NOT let you run asp scripts.

There are ways to run asp scripts under Linux but FutureQuest does not support it. I believe those ways all require expensive commercial software though it has been a few years since I looked so I may be wrong on that part.

Randall
05-09-2008, 04:48 PM
Nuts -- something happened to this thread while I was composing my (lengthier) reply. But Pete and Kevin beat me to the punch anyway. There are ways to run asp scripts under Linux but FutureQuest does not support it. I believe those ways all require expensive commercial software though it has been a few years since I looked so I may be wrong on that part. The only option I'm aware of is "Sun Java System Active Server Pages" (née Chili!soft ASP), and I suspect it don't come cheap. Plus they're trying to herd people over to Solaris, so ASP on Linux is a fading hope.

There's a so-called ASP module for Apache (http://www.apache-asp.org), but it only runs Perl code. Since ASP programmers mostly use VBScript or JScript, you might as well rewrite everything in PHP instead.

Randall

phppete
05-19-2008, 12:51 AM
There is also Mono http://www.mono-project.com/Main_Page never tried it myself but it looks like a suitable solution.