Skip to content

Commit 1f60c85

Browse files
committed
Updated CHANGELOG.md
Added changes for v1.3.0.
1 parent 8cf22ef commit 1f60c85

File tree

5 files changed

+43
-28
lines changed

5 files changed

+43
-28
lines changed

CHANGELOG.md

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,29 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased]
99

10+
## [1.3.0] - 2022-02-17
11+
1012
### Added
1113

14+
- Added a HTTP-only dev host with PHP error messages enabled at port 81.
15+
- Added a dashboard to the root site
1216
- Set `COMPOSER_RUNTIME_ENV` to `virtualbox` in `/home/vagrant/.profile`. This adds `sleep()` calls in Composer 2.0.12 and above to avoid files not being ready due to the slow synced folders. See https://github.com/composer/composer/issues/9627 for details.
1317

1418
### Changed
1519

16-
- Updated to Ubuntu 21.04 box by Bento
17-
- Updated to MariaDB 10.6.5
18-
- Updated to PHP 8.0.13
19-
- Updated to Xdebug 3.1.1
20-
- Updated to Composer 2.1.2
21-
- Updated to php_cs 3.6.1
20+
- Switched IP address to 172.16.7.7 to avoid clashes with common router configurations.
21+
- Updated to Ubuntu 21.10 box by Bento
22+
- Updated to MariaDB 10.7.3
23+
- Updated to PHP 8.1.2
24+
- Updated to Xdebug 3.1.2
25+
- Updated to Composer 2.2.6
26+
- Updated to php_cs 3.6.2
27+
- Updated to phpMyAdmin 5.1.3 (switched from apt-get to Composer install)
2228
- Activated Xdebug code coverage mode
23-
- Added additional shell scripts for exercises
29+
30+
### Removed
31+
32+
- Removed all install scripts.
2433

2534
## [1.2.1] - 2021-03-08
2635

@@ -77,7 +86,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7786
- Various shell scripts for convenience.
7887
- phpinfo.php for easy installation checks.
7988

80-
[Unreleased]: https://github.com/Digital-Media/fhooe-webdev/compare/v1.2.1...HEAD
89+
[Unreleased]: https://github.com/Digital-Media/fhooe-webdev/compare/v1.3.0...HEAD
90+
[1.3.0]: https://github.com/Digital-Media/fhooe-webdev/compare/v1.2.1...v1.3.0
8191
[1.2.1]: https://github.com/Digital-Media/fhooe-webdev/compare/v1.2.0...v1.2.1
8292
[1.2.0]: https://github.com/Digital-Media/fhooe-webdev/compare/v1.1.0...v1.2.0
8393
[1.1.0]: https://github.com/Digital-Media/fhooe-webdev/compare/v1.0.0...v1.1.0

README.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# fhooe-webdev - A Vagrantfile and Vagrant Box for Web Development Classes
1+
# fhooe-webdev A Vagrantfile and Vagrant Box for Web Development Classes
22

