Question: Is it possilbe for this to be ran from a USB #562

Closed
opened 2026-02-04 21:01:50 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @ktasper on GitHub (Jan 31, 2018).

Hi,

Is there a way of getting this to run via A USB stick? (Like doku wiki). If so any pointers in setting it up? I have little to no experience with PHP hence the question.

Thanks for making this free!

Originally created by @ktasper on GitHub (Jan 31, 2018). Hi, Is there a way of getting this to run via A USB stick? (Like doku wiki). If so any pointers in setting it up? I have little to no experience with PHP hence the question. Thanks for making this free!
Author
Owner

@Shackelford-Arden commented on GitHub (Jan 31, 2018):

Seems like DokuWiki is compiled into a binary package, which makes it easier to be able to run off of the USB. As BookStack is not compiled into binary packages, my assumption is no.

Now, you could install BookStack on a virtual machine and store it on the USB, which would achieve a similar setup, just you'd be dependent on the software you used to create the virtual machine (VMWare, VirtualBox, KVM, etc).

Other than that I'd think there wasn't much of an option for running it off of a USB.

If there are other ways, hopefully someone else can point them out :)

@Shackelford-Arden commented on GitHub (Jan 31, 2018): Seems like DokuWiki is compiled into a binary package, which makes it easier to be able to run off of the USB. As BookStack is not compiled into binary packages, my assumption is no. Now, you could install BookStack on a virtual machine and store it on the USB, which would achieve a similar setup, just you'd be dependent on the software you used to create the virtual machine (VMWare, VirtualBox, KVM, etc). Other than that I'd think there wasn't much of an option for running it off of a USB. If there are other ways, hopefully someone else can point them out :)
Author
Owner

@domainzero commented on GitHub (Jan 31, 2018):

I would say you're probably out of luck here unless you use docker containers or something. DokuWiki doesn't use a database so it's possible to just feed it into a PHP interpreter and have it run. All the files are "flat" and are stored as text so even without a PHP interpreter and web server your files are still readable.

BookStack, however, requires a relational database in addition to a PHP interpreter and web server. All your pages are entered into the relational database as a new record in a table and aren't immediately retrievable unless the database is running.

Until a flat file solution or something like a SQLite database is implemented you probably won't be able to just run this off a USB.

Hopefully that made sense.

@domainzero commented on GitHub (Jan 31, 2018): I would say you're probably out of luck here unless you use docker containers or something. DokuWiki doesn't use a database so it's possible to just feed it into a PHP interpreter and have it run. All the files are "flat" and are stored as text so even without a PHP interpreter and web server your files are still readable. BookStack, however, requires a relational database in addition to a PHP interpreter and web server. All your pages are entered into the relational database as a new record in a table and aren't immediately retrievable unless the database is running. Until a flat file solution or something like a SQLite database is implemented you probably won't be able to just run this off a USB. Hopefully that made sense.
Author
Owner

@ktasper commented on GitHub (Jan 31, 2018):

Cheers!

@ktasper commented on GitHub (Jan 31, 2018): Cheers!
Author
Owner

@lommes commented on GitHub (Feb 1, 2018):

Everything that @domainzero wrote is correct, but it should be usable with a portable solution (xampp, easyphp, ...)

But it is not as easy as a compiled version since you will have to setup everything in the webserver and database manually

@lommes commented on GitHub (Feb 1, 2018): Everything that @domainzero wrote is correct, but it should be usable with a portable solution (xampp, easyphp, ...) But it is not as easy as a compiled version since you will have to setup everything in the webserver and database manually
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#562