FreeB-0.13 Install Help

mike-h30 wrote on Sunday, February 03, 2008:

I downloaded freeB-0.13 and placed the extracted files in the same web directory that I have OpenEMR-2.8.3 located.  I am a little puzzled as how to install freeb-0.13. I have been reading Brady’s instructions on the OpenEMR web site.  I am running Suse Linex Enterprise Server 10 SP1, PHP5, MySQL5, and Apache2. It appears that the PERL modules needed are installed on my system. 

I am stuck at step 3 of Brady’s instructions below. I have a question regarding the init.d setup.  A file called “freeb.initd” is included in the downloaded files and is located in my freeb-0.13 directory. I am not sure what to do with this file based on Brady’s instructions. 

Do I move it to etc/init.d and rename "freeb.initd" to just "freeb"? Or do I move it to etc/init.d and leave the name as is "freeb.initd"?

In my etc/init.d directory there are no files matching the "freeb.initd" naming convention (i.e. "somefile.initd")

Thanks.

-Mike

(From Brady’s Instrucions Link at OpenEMR website)

   3.  Configure FreeB as a service
               1. Download freeb file, which is an init.d script. I wrote this file, and it seems to work alright. But I have to say, please use at your own risk. File can be found at: http://bradymd.com/freeb (to download file, you may need to Right-Click the link and select ‘Save Link As…’)

               2. Enter below bolded instructions on command line as root user :

    #log into root
    su

    #move file and change ownership/permissions
    mv /location/to/file/freeb /etc/init.d/
    chown root:adm /etc/init.d/freeb
    chmod 740 /etc/init.d/freeb

    #start service
    service freeb start
    -After ‘before server setup’, just hit ‘enter’ key once to get back to the prompt. If you saw ‘before server setup’, then it worked.

    #configure freeb to start automatically during computer startup
    chkconfig --add freeb

    #You are done installing service, it will now start
    #up automatically during computer start up.
    #If the above service is not working, you can
    #manually start the FreeB server by typing:
    #’/usr/share/freeb/bin/FreeB_Server.pl &’

mike-h30 wrote on Sunday, February 03, 2008:

Also What directory is recommended to place the Freeb files?  My web directory? I currently have it there.

Thanks.

-Mike

bradymiller wrote on Wednesday, February 06, 2008:

hey,
   The init.d scripts are linux distribution dependent. The “freeb” script available at bradymd.com site is for Mandriva, and the instructions are also for Mandriva. The “freeb.initd” distributed with freeb is for Debian(i think). These scripts are basically so that the ‘freeb server’ starts up automatically during boot up.  I’m not sure how SUSE runs its init.d scripts or whether these will work; the name probably doesn’t matter.(I’m not sure about suse, but most linux distributions involve moving script to init.d directory, making it executable, and registering it with OS(chkconfig command in Mandriva)). To start freeb without the init.d script use command ‘/YourPath/freeb/bin/FreeB_Server.pl &’ .
   There is no need to put it into a web directory. In mandriva, I installed it into the /usr/share directory.
-Brady