Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

Installation on Windows

Andreas Blaesius edited this page Oct 27, 2020 · 15 revisions

Installation on Windows

Download needed files

Install & extract needed Software

  • Install Notepad++
  • Install Visual C++ Redistributable for Visual Studio
  • Extract the Apache2 ZIP to C:/
  • Extract the PHP ZIP to C:/php

Prepare Apache HTTP Server

Edit C:\Apache24\conf\httpd.conf using Notepad++
Find the following text (~ on line 284):

<IfModule dir_module>
    DirectoryIndex index.html
</IfModule>

And change it to

<IfModule dir_module>
    DirectoryIndex index.html index.php
</IfModule>

To the end of the file add the following:

LoadModule php7_module "C:/php/php7apache2_4.dll"
<FilesMatch \.php$>
    SetHandler application/x-httpd-php
</FilesMatch>

PHPIniDir "C:/php"

Inside C:\Apache24\htdocs add a new file called info.php and add the following content:

<?php
phpinfo();
?>

Inside C:\Apache24 create a new file called cmd.bat and add th following content:

cd "C:\Apache24\bin"
cmd

Prepare PHP

Go to C:\php and rename the php.ini-production to php.ini.

Edit the php.ini using Notepad++ to enable the GD library:
Find ;extension=fileinfo and remove the ; in front of the line.
Find ;extension=gd2 and remove the ; in front of the line.
Find ;extension_dir = "ext" and remove the ; in front of the line and change it to extension_dir = "C:/php/ext"

Start Apache Server

Go to C:\Apache24 and right click on the cmd.bat, choose "Run as administrator":
To start the Webserver on boot automatically, type httpd.exe -k install.

Once that's done, lets start our webserver:
httpd.exe -k start

If you need to stop the webserver (e.g. if you like to change the php.ini):
httpd.exe -k stop

Test your Webserver & PHP

Open http://localhost/info.php in your Browser, you should see the PHP Information page.

Install Digicamcontrol

Install Digicamcontrol to C:\Apache24\htdocs\digicamcontrol\

Setup Photobooth

Remove all files inside C:\Apache24\htdocs\.
Next you need to extract the Photobooth Release-ZIP to C:\Apache24\htdocs\.

Open http://localhost/admin in your Browser and adjust your "take picture command" (inside the "Commands" section):
C:\Apache24\htdocs\digicamcontrol\CameraControlCmd.exe /capture /filename %s

Enjoy!

You should now be able to use Photobooth on your Windows machine!

Clone this wiki locally