Normally, you should not need to create directories for logging as the loggers should take care of creating those directories automatically. Try reinstalling apache2 as a root. I am not sure about why PHP complains.
Update (after reading updated question):
The problem is not permissions as I doubted. It resembles with the one in here: http://pcduino.com/forum/index.php?topic=3838.0. Also has a solution in it.
Add the entry to recreate those directories in /etc/rc.local
file. Hope it resolves your problem.
As the following link by Vidyo suggests,
https://support.vidyocloud.com/hc/en-us/articles/226103528-VidyoDesktop-3-6-3-for-Linux-and-Ubuntu-15-04-and-higher
one just needs to eliminate dependency on libqt4-gui
(again, this case is already mentioned in previous answers but this is yet another approach.)
If I may, let me copy the solution from the above link and paste it here.
I just made changes in the 3rd and 4th steps where I mention using vim editor instead of nano.
1) Download the VidyoDesktop .deb file to your home directory
2) Run the following commands from the terminal (replacing "vidyodesktop.deb" with the exact filename according to your system type)
$ cd ~
$ dpkg-deb -x vidyodesktop.deb vidyobuild
$ dpkg-deb --control vidyodesktop.deb vidyobuild/DEBIAN
3) Edit the package control file
$ vim vidyobuild/DEBIAN/control
Replace the entire Depends: line by copying and pasting the following:
Depends: libxss1,libaudio2,libasound2,libqt4-network
This removes the libqt4-gui transitional package dependency which is no longer required for recent Ubuntu versions
4) Save the customized .deb file
esc
:wq
enter
$ dpkg-deb -b vidyobuild vidyodesktop-custom.deb
5) Install the new VidyoDesktop .deb file by running
$ sudo dpkg -i vidyodesktop-custom.deb
[EDIT: Vidyo desktop works only in wifi mode. If the LAN cable is connected, then Vidyo shuts down. I haven't found a solution to this problem yet. But rest is working!]
Best Answer
There is no apache2-mpm-worker package because the mpm_worker module is included by default when you install Apache on 16.04. It is contained in the apache2-bin package that is a dependency of apache2:
mpm_event is enabled by default, so to enable mpm_worker: