Help needed to configure Apache with Run Server

Deploying to Linux? Get penguinated here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
bangkok
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 937
Joined: Fri Aug 15, 2008 7:15 am

Help needed to configure Apache with Run Server

Post by bangkok » Mon Jul 12, 2010 10:28 pm

I've installed the latest Mint. And then Apache.

Apache is working fine (with a regular html file). And my irev file is really simple

Code: Select all

<title>HELLO</title>
< ? rev
put "hello world"
> rev
Eventually, I use the virtual host conf file provided as a sample with Run Revserver.

I got the error 500 within Firefox, and within the Apache error log I got :

[Mon Jul 12 23:03:37 2010] [error] [client 127.0.1.1] Premature end of script headers: polo3.irev
[Mon Jul 12 23:03:37 2010] [debug] mod_deflate.c(615): [client 127.0.1.1] Zlib: Compressed 613 to 380 : URL /cgi-bin/revserver/polo3.irev

Someone could help me ? I'm totally newbie with Linux and apache configuration.

paul_gr
Posts: 319
Joined: Fri Dec 08, 2006 7:38 pm
Location: Blenheim, New Zealand

Re: Help needed to configure Apache with Run Server

Post by paul_gr » Tue Jul 13, 2010 3:24 am

Tag style is similar to that of PHP.
Try

<title>HELLO</title>
<?rev
put "hello world"
?>

Paul

bangkok
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 937
Joined: Fri Aug 15, 2008 7:15 am

Re: Help needed to configure Apache with Run Server

Post by bangkok » Tue Jul 13, 2010 11:56 pm

I've reinstalled, fresh :
-Ubuntu 9.10 desktop
-Apache2

I've created a virtual host, replica of the one given with RunRev Server as an example, along with all the proper directories :

Code: Select all

<VirtualHost *:80>
        DocumentRoot /home/mark/testsite/public_html
        ServerName testsite.org
        ErrorLog /home/mark/testsite/errorlog
        TransferLog /home/mark/testsite/transferlog
        LogLevel debug

        <Directory /home/mark/testsite/public_html>
                AllowOverride All
                Options MultiViews
                Order allow,deny
                Allow from all
                AddHandler irev-script .irev
                Action irev-script /cgi-bin/revserver
        </Directory>

        <Directory /home/mark/testsite/cgi-bin>
                Options ExecCGI
                Order allow,deny
                Allow from all
        </Directory>

        ScriptAlias /cgi-bin/revserver /home/mark/testsite/cgi-bin/revserver
</VirtualHost>
With a test.html file located in /home/mark/testsite/public_html/ everything is fine.

But with my polo2.irev file, then I got 3 error messages, 2 in the /home/mark/testsite/errorlog, the other one in the apache error log (/

/home/mark/testsite/error.log
[Wed Jul 14 00:44:36 2010] [error] [client 127.0.1.1] Premature end of script headers: polo2.irev
[Wed Jul 14 00:44:36 2010] [debug] mod_deflate.c(615): [client 127.0.1.1] Zlib: Compressed 613 to 379 : URL /cgi-bin/revserver/polo2.irev


/var/log/apache2/error.log
[Wed Jul 14 00:44:36 2010] [error] (8)Exec format error: exec of '/home/mark/testsite/cgi-bin/revserver/polo2.irev' failed

i'm totally lost.

bangkok
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 937
Joined: Fri Aug 15, 2008 7:15 am

Re: Help needed to configure Apache with Run Server

Post by bangkok » Thu Jul 15, 2010 10:06 pm

Problem solved ! :D
It took some times, though.

There were 2 problems :

-a missing library
-and a wrong VirtualHost config file, given in the ReadMe File (of RunServer)

First : I use Ubuntu 10.4. A fresh install, with all the updates, and Apache.

The command

Code: Select all

ldd revserver
(the binary) showed that the library libpcre.so.0 was missing.

I did :

Code: Select all

sudo ln -s /lib/libpcre.so.3.12.1 /lib/libpcre.so.0
And then, I used this VirtualHost config file(found in a tutorial)

[in bold, the lines added]
[in italic, the lines changed]

<VirtualHost *:80>
ServerAdmin votre-mail@robot1.fr
ServerName robot1.fr
ServerAlias www.robot1.fr

DocumentRoot /home/robot/testsite
<Directory />
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
AddHandler irev-script .irev
Action irev-script /cgi-bin/revserver

</Directory>

ScriptAlias /cgi-bin/ /home/robot/testsite/cgi-bin/
<Directory "/home/robot/testsite/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/access.log combined

Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>

</VirtualHost>

Post Reply

Return to “Linux”