LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 06:18 PM   #1
Nikosis
Member
 
Registered: Dec 2005
Location: In front of the monitor
Distribution: Slackware
Posts: 322

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, 08: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, 12:00 AM   #3
Nikosis
Member
 
Registered: Dec 2005
Location: In front of the monitor
Distribution: Slackware
Posts: 322

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 12:03 AM.
 
Old 12-15-2005, 02:59 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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 03:01 AM.
 
Old 12-15-2005, 03:00 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Deleted
Duplicate

Last edited by bathory; 12-15-2005 at 03:07 AM.
 
Old 12-15-2005, 05: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-16-2005, 11:42 PM   #7
Nikosis
Member
 
Registered: Dec 2005
Location: In front of the monitor
Distribution: Slackware
Posts: 322

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-16-2005 at 11:44 PM.
 
Old 12-17-2005, 12:54 PM   #8
Nikosis
Member
 
Registered: Dec 2005
Location: In front of the monitor
Distribution: Slackware
Posts: 322

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 01:01 PM.
 
  


Reply



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 07:28 PM
Apache problem Xsecrets Linux - Networking 5 03-21-2004 03:49 PM
RH9: PHP session problem (or Apache problem) fengcn Red Hat 0 12-01-2003 06:32 PM
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 07:45 PM
apache benchmarks (apache v13 / apache v20) ; large differences between benchmarking markus1982 Linux - Software 0 02-08-2003 10:53 AM

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

All times are GMT -5. The time now is 10:48 PM.

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
Open Source Consulting | Domain Registration