Message: "Sorry...cant run from here"

D

Dano

I'm building two simple sites (with on web-hosting provider) . On both sites
I use the same .PL file to run a simple email-script. On one site it works
fine, but on the other site I get the message "Sorry,... cant run from
here". The CHMOD-settings are correct in both directories (755). Firewall is
off.

How is possible?

url: http://www.stalvossen.nl/form_contact.html
 
K

Kim André Akerø

Dano said:
I'm building two simple sites (with on web-hosting provider) . On both sites
I use the same .PL file to run a simple email-script. On one site it works
fine, but on the other site I get the message "Sorry,... cant run from
here". The CHMOD-settings are correct in both directories (755). Firewall is
off.

How is possible?

url: http://www.stalvossen.nl/form_contact.html

In Apache, CGI scripts can only run in your cgi-bin directory unless the
ExecCGI option is set for other directories.

You could try to override this (if your webhost has allowed this in the
primary Apache configuration file) in a .htaccess file in your webroot:

Options +ExecCGI

But as I said, this may or may not work if the main configuration file
doesn't allow you to override this option with .htaccess.
 
H

Hywel

I'm building two simple sites (with on web-hosting provider) . On both sites
I use the same .PL file to run a simple email-script. On one site it works
fine, but on the other site I get the message "Sorry,... cant run from
here". The CHMOD-settings are correct in both directories (755). Firewall is
off.

How is possible?

url: http://www.stalvossen.nl/form_contact.html

Perhaps your host only permits CGI to be run from the cgi-bin (or
equivalent) directory. Is the script in the same location on the
working URL?
 
D

Dano

Hywel said:
Perhaps your host only permits CGI to be run from the cgi-bin (or
equivalent) directory. Is the script in the same location on the
working URL?

Problem is solved. In the .PL file I didn't changed the domain adress (to
stalvossen.nl) from the previous one I copied it from.

thanks
Daniel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top