-
Notifications
You must be signed in to change notification settings - Fork 4
RPITS install tips for Windows
Reilly Hamilton edited this page Jan 21, 2015
·
13 revisions
These steps/tips are based on my install process on 6/14/2013.
Amended 7/4/2014 to fix dead links
- Download XAMPP: https://www.apachefriends.org/download.html
- Install XAMPP. C:/xampp/ is preferred/default
- XAMPP Control Panel should run automatically. Install services for PHP and Apache. If toggles are disabled, quit XAMPP Control and start it again as an Administrator.
- Go here: http://www.peewit.fr/imagick/ Download php_imagick.dll for the correct version of PHP under the Thread Safe header. Note the version of ImageMagick listed and make sure the listed version of PHP matches the version distributed with XAMPP.
- Download the matching version of ImageMagick. At time of writing, this was ImageMagick 6.8.6-8-Q16-x86 (NOT 64bit!!!) - http://ftp.sunet.se/pub/multimedia/graphics/ImageMagick/binaries/ImageMagick-6.8.6-8-Q16-x86-dll.exe (Hit the /binaries/ directory and find the match if the version number has changed.
- Install ImageMagick. Anywhere should be fine. I have mine in C:/xampp/ImageMagick.
- Run CMD, type 'convert'. A bunch of text should display. If only one line displays, ImageMagick did not add itself to your path properly.
- Place php_imagick.dll in {xampp}/php/ext/
- Add 'extension=php_imagick.dll' to {xampp}/php/php.ini . Anywhere is fine, I put it with the rest of the extension definitions
- In XAMPP Control Panel, start/restart Apache. Click Logs > php_error_log. If no errors, go to localhost/xampp/phpinfo.php. Ctrl+f "imagick". If found, success. If not, try rebooting Windows and restarting Apache. Then complain to Reilly.
- Open {xampp}/php/php.ini
- RPITS, for better or for worse (for worse), uses short tags. Ctrl-F 'short_open_tag = Off', set to 'On'.
- In order to see PHP errors rather than broken images, turn off output buffering. Ctrl+F 'output_buffering = 4096', set to 'Off'.
- Decrease error sensitivity. Ctrl+F 'error_reporting = E_ALL'. Set to 'E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED'. E_NOTICE can be useful for debugging (it points out obvious mistakes). At some point, the codebase should be cleaned up to remove warnings/notices. It's not currently "some point".
- Restart Apache in XAMPP Control Panel.
- You'll want a database of titles. Eventually, a start-up SQL file will be provided.
- Until then, I recommend copying the rpits and rpihockey folders out of the {mysql}/data/ directory of either the Graphics server, or from Reilly's install.
- Clone/copy rpits in to {xampp}/htdocs/rpits/
- Open config.sample.php and edit the MySQL server information
- Set $system_path_prefix to the path of the root folder on Apache
- Visit localhost/rpits/ to see if there are any warning messages. RPITS' default templates use a non-free font which is not included, causing titles to not render on a fresh install. Research into a free alternative is ongoing.
- XAMPP Control gets unhappy if it's not Run as an Administrator. Run it as an Administrator.
- There may be some magic quotes issues. I can't remember.
- On a clean install, /out/ and /thumbs/ must be added to the root directory in order for titles to render.
- Ran in to an issue with PHP 5.4 and Imagick. writeImage paths are no longer relative, must be realpath()'d