LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-13-2005, 07:18 PM   #1
Nikosis
Member
 
Registered: Dec 2005
Location: In front of the monitor
Distribution: Slackware
Posts: 312

Rep: Reputation: 59
problem with Apache


Hi

The problem is that I've got web site in *.asp format . I tried to configure apache and everything suppose to be just fine, but instead graphical website
I see source code on my browser.
What should I do to get it on the way how it suppose to be.

I appreciate any advices

Thanks
 
Old 12-13-2005, 09:38 PM   #2
jakev383
QmailToaster Developer
 
Registered: Dec 2005
Location: Burlington, NC
Distribution: CentOS, Voyage, Debian, Fedora
Posts: 220

Rep: Reputation: 31
Quote:
Originally Posted by Nikosis
Hi

The problem is that I've got web site in *.asp format . I tried to configure apache and everything suppose to be just fine, but instead graphical website
I see source code on my browser.
What should I do to get it on the way how it suppose to be.
.ASP pages are normally for Frontpage extensions. If you need Frontpage extensions, try googling for the perl modules that will emulate a IIS server.
Otherwise, you need to find the line that says:
Code:
DirectoryIndex index.php index.htm index.html index.html.var
and add index.asp (I think Frontpage likes to use default.asp)
Hope that helps a little.
 
Old 12-15-2005, 01:00 AM   #3
Nikosis
Member
 
Registered: Dec 2005
Location: In front of the monitor
Distribution: Slackware
Posts: 312

Original Poster
Rep: Reputation: 59
Hi
OK. let me check it, I gotta check something else also (mod_perl), and we'll see,

Thanks
ps.do you know what about flash animation. Does apache support it.

Last edited by Nikosis; 12-15-2005 at 01:03 AM.
 
Old 12-15-2005, 03:59 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,890

Rep: Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608
Take a look here if you want to add asp support in apache.
As for flash animations just add the following line in httpd.conf
Code:
AddType application/x-shockwave-flash .swf

Last edited by bathory; 12-15-2005 at 04:01 AM.
 
Old 12-15-2005, 04:00 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,890

Rep: Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608
Deleted
Duplicate

Last edited by bathory; 12-15-2005 at 04:07 AM.
 
Old 12-15-2005, 06:06 AM   #6
Matty_Woo
LQ Newbie
 
Registered: Mar 2004
Location: Blackpool, UK
Distribution: Debian (Sarge/Etch)
Posts: 4

Rep: Reputation: 0
Smile ASP pages

.asp pages are Microsoft Active Server Page scripts, which require their ASP engine (shipped with IIS + therefore requires Windows) to run - There are linux versions of ASP such as ChiliSoft ASP (I think Sun do it now) - but they aren't free (or weren't last time I looked).

Consider doing the website in php as that will work fine with apache on linux.
 
Old 12-17-2005, 12:42 AM   #7
Nikosis
Member
 
Registered: Dec 2005
Location: In front of the monitor
Distribution: Slackware
Posts: 312

Original Poster
Rep: Reputation: 59
Hi
Thanks for advices, but it still doesn't work how it should be, maybe I did something wrong or mod_perl doesn't support VBScript.


well, I'll keep looking, there must be some way out.

I appreciate any advices.

Thanks.

Last edited by Nikosis; 12-17-2005 at 12:44 AM.
 
Old 12-17-2005, 01:54 PM   #8
Nikosis
Member
 
Registered: Dec 2005
Location: In front of the monitor
Distribution: Slackware
Posts: 312

Original Poster
Rep: Reputation: 59
hi
here is few first lines from my website

Quote:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!--#include file="Connections/connection.asp" -->
<%
Dim Recordset1__MMColParam
Recordset1__MMColParam = "S"
If (Request("MM_EmptyValue") <> "") Then
Recordset1__MMColParam = Request("MM_EmptyValue")
End If
%>
<%

Dim Recordset1
Dim Recordset1_numRows

Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_connection_STRING
Recordset1.Source = "SELECT TOP 2 SKU, ID, LIST_PRICE, PIC_FILENAME, SKUGROUP_DESC FROM dbo.Items WHERE ITEM_TYPE = '" + Replace(Recordset1__MMColParam, "'", "''") + "'"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open()

Recordset1_numRows = 0
%>
<%
Dim Recordset2__MMColParam
Recordset2__MMColParam = "F"
If (Request("MM_EmptyValue") <> "") Then
Recordset2__MMColParam = Request("MM_EmptyValue")
End If
%>
<%
Dim Recordset2
Dim Recordset2_numRows

Set Recordset2 = Server.CreateObject("ADODB.Recordset")
Recordset2.ActiveConnection = MM_connection_STRING
Recordset2.Source = "SELECT TOP 2 SKU, ID, LIST_PRICE, PIC_FILENAME, SKUGROUP_DESC FROM dbo.Items WHERE ITEM_TYPE = '" + Replace(Recordset2__MMColParam, "'", "''") + "'"
Recordset2.CursorType = 0
Recordset2.CursorLocation = 2
Recordset2.LockType = 1
Recordset2.Open()

Recordset2_numRows = 0
%>
<html><!-- InstanceBegin template="/Templates/main.dwt.asp" codeOutsideHTMLIsLocked="false" -->
<head>
<!--#include file="Connections/connection2.asp" -->
<%
Dim Categories
Dim Categories_numRows

Set Categories = Server.CreateObject("ADODB.Recordset")
Categories.ActiveConnection = MM_connection_STRING2
Categories.Source = "SELECT DISTINCT SECTION FROM dbo.Items ORDER BY SECTION"
Categories.CursorType = 0
Categories.CursorLocation = 2
Categories.LockType = 1
Categories.Open()

Categories_numRows = 0
%>
<%
Dim Categories__numRows
Dim Categories__index

Categories__numRows = -1
Categories__index = 0
Categories_numRows = Categories_numRows + Categories__numRows
%>
Ok if I replace this above on that
Quote:
<html><!-- InstanceBegin template="/Templates/main.dwt.asp" codeOutsideHTMLIsLocked="false" -->
everything works fine.
what is this all about?
Thanks

Last edited by Nikosis; 12-17-2005 at 02:01 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange apache trailing / problem - Slack-current, apache 1.3.33 vamp Linux - Networking 1 01-30-2005 08:28 PM
Apache problem Xsecrets Linux - Networking 5 03-21-2004 04:49 PM
RH9: PHP session problem (or Apache problem) fengcn Red Hat 0 12-01-2003 07:32 PM
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 08:45 PM
apache benchmarks (apache v13 / apache v20) ; large differences between benchmarking markus1982 Linux - Software 0 02-08-2003 11:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration