This is what I use to write plugins, test things, write patches etc.
Built to assist with development, assumes you have or can clone osticket source into folder osticket
Based on ubuntu/xenial64
with Apache2, PHP 7.0 (libapache) and MySQL Server (5.7)
osticket
Either from source: git clone https://github.com/osTicket/osTicket osticket
, or Release: http://osticket.com/downloadvagrant up
When it's done, and you see the message: Ready to Rock!
, it should have a link, like http://localhost:8080 click that to start the install process.
If you've installed it, and configured it, and made a bunch of test tickets etc, simply export your database into the project root folder as dbname.sql
where dbname is the name of your database. The provision script will detect it and install the database. If you also have an ost-config.php file inside /include/ then it will skip copying it.
vagrant plugin install vagrant-proxyconf
- Lets you use a local proxy server to cache install packages etc. Autoconfigures apt. link to repovagrant plugin install vagrant-vbguest
- Ensures the vm has the Virtualbox Guest Additions installed, and keeps them up to date. link to repoXdebug is enabled and installed by default (so, don't use this in production) Simply run a compatible debugger IDE on your host machine to start debugging! (it will connect back automatically, so, have a debugger using DBGP port 9000, like Eclipse)
Open the folder "logs" in the project folder, or /var/www/html/logs on the vagrant VM
Run command vagrant destroy
then vagrant up
Regular rebuild (fast) vagrant up --provision
You shouldn't need to rebuild it often, unless you're changing the provision script.
I'm thinking of checking for the osticket folder, and if not present, downloading the source automatically. See if anyone is keen.