It should work on your localhost as well, but it is difficult for me to debug there. What version of php do you have installed? You will need a version prior to php v7 and you will need to have included mysql components in the php.ini file.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.