-
-
Notifications
You must be signed in to change notification settings - Fork 39
Installation on Windows
- Download Apache2 and Visual C++ Redistributable for Visual Studio: https://www.apachelounge.com/download
- Download PHP 7.3.x or PHP 7.4.x (VC15 x64 Thread Safe): https://windows.php.net/download
- Download Digicamcontrol: http://digicamcontrol.com/download
- Download Notepad++: https://notepad-plus-plus.org/downloads
- Download latest Photobooth release: https://github.com/andi34/photobooth/releases
- Install Notepad++
- Install Visual C++ Redistributable for Visual Studio
- Extract the Apache2 ZIP (httpd-2.4.X-winXX-XXXX.zip) to C:/
- Extract the PHP ZIP (php-7.X.XX-Win32-vc15-xXX.zip) to C:/php
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"
For reference see f260b49
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
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"
.
For reference see ff4259a
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
Open http://localhost/info.php in your Browser, you should see the PHP Information page.
Install Digicamcontrol to C:\Apache24\htdocs\digicamcontrol\
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
You should now be able to use Photobooth on your Windows machine!