Dangling symlinks

Hello there,

I am having file permissions problems when I start Asterisk with:
“amportal restart”

The error starts with:
"setting file permissions
chmod cannot operate on dangling symlink /var/lib/asterisk/bin/ampbackup.php
chmod cannot operate on dangling symlink /var/lib/asterisk/bin/ampbackup.place
chmod cannot operate on dangling symlink /var/lib/asterisk/bin/dumpastdb.php
chmod cannot operate on dangling symlink /var/lib/asterisk/bin/fax-process.pl
chmod cannot operate on dangling symlink /var/lib/asterisk/bin/restoreastdb.php
I use Ubuntu as my prefered Linux flavor and used Jo Roper’s script to install the freepbx and asterisk goodies. Any help would be appreciated and thanks in advance.

mv the files being symlinked to:

mv /var/lib/asterisk/bin/ampbackup.php /var/lib/asterisk/bin/ampbackup.php.orig
etc.
.
.
.

So I went ahead and moved everything as suggested and here is what I get I am hoping this is good news. It says after doing:
“amportal stop”
"amportal start"
It still says there are dangling symlinks which are the same as before.

butg I get:
permissions okay
Starting Asterisk

so does this mean the problem is done with?

ls -l /var/lib/asterisk/bin/*

and (with luck and depending on how your system was setup) in red will show the danglers, delete them.