Installation in Linux
Because DBFree is created to run in Windows you need to install Wine. Wine is the Windows emulator for Linux. In Ubuntu you can find it under the 'Software Center'.
Where is my c-drive?
After installing Wine nothing much happens. So where should you put DBFree on your c-drive? By the way..where actually IS the c-drive? Don't worry, this is the way to find it:
- Go to the Terminal in Linux and activate it. You will get a cursor that looks something like #root depending on your Linux distribution.
- Typ in cmd. Watch out: it must be typed in lowercase and press Enter. Maybe Wine will ask you to install some packages that aren't there, you can install them but you don't really need them for DBFree.
- Now your cursor will look something like z:\root. Wine is activated congratulations!
- Now typ in c: and you're in the root of your c-drive.
Your 'fake' c-drive in linux is (mostly) in a hidden directory under your home-directory. The directory to look for is .wine. Under that directory is a directory c_drive.
Everytime you have to start up the server under Linux you have to type in the commands above. These two batchfiles will help. Place c.bat in root and server.bat in .wine/c_drive:
Maybe you have problems with installing Wine or you don't know how to do it. If you have an old computer lying around you can install 4mLinux on it (I sometimes call this one 'Anorexia Linux'). You can really easily install Wine here. For website-development it is a great distribution because it has Apache, PHP and SQL pre-installed. This distribution is supersmall so very fast on old hardware. I can recommend it.
In Linux it is difficult to run the DBFree Control Center
, you don't really need it anyway so forget about it.
Installing DBFree manually
- Download from the DBFree Website DBFree without installer .zip.
- Move this file to your c-drive under .wine. Unpack this file.
- You should now have a new directory called MAXSIS under your c-drive. That's all folks!
- Well, that's not all really. If you have a firewall you have to manually open the port 8088
because that's the port the server uses. If you want to use another port you can change the port in the Civet Server Configuration file.
Installation in Windows
Installing in Windows is easy. Just download the installer and run it. Maybe you get some warnings in Windows but you can ignore them. If for some reason the installation is blocked by Windows (Thank you Microsoft.. duh) you have to do a manual install.
After installation there's a DBFree icon on your Desktop for the Control Center
. Also there is a link to the first time setup batchfile. Activate it by double-clicking on it.
Location of the DBFree files
I assume that you installed DBFree under its default location, that is the root of the system disk, and precisely in
c:\maxsis\dbfreev42. If you have chosen a different location be sure to amend the examples accordingly.
All your data will be kept in c:\maxsis\dbfreev42\db
(unless you have changed manually this setting in the MaxScript configuration file). Databases and tables cannot be hosted on a networked drive, only on physical disks (unless you have a cloud-based configuration). This folder is known as DB ROOT
Location of your website
All your web pages will be kept in c:\maxsis\dbfreev42\web
(unless you have changed manually this setting in the Civet configuration file).This folder is known as WEB ROOT
You can have more than one website, but DBFree can run only one website at a time. In the configuration file of the server you can have a list of website-directories, and activate the one you will be working on. More about this is explained in the Server section of this manual.
Location of the Civet Web Server
The DBFree server civetweb32.exe
is located in c:\maxsis\dbfreev42\SERVER
. The configuration file (textfile) is civetweb.conf
Portable applications directory (APP BOX)
All your DB App (and in general all applications intended to be portable) should stay in separate subfolders of c:\maxsis\dbfreev42\web\apps
. This folder is referred in DBFree V42 as APP BOX
You don't really need the app box to create websites when you start. First get to know DBFree and create a standard website.
Location of the DBFree Libraries
DBFree uses the library file free.lib
and it's located in c:\maxsis\dbfreev42\lib
. That's important to know because you must update free.lib sometimes. Updating DBFree is easy: just download free.lib from the DBFree website and place it in the lib directory.
Location of the DBFree files in a schedule