modified php build paths to include version
added support for php error log file