sly9er
|
| Posted: 04/12/2002, 1:34 AM |
|
Every time I try to use one of these applications I get the old 500 error.
What am I doing wrong here. And all the permissinions ARE set correctly.
I'm running on a Unix / Apache system. I kept the file hierarchy intact,
I have all the .cgi files in the cgi-bin like I am supposed to. Where is
the damn documentation on these applications? All it ever includes is basically
how to set up a data base? What page am I supposed to be browsing to? To get
it to work in my broswer? I have tryed the Online Portal Application, with
and without templates. I have also tried the book store app.
I know how to install a .cgi file. But with these applications, I am getting
nowhere. I also noticed that in the Online portal application w/templates,
the recommended syntax in the read me file for pointing to perl is wrong
for unix.
It says: #!\usr\bin\perl Now I do know this much! The syntax is supposed
to be like: #!/usr/bin/perl (notice the forward, not backward, slashes).
Are these applications not designed for unix systems? Does anybody ever reply
to questions here?
|
|
|
 |
Alex Alexapolsky
|
| Posted: 04/12/2002, 1:57 AM |
|
Let's solve your problemn step by step.
Most 500 errors are caused by incorrect database settings.
1) Make sure that DBI abd DBD drivers for database type you're
trying to connect to are installed
2) Make sure they work ok (may be run some test apps)
3) Make sure DBI connection string and login/password are correct.
See Apache error.log for more information about what errors occur.
|
|
|
 |
Bernie
|
| Posted: 04/12/2002, 6:47 AM |
|
Are you compiling this on windows or UNIX, somtimes when you compile things or download them to a Windows machine it puts in extra characters at the end of lines, there is an option in CodeCharge to create the template in Windows text or UNIX. I run FreeBSD so I always of course choose UNIX.
Bernie--
|
|
|
 |
sly9er
|
| Posted: 04/12/2002, 7:10 AM |
|
This is how I have it connected:
$strConn = "DBI:MySQL:bizplus2000_com2";
$strLogin = "bizplus2";
$strPassword = "21121973";
Does this look right?
I don't have access to my apache error logs.
I browse to the Default.cgi and get a Internal
Server Error
|
|
|
 |
Jon Westfall
|
| Posted: 04/12/2002, 9:30 AM |
|
If you're really frustrated, the output from 'perl whatever.cgi' might help (this assumes you have telnet access to your server). If not, the database connection or permissions are probably the issue. My site runs on Solaris / Apache fine with CodeCharge generated CGI's (www.campusbooknet.com).
Jon.
|
|
|
 |
|