Jump to content

Boldkyky

Members
  • Posts

    13
  • Joined

  • Last visited

Boldkyky's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Fair enough! Would you know what the FTP URL is? I tried ftp.edam.heliohost.org but kept getting errors (using the FTP option in Visual Studio)
  2. Hello, I'm having issue deploying my asp.net web application. I did a quick search of the forums and made sure my hosting is on Johnny, which to my understanding is the only one of the two servers that supports ASP.net. I don't believe the error is due to coding, when I compile with Visual Studio it works fine. Any input is appreciated. The error I'm getting is the following: Server Error in '/' Application Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off". <!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="Off"/> </system.web> </configuration> Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL. <!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/> </system.web> </configuration>
  3. Thanks for the information. Apparently the cause for the error is the "or die" part of the line. If I comment it, the site will display normally. While I can remove this it feels a bit odd discarding something that can show if there are errors getting connected. Here's how the code reads after I incorporated the style presented in the tutorial Shinryuu shared. $driver = "mysql"; $database = "-----"; $dsn = "DBI:$driver:$database:localhost:3306"; $userid = "---"; $password = "----"; $dbh = DBI-&--#62;connect($dsn, $userid, $password ); #or die ("Unable to connect: $DBI::errstr\n"); Edit to add: Oh! Wasn't certain if the port was the same or not, my apologies.
  4. I went ahead and took a look at the guide you suggested, Shinryuu. I haven't had the opportunity to implement the code yet because I'm not certain what the port for the database would be. I'm searching through phpMyAdmin but I can't seem to find it.
  5. Hello again, I'm having issue with the following code: use DBI use strict; my $driver = "mysql"; my $database = "TESTDB"; my $dsn = "DBI:$driver:database=$database"; my $userid = "testuser"; my $password = "test123"; my $dbh = DBI->connect($dsn, $userid, $password ) or die $DBI::errstr; At first I thought it was because I lacked the necessary Perl module for it, so I ended up installing Apache::DBI but when I checked the installed Perl modules I saw the standard DBI was included. I commented everything after "use DBI" but the error persists, which leads me to believe that it is something related with the lack of a module. However, all of the documentation I've read so far points to just needing DBI. Does anyone know what I'm missing? Once again, thank you for your time.
  6. What I'm attempting to do is create a takesurvey.pl page that will read the HTML file. Unless I'm horribly mistaken, which so far I seem to have made every single textbook mistake out there, it should be something similar to what is explained on this tutorial: http://www.tizag.com/perlT/perlfileopen.php
  7. That makes sense. Thank you kindly for your time.
  8. Apparently I somehow had managed to change the cgi-bin permits, even though I don't recall doing such a thing. You were right about the DOS line endings with Notepad, I created a new file directly with Heliohost's editor transcribed the code and voila! Issue resolved. I do have another question if you don't mind my constant asking. I uploaded the file survey.html into both the cgi-bin and the main directory. The main directory one functions perfectly but the cgi-bin one is still giving me errors. Here are the links: cgi-bin: http://edam.heliohost.org/cgi-bin/survey.html main directory: http://edam.heliohost.org/survey.html I'm wondering what the error could be. The files are identical, both typed in notepad but the MD one works perfectly while the other one doesn't. I figure if it was notepad giving issues, wouldn't the two of them reflect the same error?
  9. Thanks so much for the help offered so far. I have actually set the permissions to 7-5-5 on the file, I have no idea how exactly to do that on the cgi-bin itself. The file itself seems to be uploading correctly. I'm writing it in notepad but still checking it using the code editor Heliohost offers since I read that sometimes additional characters cause issue. Edit: Nevermind, found where to change the permissions for the cgi-bin. Still getting the same error.
  10. I'm completely stumped then. I've edited the file to a very simple "Hello, Perl!" script. #!/usr/bin/perl print "content-type: text/html \n\n"; #The header print "Hello, Perl!"; No idea why it's not functioning. I also uploaded another document into the cgi-bin and it's giving me a 500 error. However, I uploaded it to the main directory and it's working fine.
  11. That's actually the error I'm getting. http://edam.heliohost.org/cgi-bin/takesurvey.pl I'll have to take a look at the code then . Speaking in theory terms, would a user be able to access a direct link to something stored within the cgi-bin, even if the cgi-bin itself gives the 400 error?
  12. I've tried that as well and I'm getting an error. Since this is my first time programming in Perl I'm not sure if the error is due to my code or the fact that cgi-bin access is forbidden.
  13. Hello, I've been trying to access my cgi-bin but I'm getting the following message: Forbidden You don't have permission to access /cgi-bin/ on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. So far I've tried the suggestion made by xaav in this thread. I've tried all types of Indexing options in the Index manager but none seem to allow me access to the bin. I'm trying to try out my very first perl script and from what I've read it needs to be uploaded directly into this bin. Thanks for any input you may offer.
×
×
  • Create New...