Hi !
I was wondering if someone else has noticed a similar behavior:
I wrote an URL-rewrite script with PHP as explained at
<http://wiki.squid-cache.org/ConfigExamples/PhpRedirectors>. The
script was running without complains under Squid 2.7.Stable9 and
Ubuntu 9.04, then I upgraded Ubuntu to 10.04 and warning messages
started to show up:
2010/05/15 16:48:28| WARNING: url_rewriter #XX (FD XX) exited <----
(repeat n-times)
2010/05/15 16:48:28| Too few url_rewriter processes are running
2010/05/15 16:48:28| Starting new helpers
Things I've tried to solve the issue without success:
- Simplified the PHP script to the minimum (finally just using the
wiki's example).
- A clean installation of Ubuntu 10.04.
- Downgraded PHP package from 5.3 to 5.2.
- Recompiled Squid (just in case).
Perl scripts are not afected, so I rewrited/transalted the script. The
service is up again but a big question mark was left over my head.
I know it's not a Squid's issue per se, but at least the wiki may need
to be updated before other people get stuck at this point...
Thanks for reading.
-----------
squid.conf:
-----------
url_rewrite_program /etc/squid/phpredir
url_rewrite_children 32
---------
phpredir:
---------
#!/usr/bin/php
<?php
$temp = array();
while ( $input = fgets(STDIN) ) {
$temp = split(' ', $input);
$output = $temp[0] . "\n";
echo $output;
}
Received on Tue May 25 2010 - 23:49:23 MDT
This archive was generated by hypermail 2.2.0 : Wed May 26 2010 - 12:00:07 MDT