Help setting up cgiemail

speedde

Registered
Jul 7, 2005
3
0
151
I've been trying to configure the cgiemail script to work for a very basic form, but I just can't get the action of the form correct. It should be "cgi-bin/cgiecho/template.txt" (where template is located at the root), but I keep getting a 404 error.
I've tried many things but just can't get it to work. Any help would be very appreciated.
 

speedde

Registered
Jul 7, 2005
3
0
151
Thanks but I've gone through those already. One thing tough, when I browse to domainname.com/cgi-bin/cgiemail I see a bunch of nonsense characters. I think it would mean that CGI isn't supported, but it should be. How do activate it?
 

linux-image

Well-Known Member
Jun 8, 2004
1,190
1
168
India
cPanel Access Level
Root Administrator
have u checked if perl is working fine on your server ?

u also need to check the ScriptAlias at the httpd conf file.

another thing is to put up a sample perl scipt and try executing.

as u have said that the u see some junk charecters on screen, i suppose something is happening, and hence would test it with a sample script with exact permissions on the file.
 

speedde

Registered
Jul 7, 2005
3
0
151
I tried a script and got this error message:

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

Apparently something isn't configured correctly. What is this httpd file you are talking about? I cannot find such a file.
 

paralard

Well-Known Member
Mar 2, 2003
114
0
166
Austin Texas
This is what the cgiemail looks like

^?ELF^A^A^A^@^@^@^@^@^@^@^@^@^B^@^C^@^A^@^@^@P<8e>^D^H4^@^@^@<94>B^@^@^@^@^@^@4^@ ^@^F^@(^@^]^@^\^@^F^@^@^@4^@^@^@4<80>^D^H4<80>^D^HÀ^@^@^@À^@^@^@^E^@^@^@^D^@^@^@^C^@^@^@ô^@^@^@ô<80>^D^Hô<80>^D^H^S^@^@^@^S^@^@^@^D^@^@^@^A^@^@^@^A^@^@^@^@^@^@^@^@<80>^D^H^@<80>>^@^@g>^@^@^E^@^@^@^@^P^@^@^A^@^@^@h>^@^@hÃŽ^D^HhÃŽ^D^H°^A^@^@l^B^@^@^F^@^@^@^@^P^@^@^B^@^@^@x?^@^@xÃ^D^HxÃ^D^HÂ*^@^@^@Â*^@^@^@^FD^@^@^@^D^@^@^@^H^A^@^@^H<81>^D^H^H<81>^D^H ^@^@^@ ^@^@^@^D^@^@^@^D^@^@^@/lib/ld-linux.so.2^@^@^D^@^@^@^P^@^@^@^A^@^@^@GNU^@^@^@^@^@^B
 
Last edited:

paralard

Well-Known Member
Mar 2, 2003
114
0
166
Austin Texas
It is not the ScriptAlias for me. I have checked and it is there.....

httpd.conf is located here FYI

/etc/httpd/conf/httpd.conf