Using this Vagrant configuration you will get a working lamp environment ready to run through the TYPO3 installation wizard.
Those programs have to be installed and work proper.
- Virtualbox
- Vagrant >= 1.5
Hint: This manual works for OS X and Linux. The vagrant project should also run within Windows, but you can't use the setup.sh then.
+ myProject/ // project folder on your host system
|
+- .git/ // version control system
|
+- .gitignore // files to be ignoriered by version control system
|
|- README.md // project information (this file)
|
|- setup.sh // shell script to run the project
|
+-+ vagrant/ // vagrant folder (synced with /vagrant)
| |
| +- afterBoot.sh // runs on every system start
| |
| +- provision.sh // runs on first "vagrant up" and every "vagrant provision"
| |
| +- Vagrantfile // vagrant configuration file
|
+-+ vhosts // sync folder: /etc/apache2/sites-available
|
+- typomachine.conf // vhost configuration file
Information:
additional files and folders will be added by vm during system is starting.
For a complete uninstall after vagrant destroy remove following files:
- vagrant/components/bower_components
- vagrant/components/node_modules
- vagrant/htdocs
- vagrant/vhosts/000-default.conf
- vagrant/vhosts/default-ssl.conf
- Linux Ubuntu Server 14.04 LTS (ubuntu/trusty64)
- Apache
- MySQL
- PHP
- PhpMyAdmin (typomachine.local/phpmyadmin)
- Typo3 6.2.x LTS
-
Open project folder in your terminal
cd /path/to/target
-
Start setup script
sh ./setup.sh # if it results in an syntax error, try: bash ./setup.sh
-
Select "Start VM"
-
Select "SSH Login"
-
Create file FIRST_INSTALL in web root
touch /var/www/html/FIRST_INSTALL
-
Add this line to your hosts file (/etc/hosts)
192.168.23.23 typomachine.local
If you want to use another IP you have to configure it in vagrant/Vagrantfile.
-
Open typomachine.local in your web browser to start the installation wizard
-
Step 2: fill in user typomachine with password typomachine
-
Step 3: select database typomachine
-
Step 4: create a user "typomachine" with password "typomachine"
-
Step 5: you can uncheck the box if you want to build your own system, also ignore the following steps then
-
Login in and select "Get Extensions" in the upper box
-
Search for bootstrap_package and install it by clicking on the brick
-
Accept downloading realurl
-
Base install is done, do a git init inside typo3_conf now to control your individual project
-
Start grunt task if you want to get compiled css and javascript /var/www/components/grunt watch
-
Create a new page and set this as root page. Find this option in the page configuration filed under behavior/miscellaneous
-
Create a new typoscript Template on this Page
General Template Title: You can name this as you like: Example "Bootstrap Package" Website Title: This will be your website title visible in the frontend Options Clear Constants and Setup by checking the boxes Use this Template as Root-Level Template by checking the box Includes Include static (from extensions) CSS Styled Content (required) Default TS form (optional if you want to use it) Bootstrap Package (required)
-
You can build your site structure now and configure your project by editing the files located on your host system myProject/htdocs/typo3conf/ext/bootstrap_package Updating bootstrap_package extension is not recommended in this setup! Better create your own extension if you want to work serious.