move check of /usr/local/bin/php into

Version 1.361


The php binary check is currently at the end of the If the install fails (the calls, the reason the install failed will be displayed in the output of the, but the tail end of the will still be run, thus the check for php is done anyway, which is pointless if the abort happened before the php binary compile was even attempted. The fix (to avoid confusion) is to add the php check to the end of the, such that if the aborts for a particular reason, the last message seen will be the actual error, and not the redundant php check.

Interested to try DirectAdmin? Get a 30-day Free Trial!