Next, ensure that Apache isn’t already running (with some other root) by executing the below.
Then (re)start Apache with the below so that it uses ~/workspace/pset8/public as its root.
apache50 start ~/workspace/pset8/public
From pset8, it may be due to that, so you can try to go back to root typing cd ~
then apache50 stop, then apache50 start ~