2011-09-15

Symfony2 on XAMPP (Windows) minor tweaks

w/ XAMPP 1.7.4, Symfony 2.0.1

http://localhost/Symfony/web/config.php gives us:

Recommendations
...
1 .Install and enable a PHP accelerator like APC (highly recommended).
2. Install and enable the intl extension.
3. Set short_open_tag to off in php.ini*.


solution:
(1) install corresponding php_apc.dll, add extension=php_apc.dll to php.ini
(2) mod_intl.dll exist, enable it in php.ini, but you need to have to copy all icu*36.dll files from your-xampp-path\php to your-xampp-path\apache\bin
(3) bad default-xampp-php.ini, "short_open_tag" is set twice - once "off" and once "on" two lines later, comment the latter out

http://localhost/Symfony/web/config.php is still not satisfied:

Recommendations
...
1. Upgrade your intl extension with a newer ICU version (4+).

damn ... I'm just one minute away from deinstalling xampp and take full control

Bugzilla 4.0.2 on XAMPP (Windows)

after switching to ActivePerl on XAMPP (Windows) I thought the server was ready for a simple Bugzilla:Win32Install

but after updating all perl-modules and installing the required and optional modules (if available for win32) checksetup.pl failed
#perl checksetup.pl
...
Invalid version format (negative version number) at Bugzilla/Install/Requirements.pm line ...


it's a known bug and it's already fixed and committed and should be included in future version (> 4.0.2).
until then you have to patch it yourself with: patch, v1 (925 bytes, patch)

2011-09-09

use ActivePerl with XAMPP (Windows)

- tested with xampp 1.7.4
- install activeperl (e.g. 5.12.4.1205) to c:\usr
- open a shell c:\usr\bin
- add corresponding repo and install corresponding mod_perl.so (only needed to run as module)

#ppm repo add UWinnipeg http://cpan.uwinnipeg.ca/PPMPackages/12xx/
#ppm install mod_perl

- if running as module copy new mod_perl.so to your-xampp-apache-path\modules
- edit apache.conf add "ScriptInterpreterSource Registry-Strict"


#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks Includes ExecCGI

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All

#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all

ScriptInterpreterSource Registry-Strict



- edit your-xammp-apache-path\extra\httpd_perl.conf
- comment out "PerlPostConfigRequire"-line
- if running as non-module comment out LoadFile ... n' LoadModule ... lines
- if running as module correct path/filename

LoadFile "C:/usr/bin/perl512.dll"
LoadModule perl_module modules/mod_perl.so
#PerlPostConfigRequire "C:/dev/xampp/apache/conf/extra/startup.pl"
...

- add following registry entry (you may use apache_cgi.reg):

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.cgi\Shell\ExecCGI\Command]
@="C:\\usr\\bin\\perl.exe -T"

- restart apache
- test perl via your fav. www-browser and a file w/ following content

#!/usr/bin/perl
print "Content-type:text/html\n\n";
print "hello world";

- optional install HTML::Perlinfo

#ppm install HTML-Perlinfo

- test with your fav. www-browser and a file w/ following content

#!/usr/bin/perl

use HTML::Perlinfo;
use CGI qw(header);

$q = new CGI;
print $q->header;

$p = new HTML::Perlinfo;
$p->info_general;
$p->info_variables;
$p->info_modules;
$p->info_license;

wow ... 2 years, 3 months, x days no post