View Full Version : Is it possible to run ASP under LINUX
hosting
05-13-2008, 05:42 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.
areidmtm
05-13-2008, 08:16 AM
Yes, just add an apache handler and mime type in you .htaccess file (or you can do it in cPanel)
AddHandler application/x-httpd-php .asp
AddType application/x-httpd-php asp
FYI, there are ways to find out if the server is windows or linux regardless of what extension you're using. But this will fool the "normal web browsers". Why you would want to fool people in thinking that your website is on a windows server is beyond me...
felgall
05-13-2008, 01:19 PM
It is easy to run PHP on Windows or ASP on Linux provided that you have access to the server to set it up to work that way (which means you can do it on your own computer or dedicated hosting but not shared hosting). The language being run does not have anything to do with which operating system it is on.
charlesp
05-13-2008, 02:50 PM
So, can I run asp and php under the same account? Do I need a separate sub-directory for asp? Do I need a separate .htaccess for each sub-directory?
I am doing some work for a guy who uses mostly asp/vb but I would like to be able to test pages on my account instead of using his live server.:eek:
bobdog
05-13-2008, 03:16 PM
Why not just test the pages on your local machine?
felgall
05-13-2008, 03:19 PM
You can't test ASP pages on BlueHost because BlueHost doesn't have ASP installed. ASP can't be run as PHP as they are two different languages.
charlesp
05-13-2008, 05:56 PM
I do test asp pages on my local machine but I have read where pages may not work on a local machine but will work on a live server.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.