IPB

Welcome Guest ( Log In )

 
Reply to this topicStart new topic
> Referencing Scripts Via The Netsolhost.com Path
Smokey_Joe
post Aug 10 2008, 09:14 PM
Post #1





Group: Verified NS Member
Posts: 2
Joined: 10-August 08
Member No.: 1,856



I have a perl script that I am referencing for a mail form placed in my accounts cgi-bin folder.
(path = ROOT/cgi-bin/myscript.pl) I have set permissions on the file as rwxr-xr-x (755) and the folder is the NetworkSolutions.com default at (2775) and I have correctly set my sendmail path to "/usr/sbin/sendmail"

Since my domain name points into my /htdocs/ folder, I obviously cant point my form action to the script normaly. It is my understanding that in this case I am supposed to use the (#).netsolhost.com path provided on my FTP account manager page.

So currently I am using:
<form method="post" action="http://02b0103.netsolhost.com/cgi-bin/myscript.pl">
to point to my script.

However I am still getting a 500 Internal error...? am I doing something incorrect?
Go to the top of the page
 
+Quote Post
pkuprionas
post Aug 11 2008, 09:45 AM
Post #2





Group: Administrators
Posts: 26
Joined: 2-June 08
Member No.: 1,221



QUOTE (Smokey_Joe @ Aug 10 2008, 10:14 PM) *
I have a perl script that I am referencing for a mail form placed in my accounts cgi-bin folder.
(path = ROOT/cgi-bin/myscript.pl) I have set permissions on the file as rwxr-xr-x (755) and the folder is the NetworkSolutions.com default at (2775) and I have correctly set my sendmail path to "/usr/sbin/sendmail"

Since my domain name points into my /htdocs/ folder, I obviously cant point my form action to the script normaly. It is my understanding that in this case I am supposed to use the (#).netsolhost.com path provided on my FTP account manager page.

So currently I am using:
<form method="post" action="http://02b0103.netsolhost.com/cgi-bin/myscript.pl">
to point to my script.

However I am still getting a 500 Internal error...? am I doing something incorrect?


You do not need to use the netsolhost.com address to reference your script - you can simply use your domain name.

I've uploaded a test script I found via a search and set the permissions to 755 (the form mail script you have there now is set to 664).

http://windowworldofsj.com/cgi-bin/test.pl

Also make sure you have the Perl path set correctly, see this post:

http://forums.networksolutions.com/php-and...perl-t1107.html

I hope that helps.
Go to the top of the page
 
+Quote Post
Smokey_Joe
post Aug 11 2008, 11:42 AM
Post #3





Group: Verified NS Member
Posts: 2
Joined: 10-August 08
Member No.: 1,856



QUOTE (pkuprionas @ Aug 11 2008, 10:45 AM) *
You do not need to use the netsolhost.com address to reference your script - you can simply use your domain name.

I've uploaded a test script I found via a search and set the permissions to 755 (the form mail script you have there now is set to 664).

http://windowworldofsj.com/cgi-bin/test.pl

Also make sure you have the Perl path set correctly, see this post:

http://forums.networksolutions.com/php-and...perl-t1107.html

I hope that helps.


Hello pkuprionas,

Thanks for the reply, I will try it as soon as I can using the regular domain name.

As to the permissions on my file, yes I uploaded that version last night after making some changes but I am currently stuck unable to change the permissions on my script since as you my have noticed, there is no "fileman.cgi" in my cgi-bin folder. So I can't use the FTP file manager to change them till it gets put back in there. Hopefully tech support can get to that soon.

regarding the path to perl, the only path requested by my script is to the sendmail program which I have set /usr/sbin/sendmail.
Go to the top of the page
 
+Quote Post
pkuprionas
post Aug 11 2008, 12:32 PM
Post #4





Group: Administrators
Posts: 26
Joined: 2-June 08
Member No.: 1,221



QUOTE (Smokey_Joe @ Aug 11 2008, 12:42 PM) *
Hello pkuprionas,

Thanks for the reply, I will try it as soon as I can using the regular domain name.

As to the permissions on my file, yes I uploaded that version last night after making some changes but I am currently stuck unable to change the permissions on my script since as you my have noticed, there is no "fileman.cgi" in my cgi-bin folder. So I can't use the FTP file manager to change them till it gets put back in there. Hopefully tech support can get to that soon.

regarding the path to perl, the only path requested by my script is to the sendmail program which I have set /usr/sbin/sendmail.


The path to Perl is the first line of ANY Perl script - without that being set correctly the script will not know where to find the Perl executables.

I have reinstalled your fileman.cgi - you can also use a FTP application if you wish - you can find links to some suggested programs here on the forums - they too will allow you to change the file permissions.

Let us know how it goes!
Go to the top of the page
 
+Quote Post
Karen55
post Aug 17 2008, 04:52 PM
Post #5





Group: Verified NS Member
Posts: 1
Joined: 17-August 08
Member No.: 1,991



QUOTE (pkuprionas @ Aug 11 2008, 01:32 PM) *
The path to Perl is the first line of ANY Perl script - without that being set correctly the script will not know where to find the Perl executables.

I have reinstalled your fileman.cgi - you can also use a FTP application if you wish - you can find links to some suggested programs here on the forums - they too will allow you to change the file permissions.

Let us know how it goes!



Paul -
I have been reading your reponses about the Perl script for a form. I have done everything you suggested here and still get the internal server error. My site is www.redriverfamily.com The script is called forms.pl. Perhaps you can help?
Thanks,
Karen
Go to the top of the page
 
+Quote Post
pkuprionas
post Aug 17 2008, 05:29 PM
Post #6





Group: Administrators
Posts: 26
Joined: 2-June 08
Member No.: 1,221



QUOTE (Karen55 @ Aug 17 2008, 05:52 PM) *
Paul -
I have been reading your reponses about the Perl script for a form. I have done everything you suggested here and still get the internal server error. My site is www.redriverfamily.com The script is called forms.pl. Perhaps you can help?
Thanks,
Karen


Karen,

You had two issues:

1) You need to have a #! in front of the Perl path on the first line (that is the Perl syntax)

2) On your subject line you were missing the single quotes for the variable text.

I left the original file on the server as "original-forms.pl" so you can compare.

I didn't actually submit anything but I was redirected to your "thank you" page when I ran the script.

You should be set to go!
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
Tags
No Tag inserted yet

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

RSS Lo-Fi Version    Network Solutions © 2008 Time is now: 8th January 2009 - 09:03 PM
Domain Names | Web Hosting | Web Design | Shopping Cart Software | Online Marketing | SSL Certificates