Skip to content
This repository has been archived by the owner on Feb 4, 2020. It is now read-only.

Vagrant Box for TYPO3-Flow incl. different DBMS, Webserver, PHP Versions and co.

Notifications You must be signed in to change notification settings

RafaelKa/Vagrant-for-TYPO3-Flow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vagrant Box for TYPO3-Flow

Setup

  1. Download and install VirtualBox
  2. Download and install Vagrant
  3. Clone this repository and change in its directory:
  • Run git clone https://github.com/RafaelKa/Vagrant-for-TYPO3-Flow.git
  • Run cd Vagrant-for-TYPO3-Flow
  1. Install Vagrant plugin to manage hostname for this project automatically:
  • Run vagrant plugin install vagrant-hostmanager
  1. Run vagrant up
  • will ask password on Unix-like OS. This is for write acces on /etc/hosts file by vagrant-hostmanager.
  • Notice for Windows users: missing VBoxAdpNet.sys
  1. Access to a shell by running following command:
  • Run vagrant ssh
  1. Login as typo3 user in a shell and run Flow commands
  • Run sudo su - typo3
  • Run ./flow help and other flow commands
  1. Setup your IDE for using project as project on remote host as described in Setup your IDE chapter.
  2. Setup Database as described in Flow Quickstart Documentation chapter.
  • use provided PhpMyAdmin to create user and database
  • or make it with mysql -u root -p'' ... command inside your Vagrant boxes shell. User root has no password!

Setup your IDE

PhpStorm

Use default project
  1. File -> New Project from Existing Files...
  2. Choose Web server is on remote host, files are accessible via FTP/SFTP/FTPS.
  3. Please specify project name and local path to download project files to.:
  • Project name: typo3-flow.dev
  • (Optional) Project local path: You can point in this vagrant box directory under projects/typo3-flow.dev.
  • Click next
  1. Choose Add new remote server and click next
  2. Specify parameters for a new server.:
  • Name: Vagrant Box for TYPO3-Flow
  • Type: SFTP
  • SFTP host: typo3-flow.dev
  • Port: 22
  • Root path: /var/www/projects/
  • User name: typo3
  • Auth type: Password
  • Password: typo3
  • Web server root URL: http://typo3-flow.dev
  • Check Don't check HTTP conection to server and click next
  1. Specify root folder on the remote server:
  • Choose typo3-flow.dev folder and click on Project Root button on the top of current window
  • Click next and then Finish
  • PhpStorm will download all TYPO3 Flow files in your project root. This can take a while(<3 minutes)
  1. Automatic upload on save:
  • Choose Tools -> Deployment -> Automatic Upload
  1. Go with your web browser to typo3-flow.dev (if it does not work on Windows check hosts on Windows)
Create new Project
  1. File -> New Project from Existing Files...
  2. Choose Web server is on remote host, files are accessible via FTP/SFTP/FTPS.
  3. Specify project name (and local path if needed) and click next
  4. Choose Use existing server or go to steps 4 and 5 from Use default project
  • Choose Vagrant Box for TYPO3-Flow which was created in steps 4 and 5 from Use default project
  • Click next
  1. Specify root folder on the remote server:
  • Right click on Vagrant Box for TYPO3-Flow (typo3-flow.dev/var/www/projects/) -> Create Folder...
  • Enter folder name: {lower-case-projectname[.dev]}
  • Click OK
  • Choose created folder and click on Project Root button on the top of current window
  • Click next and Finish
  • Automatic upload on save:
    • Choose Tools -> Deployment -> Automatic Upload
  1. Install TYPO3 Flow with composer inside a Vagrant box:
  • Click Tools -> Start SSH session
  • Choose Vagrant Box for TYPO3-Flow
  • Run composer create-project --dev --keep-vcs typo3/flow-base-distribution {lower-case-projectname[.dev]}
  • Run other commands f.x. composer require ...
  1. Download project files in projects root folder:
  • Click Tools -> Deployment -> Download from default server or right click on the root directory in Project window from PhpStorm and choose Deployment -> Download from ......
  • PhpStorm will download all TYPO3 Flow files in your project root. This can take a while(<3 minutes)
  1. Add 192.168.144.100 {lower-case-projectname[.dev]} line in /etc/hosts (Windows: %SystemRoot%\system32\drivers\etc\hosts) file.

Available tools

PhpMyAdmin

Environment configuration

Miltiple machines

If you want to run multiple machines at same time, you can do that but you must customize following things:

  • assign own IP address and hostname for each Vagrant box:
    • change 192.168.144.100 and typo3-flow.dev in Vagrantfile
    • rename typo3-flow.dev folder to the in the previous step defined hostname f.x. {lower-case-projectname[.dev]}

Manage services and daemons : WIP

WIP: You can use settings.yaml to enable and disable installation and auto start from services like MySQL, Apache, NginX, etc.

Notices Windows

VBoxAdpNet.sys

On vagrant up you will be asked for VBoxAdpNet.sys file. You must point in VirtualBox window on C:\Program Files\Oracle\VirtualBox\drivers\network\netadp\VBoxNetAdp.sys

hosts file

Vagrants plugin vagrant-hostmanager seems to get troubles with hosts on Windows host machine. Therefore most likely on Windows machines you must add an entry manually in hosts file.

  • Run Editor as administrator and navigate to %SystemRoot%\system32\drivers\etc (always C:\Windows\System32\drivers\etc ) folder
  • Choose show all files
  • Choose hosts file and click open.
  • Add 192.168.144.100 {lower-case-projectname[.dev]} line at the end of file.
  • Click save and close Editor
  • Now you can request {lower-case-projectname[.dev]} ind your web browser

About

Vagrant Box for TYPO3-Flow incl. different DBMS, Webserver, PHP Versions and co.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published