vagrant box for PHP Developers with IonCube Integration for professional web development. Works with Shopware and many other applications and frameworks such as Magento, Oxid 6, Wordpress, Typo3 or Laravel 5.8.
-
Get the latest Versions of Vagrant and Virtual Box
-
clone the latest version and run vagrant up
git clone https://github.com/JarJarBernie/jimmybox.git .
vagrant up
- open 192.168.33.11 in your browser (default PHP Version is 7.3)
(IP can be changed in your Vagrantfile, the "public" directory is your document root)
- tested with Shopware 5.6
- use PHP 7.4 in Shopware
- comes with APCu & IonCube Loader for all PHP Versions
- including Zend Guard Loader for PHP 5.6
- tested with Magento 2.2
- tested with Laravel 7
- tested with Oxid 6.2 (PHP 7.1 - 7.4)
- tested with Oxid 6.1 (PHP 7.0 - 7.2)
- tested with Oxid PE 4.10 CE / PE (PHP 5.6)
- tested with Oxid Enterprise 5.10 (PHP 5.6)
- Ubuntu 20.04 LTS
- VirtualBox Guest Additions
- Apache 2.4 with HTTP/2
- PHP 7.4 FPM
- PHP 7.3 FPM
- PHP 7.2 FPM
- PHP 7.1 FPM
- PHP 7.0 FPM
- MySQL 5.7
- Zend Guard Loader (PHP 5.6)
- IonCube Loader
- APCu
- Redis
- Memcached
- Vim
- Git
- cURL
- GD and Imagick
- imagick-php
- Composer
- Mcrypt
- increased disk size (128GB)
- Hostname: localhost or 127.0.0.1
- Username: root
- Password: root
Jimmybox comes with preconfigured virtual hosts to use multiple PHP Versions from 5.6 to 7.4. Please just edit your local hosts file to use different PHP Versions.
# PHP 7.4
192.168.33.11 jimmy74.com
# PHP 7.3
192.168.33.11 jimmy73.com
# PHP 7.2
192.168.33.11 jimmy72.com
# PHP 7.1
192.168.33.11 jimmy71.com
# PHP 7.0
192.168.33.11 jimmy70.com
# PHP 5.6
192.168.33.11 jimmy56.com
- PHP 7.4: http://jimmy74.com
- PHP 7.3: http://jimmy73.com
- PHP 7.2: http://jimmy72.com
- PHP 7.1: http://jimmy71.com
- PHP 7.0: http://jimmy70.com
- PHP 5.6: http://jimmy56.com
You can use our provisioning template to setup your custom hosts.
- place your hosts.conf files in povisioning/hosts/ and edit them regarding to your needs
- open provisioning/setup/apache.sh and add code to enable/disable your custom hosts. This will ensure that your hosts only will be enabled if the directory exists.
- if needed, copy your SSL certs to provisioning/ssl/ and link it in your custom hosts config file
- restart vagrant with the provisioning flag and your vhosts will get enabled if the vhosts dir exists.
vagrant reload --provision
Please include the following SetHandler directives in your custom vhost as seen in provisioning/hosts/100-myproject.conf. After that, you can simply uncomment the requested line and reload your apache config (sudo service apache2 reload)
<FilesMatch \.php>
SetHandler "proxy:unix:/var/run/php/php7.4-fpm.sock|fcgi://localhost/"
# SetHandler "proxy:unix:/var/run/php/php7.3-fpm.sock|fcgi://localhost/"
# SetHandler "proxy:unix:/var/run/php/php7.2-fpm.sock|fcgi://localhost/"
# SetHandler "proxy:unix:/var/run/php/php7.1-fpm.sock|fcgi://localhost/"
# SetHandler "proxy:unix:/var/run/php/php7.0-fpm.sock|fcgi://localhost/"
# SetHandler "proxy:unix:/var/run/php/php5.6-fpm.sock|fcgi://localhost/"
</FilesMatch>
We have disabled the strict SQL mode for better compatibility with older apps. You can simply enable it doing this:
vagrant ssh
sudo rm /etc/mysql/conf.d/disable_strict_mode.cnf
sudo service mysql restart
In some cases, APCu can cause troubles. You can disable APCu using the following commands
vagrant ssh
sudo apt-get remove php-apcu
sudo service apache2 restart
In Catalina NFS seems to have troubles finding a relative path in your synced folder. You can avoid this if you just use an absolute Path (/Volumes/...)
config.vm.synced_folder "/Volumes/Macintosh HD/Users/your-user/Sites", "/var/www", type: 'nfs', mount_options: ['rw', 'vers=3', 'tcp', 'fsc' ,'actimeo=1']
vagrant share has been removed with Vagrant 2.0. We use ngrok instead to share our boxes. Jimmybox is pre-configured for ngrok.
Get started with ngrok here: https://ngrok.com
You should customize the virtual hosts regarding to your needs
vagrant ssh
cd /etc/apache2/sites-available
# edit config file (f.e. 000-php7.1.conf)
sudo vim any-config-file.conf
# Change the ServerAlias or add your ngrok domain, for example
ServerAlias jimmy72.sternpunkt.ngrok.io
# after that, save the new settings and restart or reload your apache
sudo service apache2 reload
Please do not use vagrant box update if you are using jimmybox < 3.0! Better create a new version instead an migrate your data manually.
- Virtual Hosts: Switching PHP Versions has been changed - please use the Sethandler directives as shown in 100-myproject.conf
- we do not include npm and node.js any more (smaller footprint)