Please investigate the below PHP error:
Connect failed: [P4.connect()] Connect to server failed; check $P4PORT. connect: 127.0.0.1:1666: Connection refused
/opt/perforce/swarm/library/P4/Connection/Extension.php on line 477