cgi on local windows and remote linux

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Postby Joe_Austin » 20. March 2008 12:46

Yes , I read that post , and it sounds like it would work for the shebang issue.

The issue that requires the script alias is the simple issue of calling the script from any .html page. On my remote server the scripts are contained in /cgi-bin/ in the site folder. On xampp the cgi-bin is under the server folder and would require a different reference. One that I would have to change before uploading. So even under /htdocs I would need the script alias, or have to change my script calls on the remote server for each page that has one.
Joe_Austin
 
Posts: 21
Joined: 14. March 2008 21:55

Postby Milligan » 20. March 2008 12:56

Last edited by Milligan on 17. July 2008 05:13, edited 1 time in total.
Milligan
 
Posts: 136
Joined: 03. March 2008 06:23

Postby Joe_Austin » 20. March 2008 14:57

Well, I moved the site to /htdocs , and without making any changes the site loaded (as expected) and my formmail script began to execute from the sites own /cgi-bin/.

This is a change from the old (1.5) installation that would try to download the .cgi rather than execute it. I guess they made a change to the default configuration. Anyway no script alias seems necessary so that's a relief.

The script would generate a server-500 error until I made the change to the shebang line and the path to the sendmail app.

I may try suggestion about moving perl.exe to a folder that mimics my remote hosts folder structure and matching the shebang line to that so I won't have to change it on each upload. I suppose that would also work for the sendmail.exe?

Sure would like to know why alias won't work though........
Joe_Austin
 
Posts: 21
Joined: 14. March 2008 21:55

Postby Milligan » 20. March 2008 15:14

Last edited by Milligan on 17. July 2008 05:10, edited 1 time in total.
Milligan
 
Posts: 136
Joined: 03. March 2008 06:23

Postby Joe_Austin » 20. March 2008 15:41

Hmmm, those are curious.

I was using Microsoft Word and saving as a text file, and have since switched to UltraEdit.

Those quotes are post installation update so they did not come from a cut and paste.

I'll try recreating the alias reference with normal quotes.
Joe_Austin
 
Posts: 21
Joined: 14. March 2008 21:55

Postby Milligan » 20. March 2008 15:46

Last edited by Milligan on 17. July 2008 05:08, edited 1 time in total.
Milligan
 
Posts: 136
Joined: 03. March 2008 06:23

Postby Joe_Austin » 20. March 2008 21:46

I fixed the funny quotes and now the alias and script alias both work.

If you'll exuse me I have to go fix a hole in a wall and put a bandage on my head.

I can't believe it didn't generate an error of some sort. Once, when I left a space between a quote and a drive letter, Apache wouldn't even start.

Milligan, I owe you a drink.
Joe_Austin
 
Posts: 21
Joined: 14. March 2008 21:55

Postby Milligan » 21. March 2008 00:50

Last edited by Milligan on 17. July 2008 05:07, edited 1 time in total.
Milligan
 
Posts: 136
Joined: 03. March 2008 06:23

Postby Joe_Austin » 21. March 2008 02:08

Will do.
Joe_Austin
 
Posts: 21
Joined: 14. March 2008 21:55

Previous

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 126 guests