Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion 4 .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
/tests/tmp/*
/tests/vendor
/vagrant/phpbb-install-config.yml
.vagrant
/vagrant/.vagrant
/vagrant/composer.lock
/vagrant/vendor
node_modules

# Excludes IDE / editors files
Expand Down
1 change: 0 additions & 1 deletion 1 phpBB/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
"require-dev": {
"fabpot/goutte": "~3.2",
"php-webdriver/webdriver": "~1.8",
"laravel/homestead": "~7.0",
"phing/phing": "~2.4",
"phpunit/dbunit": "~4.0",
"phpunit/phpunit": "^7.0",
Expand Down
57 changes: 1 addition & 56 deletions 57 phpBB/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 9 additions & 7 deletions 16 phpBB/docs/vagrant.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,21 @@

phpBB includes support for Vagrant. This allows developers and contributors to run phpBB without the need to set up their own local web server with traditional WAMP/MAMP stacks. It also provides a consistent environment between developers for writing and debugging code changes more productively.

phpBB uses the [Laravel/Homestead](https://laravel.com/docs/5.1/homestead) Vagrant box. It runs a Linux server with Ubuntu 14.04, PHP 5.6, Nginx, SQLite3, MySQL, and a whole lot more (complete specs below).
phpBB uses the [Laravel/Homestead](https://laravel.com/docs/5.1/homestead) Vagrant box. It runs a Linux server with Ubuntu, PHP 7.2, Apache, SQLite3, MySQL, and a whole lot more (complete specs below).

## Get Started

* Download and Install [Vagrant](https://www.vagrantup.com/downloads.html)
* Download and Install [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
* Run `vagrant up` from the root of your cloned fork of the phpBB Git repository
* Run `vagrant up` from the `vagrant` directory of your cloned fork of the phpBB Git repository

```sh
$ cd vagrant
$ ../composer.phar install
$ vagrant up
```

* Access phpBB at `http://192.168.10.10/`
* Access phpBB at `http://192.168.56.56/`
* Username: **admin**
* Password: **adminadmin**

Expand Down Expand Up @@ -52,7 +54,7 @@ By default, phpBB is pre-configured to install with a MySQL database. You can, h
If you prefer to access phpBB from the more friendly URL `http://phpbb.app` then you must update your computer's hosts file. This file is typically located at `/etc/hosts` for Mac/Linux or `C:\Windows\System32\drivers\etc\hosts` for Windows. Open this file and add the following line to it, at the very bottom, and save.

```
192.168.10.10 phpbb.app
192.168.56.56 phpbb.app
```

## How it all works
Expand Down Expand Up @@ -91,11 +93,11 @@ $ mysql -uhomestead -psecret phpbb < /home/vagrant/phpbb/phpBB/store/phpbb.sql

### Included Software

* Ubuntu 14.04
* Ubuntu
* Git
* PHP 5.6
* PHP 7.2
* HHVM
* Nginx
* Apache
* MySQL
* Sqlite3
* Postgres
Expand Down
14 changes: 7 additions & 7 deletions 14 Vagrantfile → vagrant/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@ require 'json'
require 'yaml'

VAGRANTFILE_API_VERSION ||= "2"
confDir = $confDir ||= File.expand_path("phpBB/vendor/laravel/homestead", File.dirname(__FILE__))
confDir = $confDir ||= File.expand_path("vendor/svpernova09/homestead", File.dirname(__FILE__))

homesteadYamlPath = "vagrant/bootstrap.yaml"
afterScriptPath = "vagrant/after.sh"
aliasesPath = "vagrant/aliases"
homesteadYamlPath = "bootstrap.yaml"
afterScriptPath = "after.sh"
aliasesPath = "aliases"

require File.expand_path(confDir + '/scripts/homestead.rb')

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
if File.exists? aliasesPath then
if File.exist? aliasesPath then
config.vm.provision "file", source: aliasesPath, destination: "~/.bash_aliases"
end

if File.exists? homesteadYamlPath then
if File.exist? homesteadYamlPath then
Homestead.configure(config, YAML::load(File.read(homesteadYamlPath)))
end

if File.exists? afterScriptPath then
if File.exist? afterScriptPath then
config.vm.provision "shell", path: afterScriptPath
end
end
2 changes: 1 addition & 1 deletion 2 vagrant/after.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ sed -i "s/cgi.fix_pathinfo=.*/cgi.fix_pathinfo=1/" /etc/php/${PHP_VERSION}/fpm/p
# Restart php-fpm to apply php.ini changes
systemctl restart php${PHP_VERSION}-fpm.service

echo "Your board is ready at http://192.168.10.10/"
echo "Your board is ready at http://192.168.56.56/"
4 changes: 2 additions & 2 deletions 4 vagrant/bootstrap.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
ip: "192.168.10.10"
ip: "192.168.56.56"
memory: 2048
cpus: 1
hostname: phpbb
Expand All @@ -12,7 +12,7 @@ keys:
- ~/.ssh/id_rsa

folders:
- map: "."
- map: ".."
to: "/home/vagrant/phpbb"
sites:
- map: phpbb.app
Expand Down
5 changes: 5 additions & 0 deletions 5 vagrant/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": {
"svpernova09/homestead": "dev-main"
}
}
2 changes: 1 addition & 1 deletion 2 vagrant/phpbb-install-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ installer:
cookie_secure: false
server_protocol: http://
force_server_vars: false
server_name: 192.168.10.10
server_name: 192.168.56.56
server_port: 80
script_path: /
Morty Proxy This is a proxified and sanitized view of the page, visit original site.