asp scripting enabled?

sifaka

Member
Messages
46
Reaction score
0
Points
6
I have tried to run a test active server pages script -from public html/cgi-bin folder- but it only gives me a blank screen, no errror message. ???

HTML:
<html>
<body>
<%
response.write("Hello World!")
%>
</body>
</html>

thanks,
matt
 

Scoochi2

New Member
Messages
185
Reaction score
0
Points
0
The ASP Framework needs a Windows powered server. X10 uses Linux and as such... not Windows :)

Are you really getting a blank page? Check the source. I suspect you'll find it output exactly what you told it to, considering that the code isn't parsed.
 

sifaka

Member
Messages
46
Reaction score
0
Points
6
Uh huh, Scoochi2,
When I run it from the cgi-bin folder I get an error message:

Internal server error
The server encountered an internal error or misconfiguration and was unable to complete your request.
etc, etc, etc....

If I run it from the public html folder I get a blank page.

So there is no way to run asp on .x10 hosting because we use a platform type that doesn't support it.
What are you using instead of asp?
Moooochas gracias,
sif
 

Scoochi2

New Member
Messages
185
Reaction score
0
Points
0
Maybe I got that wrong..?
In your user CP, go to the CGI center. I'm not sure I can help you further with this one :(
 

sifaka

Member
Messages
46
Reaction score
0
Points
6
Scoochi2,
Don't sweat it. You were a help. I might let this thread close. I'll work on it later....:)
 

Twinkie

Banned
Messages
1,389
Reaction score
12
Points
0
Only ASPX is currently supported. To enable that, you have to override your mime type to parse it, run from your CGI-BIN folder. Something I can get if you want it. Schooch2 is right, it is only commonly run on Microsoft servers (IIS).
 
Last edited:

sifaka

Member
Messages
46
Reaction score
0
Points
6
I still can't find a category "MIME types" in the "Advanced" area at the bottom of my C-panel. Is the mime types configuration somewhere else?
Thanks again,
sif
 

t2t2t

New Member
Messages
690
Reaction score
0
Points
0
Create ".htaccess" in root directory of your website (/public_html/) and write in it:
Code:
AddType application/mono aspx ascx asax ashx config cs asmx axd

(If this helps I'll add it as a comment to KB article)
 
Last edited:

sifaka

Member
Messages
46
Reaction score
0
Points
6
I have saved an .htaccess file with this line:
AddType application/mono .aspx .ascx .asax .ashx .config .cs .asmx .axd
Notice the lack of a dot before "mono" and the dots before the rest of the suffixes. I still get:

500 Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@sifaka888.x10hosting.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache Server at sifaka888.x10hosting.com Port 80

I'm running the page "dynpage.aspx" from inside the cgi-bin folder, when I get this message. I get a different one from the same file when I run it outside the cgi-bin folder.
.htaccess files never show up on my site's file directory, right? How do I see them? Also, do I currently have multiple .htaccess files? Is that ok?
Thanks for the help!
matt w.
 

t2t2t

New Member
Messages
690
Reaction score
0
Points
0
.htaccess files never show up on my site's file directory, right? How do I see them?
It won't display when seen in web browser (seen in ftp and cPanel's filemanager)
Also, do I currently have multiple .htaccess files? Is that ok?
There can't be multiple .htaccess files(EDIT: At least in one (1) folder), it's like having 2 "New folder"s on your desktop (2nd one gets renamed to ...(2))
 
Last edited:

sifaka

Member
Messages
46
Reaction score
0
Points
6
I have made saved a file ".htaccess" inside my public_html folder with the following line:
AddType application/mono .aspx .ascx .asax .ashx .config .cs .asmx .axd
Notice there is no dot before "mono" and dots before all the file type suffixes, although I've tried different spellings.

I get this error when I run the page "dynepage.aspx" inside the cgi-bin directory:
500 Internal Server ErrorInternal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@sifaka888.x10hosting.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache Server at sifaka888.x10hosting.com Port 80


I get a different error message when I run it from another folder.
Am I allowed to have multiple .htaccess files?
How can I view .htaccess files? They don't show up on my c-panel directory.
Thanks again,
Matt
Edit:
T2, Sorry about the stutter post! I'm still a little murky about the whole .htaccess use. According to an Apache tutorial they can slow our server down. So, maybe I should not use 'em? Also is it possible that .htaccess files are not currently allowed on my account? That would explain why they are not showing up on the directory my c-panel is showing me.
Thanks
 
Last edited:

xav0989

Community Public Relation
Community Support
Messages
4,467
Reaction score
95
Points
0
htaccess files are like server configuration files, but only for one folder (and sub-folder) and they are enabled for all account, since they come with apache. It does slow down a tiny bit your server, but not in considerable amount. The only other way to do the things you can do with an htaccess is with the server configuration file... there is one per server, and we are at least 500 on each server...

The reason it might not be showing is maybe you choose not to see the hidden files in the cPanel file manager. Try this:
  • Log into you cPanel
  • At the bottom of the page, click on 'reset all interface settings'
  • Click on the file manager icon, a box should appear
  • The selected directory is not important, but you must check the little box marked 'Show Hidden Files (dotfiles).'
  • Open file manager and voila.
 
Top