Apache, Perl and cgi script
I have a calendar program for conference room scheduling. This program is a web based cgi script that has worked on Windows NT for a few years here but now that I finally got SuSE 8 working, I want to move the web server over to the computer with SuSE. My home page works but when I click on the link to open the cgi calendar, I get a server error message. Does anyone have experience with this sort of thing on SuSE? Though I could be wrong, I believe that I have installed the perl for apache module so I think I have everything I need Damon Register
On Wednesday 19 June 2002 15.50, Damon Register wrote:
I have a calendar program for conference room scheduling. This program is a web based cgi script that has worked on Windows NT for a few years here but now that I finally got SuSE 8 working, I want to move the web server over to the computer with SuSE. My home page works but when I click on the link to open the cgi calendar, I get a server error message. Does anyone have experience with this sort of thing on SuSE? Though I could be wrong, I believe that I have installed the perl for apache module so I think I have everything I need
Hmm. Well, knowing *what* error message you get would simplify matters greatly. However, a few things you could check: If you start apache manually from a console (rcapache start) do you get "Perl" in the brackets, indicating that the proper plugin is installed? Does the script you're trying to run have proper permissions set? (read and execute for group "other") Are all directories properly set with read and execute permissions so the web server can actually read the scripts? regards Anders -- `When I use a word,' Humpty Dumpty said in rather a scornful tone, `it means just what I choose it to mean -- neither more nor less.'
Thanks for your reply Anders Johansson wrote:
On Wednesday 19 June 2002 15.50, Damon Register wrote:
I have a calendar program for conference room scheduling. This program is a web based cgi script that has worked
Hmm. Well, knowing *what* error message you get would simplify matters greatly.
Sorry I wasn't more specific.
console (rcapache start) do you get "Perl" in the brackets, indicating that the proper plugin is installed?
I checked and got starting httpd [PERL PHP4]
Does the script you're trying to run have proper permissions set? (read and execute for group "other")
That was it. I forgot about that when I copied the files over to the Linux computer.
Are all directories properly set with read and execute permissions so the web server can actually read the scripts?
Those were right, it was the scripts that had the wrong permissions. Thanks for your help. It works now. To Darrell: yes, the shebang line was correct. To zentara: it was the permissions that were set wrong. The dos line endings were ok. Damon Register
On Wed, 19 Jun 2002 09:50:14 -0400
Damon Register
I have a calendar program for conference room scheduling. This program is a web based cgi script that has worked on Windows NT for a few years here but now that I finally got SuSE 8 working, I want to move the web server over to the computer with SuSE. My home page works but when I click on the link to open the cgi calendar, I get a server error message. Does anyone have experience with
If you are bringing the script from an NT machine, you probably have the wrong line endings for unix. Do a dos2unix conversion on the file. If you want to see if it's the problem, open the script with 'joe' or 'vi', and if you see ^M's at the end of each line, that's your problem. It dosn't ususally bother html pages, because they are not executables, and the browser deals with it.
participants (3)
-
Anders Johansson
-
Damon Register
-
zentara