When I set install_php=5 in toaster-watcher.conf (FreeBSD 6.1, Mail Toaster 5.10) and try toaster_setup.pl -s phpmyadmin, I get
"phpMyAdmin install disabled. Set install_phpmyadmin in toaster-watcher.conf if you want to install it.\n" even though install_phpmyadmin is indeed set to 1. This is after changing the php4 installation stuff to php5 in lim/Mail/Toaster/Apache.pm and Setup.pm, and php4 to php5 (and snmp4 to snmp5) in contrib/pkgtools.conf.
I could only get phpmyadmin to install by disabling the "unless ( $conf->{'install_phpmyadmin'} )" in MySQL.pm.
oops. The calling to phpmyadmin_install in Setup.pm wasn't passing along $conf, which is why the test failed. Fixed in 5.02b, which is available here:
http://mail-toaster.org/src/
Matt
make test failed:
==================================
t/toaster_setup......ok
t/Utility............NOK 61
# Failed test 'get_the_date month'
# in t/Utility.t at line 449.
# got: 9
# expected: 10
# Looks like you failed 1 test of 64.
t/Utility............dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 61
Failed 1/64 tests, 98.44% okay (less 4 skipped tests: 59 okay, 92.19%)
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/Utility.t 1 256 64 1 1.56% 61
3 tests and 4 subtests skipped.
Failed 1/24 test scripts, 95.83% okay. 1/413 subtests failed, 99.76% okay.
*** Error code 1
Stop in /usr/local/src/Mail-Toaster-5.02.
Yesterday's 5.02b shows a new make test failure:
======================================================
t/qqtool.............ok
t/Setup..............ok
t/toaster-watcher....ok
t/Toaster............NOK 14
# Failed test 'get_maildir_paths'
# in t/Toaster.t at line 75.
t/Toaster............ok 15/0# Looks like you failed 1 test of 41.
t/Toaster............dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 14
Failed 1/41 tests, 97.56% okay
t/toaster_setup......ok
t/Utility............ok
4/64 skipped: answer is an interactive only feature
Failed Test Stat Wstat Total Fail List of Failed
-------------------------------------------------------------------------------
t/Toaster.t 1 256 41 1 14
3 tests and 4 subtests skipped.
Failed 1/24 test scripts. 1/412 subtests failed.
Files=24, Tests=412, 29 wallclock secs (10.20 cusr + 2.99 csys = 13.19 CPU)
Failed 1/24 test programs. 1/412 subtests failed.
*** Error code 255
Stop in /usr/local/src/Mail-Toaster-5.02.
Yeah! The 10/11 does make test and installs. But it still trys to install php4-gd, despite that I have specified php5 in toaster-watcher.conf. So I changed all the php4 to php5 again in Apache.pm and Setup.pm, and toaster.setup.pl -s all works again!
But what's up with the php5 port? For almost two weeks now I get
===> php5-5.1.6_1 has known vulnerabilities:
=> php -- open_basedir Race Condition Vulnerability.
Reference: <http://www.FreeBSD.org/ports/portaudit/edabe438-542f-11db-a5ae-00508d6a62df.html>
=> Please update your ports tree and try again.
*** Error code 1
I made the mistake of deinstalling php5 on one of the machines that needs php. Anyone know the safest way to let php5 run again?
Hmmm. Again failing make test on Oct 12 version:
t/toaster-watcher....ok
t/Toaster............NOK 14/0
# Failed test 'get_maildir_paths'
# in t/Toaster.t at line 77.
# Looks like you failed 1 test of 41.
t/Toaster............dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 14
Failed 1/41 tests, 97.56% okay
t/toaster_setup......ok
t/Utility............ok
4/64 skipped: various reasons
Failed Test Stat Wstat Total Fail List of Failed
-------------------------------------------------------------------------------
t/Toaster.t 1 256 41 1 14
3 tests and 4 subtests skipped.
Failed 1/24 test scripts. 1/418 subtests failed.
Files=24, Tests=418, 34 wallclock secs (20.88 cusr + 3.64 csys = 24.52 CPU)
Failed 1/24 test programs. 1/418 subtests failed.
*** Error code 255
Stop in /usr/local/src/Mail-Toaster-5.02.
t/toaster-watcher....ok
t/Toaster............NOK 14/0
# Failed test 'get_maildir_paths'
# in t/Toaster.t at line 78.
t/Toaster............ok 15/0# Looks like you failed 1 test of 41.
t/Toaster............dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 14
Failed 1/41 tests, 97.56% okay
t/toaster_setup......ok
t/Utility............ok
4/64 skipped: various reasons
Failed Test Stat Wstat Total Fail List of Failed
-------------------------------------------------------------------------------
t/Toaster.t 1 256 41 1 14
4 tests and 4 subtests skipped.
Failed 1/24 test scripts. 1/411 subtests failed.
Files=24, Tests=411, 26 wallclock secs (10.56 cusr + 2.81 csys = 13.38 CPU)
Failed 1/24 test programs. 1/411 subtests failed.
*** Error code 255
Stop in /usr/local/src/Mail-Toaster-5.03rc1.
=============================================
Would it help for me to provide any more information, Matt?
No, because I doubt it is within my control. There are FreeBSD ports that reflect a dependency on php4-* and when that happens, it will try installing the version it thinks it needs. If there is an error in my code, then by all means, post patches.
I got burned by trying to go with PHP5 in another way -
I discovered half way through building the toaster that the FreeBSD 6.1 Squirrelmail port still depends on the PHP4 port. By the time I found this out, I had already built the PHP5 port which I had to back out and rebuild from the PHP4 port. Somehow while doing this the PHP4 port didn't build the PEARDB extension which is also required by Squirrelmail, so after a bunch of digging I discovered the magic command 'make rmconfig' which allowed me to add Pear support to PHP.