If you’re getting a 404 Page Not Found error when you’re trying to access your Asterisk web gui on http://localhost:8088 (by default), it’s because you need to create a symbolic link to /usr/share/asterisk/static-http, do the following and all should be working fine:
rm -rf /usr/share/asterisk/static-http/
ln -s /var/lib/asterisk/static-http/ /usr/share/asterisk/
/etc/init.d/asterisk restart
Enjoy!