CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Perl

 Perl shows source During Live Page - Ignore previous topic

Print topic Send  topic

Author Message
azee

Posts: 3
Posted: 09/25/2004, 2:28 PM

I'm using codecharge studio 2.2 and if I publish using PHP

and view the live pages is OK but if I change to PERL, when I

try to see the page, it shows the source of it instead of the

page itself.

Is this related to perl or codecharge ??
When I test perl through localhost it seems OK.

Any help would be appreciated.

Thanks ..................... Azee

Windows XP-SP1

Apache/2.0.50 (Win32)
mod_perl/1.99_13
Perl Version: 5.008003
v5.8.3 PHP/5.0.1
View profile  Send private message
peterr


Posts: 5971
Posted: 09/26/2004, 4:05 AM

This problem is not related to CCS. Looks like you don't have Perl installed.
localhost is just your Web server, so it will work without Perl, PHP, or anything else. Web servers usually serve HTML only, while screipting language like Perl needs to process Perl programs.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Azee
Posted: 09/26/2004, 8:02 PM

Hello peterr

Thank you for your help.
When I said "localhost", I meant that I tested the perl setup by entering
the URL
"http://localhost/cgi-bin/enviroment.cgi", shows the server variables
properly and
this works whith both .cgi and .pl extensions without problems.

The problem that I found, was that the codecharge data properties were
showing
"PHP file extensions = .php". I just started with code charge trial but I
thought that
this setting was correct

After revising the configuration many times, I decided to change "PHP file
extensions
= .cgi" since I am publishing with Perl Templates and everything in the
publish folder
had a .php extension.

Now instead of seeing the source of the chosen page when doing a Live Page,
I see
an error related to the server which indicates that I'm on the right track.

Am I wrong ???. I could not find any reference to this property when
publishing with
Perl Templates.

Attached is the server error message. I know this message is mostly related
to file
permissions on UNIX but I'm working within windows XPsp1.

Any ideas would be appreciated.

begin error ========================

Server error!
The server encountered an internal error and was unable to complete your
request.
Error message:
Premature end of script headers: Login.cgi
If you think this is a server error, please contact the webmaster.

Error 500
localhost
9/26/2004 10:08:51 PM
Apache/2.0.50 (Win32) mod_perl/1.99_13-dev Perl/v5.8.3 mod_python/3.1.3
Python/2.3.2 PHP/5.0.1

end error =========================

Again thank you for your help


Azee

peterr


Posts: 5971
Posted: 09/27/2004, 3:56 AM

Sorry, I am not familiar with these topics. You may contact our support directly if no one else responds here.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Azee
Posted: 09/27/2004, 6:17 AM

Hi Peter
Sorry that previous message got broken up and was too long.

Tried a Perl script on localhost, Perl is responding OK.
Publishing with Perl and templates.

Now when I try a Live Page I get this error:

begin error ========================

Server error!
The server encountered an internal error and was unable to complete your
request.
Error message:

Premature end of script headers: Login.cgi
If you think this is a server error, please contact the webmaster.

Error 500

localhost
9/26/2004 10:08:51 PM
Apache/2.0.50 (Win32) mod_perl/1.99_13-dev Perl/v5.8.3 mod_python/3.1.3
Python/2.3.2 PHP/5.0.1

end error =========================

Again thank you for your help

Azee

Last Hero
Posted: 09/28/2004, 12:23 AM

By default apache conf you can place perl files only on cgi-bin directory,
if you want publsih project in other directory please read some docs.
About error, please look in error.log file
Azee
Posted: 09/30/2004, 7:31 PM

Thank you for all your answers

Sometimes I get over my head with my projects, and this is one of
of those times trying to learn CodeCharge and perl.

The fact remains that I can run other scripts on the Apache server,
but Code Charge will still not publish a Live Page without producing
an error ; and below is the error :::

Server error! 500
The server encountered an internal error and was unable to complete your
request.
Error message:
Premature end of script headers: Login.cgi
If you think this is a server error, please contact the webmaster

My conclusion is that if all my other scripts " outside CodeCharge "
do work, the problem is with CodeCharge, I just can not find where.

Than you again. .................. Azee



Fake E-mail
Posted: 10/02/2004, 7:09 AM


Hi.

Please check that:

1. Your pages are executable on server, if it is UNIX.
2. Pages are generated for proper OS: Properties->Data->Output File Format
3. Existing perl path is set: Properties->Data->Perl Path
4. You can run scripts manually (well, this may be not possible to check
if you have no access, eg if you are using hosting without shell access, but
you can try some trick, eg run CCS script from your own script, like
print "Content-Type: text/plain\n\n";system("./Login.cgi 2>&1");exit(0); ).

If it does not help, you should check Apache server error log - there
is sometimes very useful message, except "Premature end of headers".
If suexec is enabled on server, you may also want to check suexec_log.

Good luck!


Azee <azeecoe@hotmail.com> wrote:
> Thank you for all your answers
>
> Sometimes I get over my head with my projects, and this is one of
> of those times trying to learn CodeCharge and perl.
>
> The fact remains that I can run other scripts on the Apache server,
> but Code Charge will still not publish a Live Page without producing
> an error ; and below is the error :::
>
> Server error! 500
> The server encountered an internal error and was unable to complete your
> request.
> Error message:
> Premature end of script headers: Login.cgi
> If you think this is a server error, please contact the webmaster
>
> My conclusion is that if all my other scripts " outside CodeCharge "
> do work, the problem is with CodeCharge, I just can not find where.
>
> Than you again. .................. Azee
>
>
>
>
Lee
Posted: 11/11/2004, 8:03 AM

i was unable to start codecharge 2.3 , there was an error from Windows saying that "Faulting open application css.exe ..........." But, installation was completed and without any error.
Please advise.
Thx

Lee

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by UltraApps.com  and YesSoftware, Inc.