Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perlscript does not execute !

Status
Not open for further replies.

Lulli

Programmer
Dec 11, 2005
14
SE
I have a perlscript that should handle some login procedures on a server. When I run this script locally on my own computer it works well. When the same script gets invoked from HTML-code (from another server) like the following...

<FORM METHOD="POST" ACTION ="
...then nothing happens-the script just doesn't execute. I do not receive any error messages back from the server either.

I run an apache server on my own computer and I use windows XP pro.

//Thanks
 
Pardon me if I'm preaching to the choir.... but, the first thing I'd look at is permissions. When you run the script from a prompt, the script runs in your environment (PATH, ENV VARIABLES and such). When it runs as a piece of CGI, it is running as the user which the web server is configured to use. In many Apache installs, that would be the user 'httpd'. The 'httpd' user should have very different capabilities on the system from a typical local user (you). So, make sure that the Web server user (maybe 'htttpd') has permissions to execute the file.

'hope this helps

If you are new to Tek-Tips, please use descriptive titles, check the FAQs, and beware the evil typo.
 
I'm suspicious of the /bin directory. Most servers are setup to run scripts from the cgi-bin, if you are using /bin as the directory it has to be setup to run scripts.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top