33
This repository provides a Vagrantfile for a consistent Linux-based web development environment designed for the use in web development classes at the [Upper Austria University of Applied Sciences (FH Oberösterreich), Hagenberg Campus](https://www.fh-ooe.at/en/hagenberg-campus/).
44

5-
The Vagrantfile works with our own [fhooe/fhooe-webdev box](https://app.vagrantup.com/fhooe/boxes/fhooe-webdev), which is based on Ubuntu 21.04 and includes Apache2, PHP 8.0, MariaDB 10.6, as well as additional tools and scripts.
5+
The Vagrantfile works with our own [fhooe/fhooe-webdev box](https://app.vagrantup.com/fhooe/boxes/fhooe-webdev), which is based on Ubuntu 21.10 and includes Apache2, PHP 8.1, MariaDB 10.7, as well as additional tools and scripts.
66

77
Not familiar with Vagrant or not sure, why to use it? Have a look at the [Introduction](https://www.vagrantup.com/intro/) first.
88

@@ -35,16 +35,21 @@ Then install the required software in the following order:
3535

3636
Once the image has successfully booted you will notice that a folder called `code` inside of your `<path-to>/fhooe-webdev` directory has been created. This directory is mapped to `/var/www/html/code` in the image via Vagrant's shared folder functionality. Since it points to Apache's document root, files are immediately served through the web server.
3737

38-
Additionally, the Vagrantfile configures the IP address `192.168.7.7` as a private network, so you can access the machine - and therefore its web server - under this address.
38+
Additionally, the Vagrantfile configures the IP address `172.16.7.7` as a private network, so you can access the machine - and therefore its web server - under this address.
3939

40-
To develop and deploy your web applications, copy them to the `code` folder on your host machine. They will be instantly available through the Vagrant image's web server at 192.168.7.7. E.g.:
40+
To develop and deploy your web applications, copy them to the `code` folder on your host machine. They will be instantly available through the Vagrant image's web server at 172.16.7.7. E.g.:
4141

42-
- `code/my_example_project/index.php` -> <https://192.168.7.7/code/my_example_project/index.php>
42+
- `code/my_example_project/index.php` -> <https://172.16.7.7/code/my_example_project/index.php>
4343

4444
There's a file called `phpinfo.php` in the `code` directory that allows you to quickly check the configuration of this image. Also [phpMyAdmin](https://www.phpmyadmin.net/) is already installed and configured. These are available here:
4545

46-
- <https://192.168.7.7/code/phpinfo.php>
47-
- <https://192.168.7.7/phpmyadmin>
46+
- <https://172.16.7.7/code/phpinfo.php>
47+
- <https://172.167.7.7/phpmyadmin>
48+
49+
The default configuration uses HTTPS and mimics a production webserver without displaying any PHP errors. To work without HTTPS (thus avoiding the certificate warning), open your files with HTTP on port 81. E.g.:
50+
51+
- http://172.16.7.7:81/ for the dashboard or
52+
- http://172.16.7.7:81/code/ for the code directory.
4853

4954
Since all the files of your web projects are on your host computer, you can destroy, remove or reset the Vagrant image at any time. Nothing within the `code` directory is affected.
5055

Vagrantfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Vagrant.configure("2") do |config|
2121

2222
# Creating a private network, which allows host-only access to the machine using a specific IP.
2323
# Important: avoid IP conflicts with the university network based on 10.*.*.*
24-
config.vm.network "private_network", ip: "192.168.7.7"
24+
config.vm.network "private_network", ip: "172.16.7.7"
2525

2626
# Mapping a folder, that can be used for web exercises, allowing Apache running as www-data to write data to these directories
2727
config.vm.synced_folder "code", "/var/www/html/code", create: true, owner: "www-data", group: "www-data"

fhooe-webdev-base/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# fhooe-webdev-base - A Vagrantfile for Developing the fhooe-webdev Vagrant Box
1+
# fhooe-webdev-base A Vagrantfile for Developing the fhooe-webdev Vagrant Box
22

3-
This directory provides the Vagrantfile that configures the [fhooe/fhooe-webdev box](https://app.vagrantup.com/fhooe/boxes/fhooe-webdev). It is based on the [bento/ubuntu-21.04 box](https://app.vagrantup.com/bento/boxes/ubuntu-21.04) and adds Apache2, PHP 8.0, MariaDB 10.6, as well as additional tools and scripts.
3+
This directory provides the Vagrantfile that configures the [fhooe/fhooe-webdev box](https://app.vagrantup.com/fhooe/boxes/fhooe-webdev). It is based on the [bento/ubuntu-21.10 box](https://app.vagrantup.com/bento/boxes/ubuntu-21.10) and adds Apache2, PHP 8.1, MariaDB 10.7, as well as additional tools and scripts.
44

55
This Vagrantfile is solely meant for developing the final Vagrant box. Although you can use for web development, provisioning the image takes some time and is most likely not very convenient.
66

@@ -29,7 +29,7 @@ Download or clone the [fhooe-webdev](https://github.com/Digital-Media/fhooe-webd
2929

3030
Make all the changes in the Vagrantfile of the `fhooe-webdev-base` directory. Make sure to document everything in the Vagrantfile, if possible, use `echo` statements to show what you are doing.
3131

32-
To test everything, switch to the directory where you cloned/downloaded the repository, and select the development subdirectory, e.g., `cd <path-to>/fhooe-webdev/fhooe-webdev-base`. Then run `vagrant up`. This will download the [bento/ubuntu-21.04 box](https://app.vagrantup.com/bento/boxes/ubuntu-21.04) (a minimal Ubuntu image) from Vagrant Cloud, and run all the provisioning steps from the Vagrantfile. Finally, the machine is run in headless mode. Use `vagrant ssh` to connect to the box and make sure everything is running and configured as planned.
32+
To test everything, switch to the directory where you cloned/downloaded the repository, and select the development subdirectory, e.g., `cd <path-to>/fhooe-webdev/fhooe-webdev-base`. Then run `vagrant up`. This will download the [bento/ubuntu-21.10 box](https://app.vagrantup.com/bento/boxes/ubuntu-21.10) (a minimal Ubuntu image) from Vagrant Cloud, and run all the provisioning steps from the Vagrantfile. Finally, the machine is run in headless mode. Use `vagrant ssh` to connect to the box and make sure everything is running and configured as planned.
3333

3434
### Creating the fhooe/fhooe-webdev box
3535

fhooe-webdev-base/Vagrantfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Vagrant.configure("2") do |config|
1818

1919
# Running various provisioners to set up the basic components needed in the web development classes
2020
config.vm.provision "Adding repositories and PPAs", type: "shell", inline: <<-SH
21-
echo "#######################################################"
21+
echo "#######################################################"
2222
echo "## Adding Repositories and Personal Package Archives ##"
2323
echo "#######################################################"
2424
# HTTPS for APT
@@ -131,14 +131,14 @@ Vagrant.configure("2") do |config|
131131
echo "## Installing latest phpMyAdmin using Composer ##"
132132
echo "#################################################"
133133
cd /var/www/html
134-
composer create-project phpmyadmin/phpmyadmin
135-
cd /var/www/html/phpmyadmin
136-
mv config.sample.inc.php config.inc.php
137-
RANDOM_BLOWFISH_SECRET=$(openssl rand -base64 32)
138-
sed -i "16s|''|'$RANDOM_BLOWFISH_SECRET'|" config.inc.php
139-
mkdir -m 777 ./tmp
140-
sed -i "75i \\$cfg['TempDir'] = '/tmp';" config.inc.php
141-
chown -R vagrant:vagrant .
134+
composer create-project phpmyadmin/phpmyadmin --no-dev
135+
cd /var/www/html/phpmyadmin
136+
mv config.sample.inc.php config.inc.php
137+
RANDOM_BLOWFISH_SECRET=$(openssl rand -base64 32)
138+
sed -i "16s|''|'$RANDOM_BLOWFISH_SECRET'|" config.inc.php
139+
mkdir -m 777 ./tmp
140+
sed -i "75i \\$cfg['TempDir'] = '/tmp';" config.inc.php
141+
chown -R vagrant:vagrant .
142142
SH
143143

144144
config.vm.provision "Dashboard", type: "shell", inline: <<-SH

0 commit comments

Comments
 (0)