Results 1 to 3 of 3

Thread: Is it possible to run ASP under LINUX

  1. #1

    Question Is it possible to run ASP under LINUX

    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.

  2. #2
    Join Date
    Oct 2007
    Posts
    105

    Default

    Erm, I'm not sure if this is intended as a question or a statement, but either way the answer is that it doesn't work like that. A PHP script saved with an ASP extension is still a PHP script, not an ASP file. I believe it technically *is* possible to run ASP under Linux via a 3rd party interpreter that somewhat works. For ASP.Net there's also the Mono project, which is functional but probably not all that mature.

  3. #3
    Join Date
    Mar 2008
    Posts
    142

    Default

    If I'm right you want to use php but instead of index.php it's index.asp keeping everything else php? If so then.

    Yes it is "simple" just edit

    AddType application/x-httpd-php .php .phtml .php3

    and change it to

    AddType application/x-httpd-php .php .phtml .php3 .asp

    in /etc/apache2/mods-available/php5.conf

    it also may be in httpd.conf or apache.conf in apache's conf directory

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •