pc micro systems
 


Home
EleBBS FAQ
 
 
 
 
 

  How To fix SQL and WALL.PAS issues in EleBBS under Linux
   By Anthony Rico


 
 
From: Anthony Rico [mailto:xtcbox [@] earthlink.net] 
Sent: Friday, March 02, 2012 5:18 AM
To: elebbs [@] thebbs.org
Subject: EleWeb: FW: eleweb src setup linux and apache2
Download the attachments here: 
ftp://pcmicro.com/4_authors/elevator/elebbs_linux_update_xtc.zip
 
Attached are the SQL and bug fixes for WALL.PAS which includes array declaration so it compiles
and MENUSYS.PAS which fixes exits with an unhandled exception occurred at $0808715d when exiting
ftp config in eleconfig. ELEBBS.tar.bz2 contains the updated libs and source file so ELEBBS
can be compiled with sql.
 
This is based on: elebbs_lnxsrc-20100529.tar.bz2
 
*note not sure if sql is supported yet. Haven’t had time to setup a database and test wall
“the wall” when your logged in eleweb.
 
MENUSYS.PAS should be overwritten in /usr/src/elebbs/src/elebbs
WALL.PAS should be overwritten in /usr/src/elebbs/src/elebbs/cgi/default
 
bbs:/usr/src/elebbs/etc# cat fpc_incl.lst
-Fisrc/apro;
-Fisrc/elecom/src;
-Fisrc/elebbs/elebbs;
-Fisrc/elebbs/mkmsg;
-Fisrc/elebbs/dummy/dos;
-Fisrc/elebbs/dummy/dos;
-Fisrc/elebbs/mkmsg;
-Fisrc/elebbs/32bit;
-Fisrc/elebbs/gencfg;
-Fisrc/elebbs/baseinc;
 
bbs:/usr/src/elebbs/etc# cat fpc_unit.lst
-Fusrc/apro;
-Fusrc/elecom/src;
-Fusrc/elebbs;
-Fusrc/elebbs/mkmsg;
-Fusrc/elebbs/32bit;
-Fusrc/elebbs/gencfg;
-Fusrc/elebbs/csys/;
-Fusrc/elebbs/inet/source;
-Fusrc/elebbs/cgi;
-Fusrc/elebbs/mysql;
-Fusrc/elebbs/elexer;
-Fusrc/elebbs/baseinc;
 
Edit fpc_incl.lst and with the proper paths.
 
cp elebbs.tar.bz2 /usr/src/elebbs/src/elebbs/
cd /usr/src/elebbs/src/elebbs/mysql/
rm *
cd ..
bzip2 –d elebbs.tar.bz2
tar xvf elebbs.tar
cd /usr/src/elebbs/src/elebbs/baseinc
 
edit compiler.nic to the following:
{$DEFINE ISCGI} to {.$DEFINE ISCGI}
Might need to change {DEFINE elx_MYSQL} to {.DEFINE elx_MYSQL} * don’t think you need this
 
cd ../../../bin/
./build.sh
 
cd..  * creates eleweb hopefully next source release its included in build.sh
fpc -B -Sd -CX -O1 -gl -FEout/lnx -FUout/lnx/units.fpc src/elebbs/cgi/eleweb.pas @etc/fpc_unit.lst @etc/fpc_incl.lst
 
all new binaries should be in /usr/src/elebbs/out
 
Download the attachments here:
ftp://pcmicro.com/4_authors/elevator/elebbs_linux_update_xtc.zip

Instead of doing all that you can grab the source unofficial source here
https://www.xtcbox.org/elebbsrc.ar.gz
-----------------------------------------------------------------------------
 
In Elconfig I pointed

EleWEB Html: /home/bbs/ele/web/html
 
And
 
EleWEB ELM: /home/bbs/ele/web/script.
 
I copied /usr/src/elebbs/src/elebbs/cgi
 
to
 
/home/bbs/ele/web/


COMANDS Bash:
cp /usr/src/elebbs/src/elebbs/cgi /home/bbs/ele/web
rm *.pas
cd /home/bbs/ele/web
mkdir cgi-bin
cp ../../eleweb eleweb.exe “eleweb for linux needs to be renamed to eleweb.exe”
mv default script
cd script
cp ../../elexer
for i in *.pas; do elexer –c ; done
 
 
 
My Linux configuration is as follows for Apache 2.x
 
#DirectoryIndex:

DirectoryIndex index.html index.php login.htm

 
AddHandler cgi-script cgi pl

NameVirtualHost *

   SetEnv ELEBBS /home/bbs/ele
   ServerAdmin xtcbox@earthlink.net
   DocumentRoot /usr/local/apache/htdocs/web
   ServerName www.xtcbox.org
   ServerAlias xtcbox.org
   ScriptAlias /cgi-bin/ "/home/bbs/ele/web/cgi-bin/"
   SetEnv ELEBBS /home/bbs/ele
   
     AllowOverride None
     Options +ExecCGI
     Order allow,deny
     Allow from all
   
   ErrorLog logs/xtcbox.err
   CustomLog logs/xtcbox.cus common

 

EleBBs runs under user and group: bbs.bbs
Apache runs as user nobody and group nogroup: nodoby.nogroup
 

The ele directory needs to have read write and excute permissions by user and group: Chmod 775 /home/bbs/ele

“this fixes the error in firefox that tries to download eleweb.exe and also allows access to elebbs config files”

 
Your BBS directories will need to be writable by the Apache process: usermod -G bbs nobody
and just in case: usermod -G nobody bbs



 

 

Hits since April 16 2002:



Be sure to read our Disclaimer

Return to the EleBBS FAQ

 

 

Copyright © 1999 - 2004 pc micro systems, inc.