This are my installation step - What is wrong?

aptitude install libxml2 libxml2-dev libtiff4 libtiff4-dev apache2 mysql-client mysql-server php5-cli php5 php-pear php5-mysql php5-gd perl libaudiofile-dev curl sox unzip lynx ncftp mime-construct libphp-jpgraph lame liblame-dev

pear install DB

perl -MCPAN -e “install Net::Telnet”

perl -MCPAN -e “install IPC::Signal”

perl -MCPAN -e “install Proc::WaitStat”

cd /usr/src

wget http://mirror.freepbx.org/freepbx-2.5.1.tar.gz

tar zvxf freepbx-2.5.1.tar.gz

nano /etc/apache2/envvars

export APACHE_RUN_USER=asterisk
export APACHE_RUN_GROUP=asterisk
export APACHE_PID_FILE=/var/run/apache2.pid

mysqladmin create asterisk

mysqladmin create asteriskcdrdb

mysql -u root asteriskcdrdb < /usr/src/freepbx-2.5.1/SQL/cdr_mysql_table.sql

mysql -u root asterisk < /usr/src/freepbx-2.5.1/SQL/newinstall.sql

echo “GRANT ALL PRIVILEGES ON asteriskcdrdb.* TO asteriskuser@localhost IDENTIFIED BY ‘amp109’;” | mysql -u root

echo “GRANT ALL PRIVILEGES ON asterisk.* TO asteriskuser@localhost IDENTIFIED BY ‘amp109’;” | mysql -u root

echo “flush privileges;” | mysql -u root

chown -R asterisk:asterisk /var/www/

chmod -R 775 /var/www

chown -R asterisk:asterisk /var/log/asterisk

chmod -R 775 /var/log/asterisk

chown -R asterisk:asterisk /var/lib/asterisk

chmod -R 775 /var/lib/asterisk

chown -R asterisk:asterisk /usr/lib/asterisk

chmod -R 775 /usr/lib/asterisk

chown -R asterisk:asterisk /etc/asterisk

chmod -R 775 /etc/asterisk

chown -R asterisk:asterisk /var/lib/php5

chmod -R 775 /var/lib/php5

/etc/init.d/apache2 restart

nano /etc/asterisk/asterisk.conf

astrundir => /var/run/asterisk

cd /usr/src/freepbx-2.5.1

./install_amp --username=asteriskuser --password=amp109

chown –R asterisk:asterisk /etc/amportal.conf

chmod 775 /etc/amportal.conf

nano /etc/amportal.conf

AUTHTYPE=database
AMPWEBADDRESS=IP server

nano /var/www/html/admin/views/panel.php

iframe width=“97%” height=“600” frameborder=“0” align=“top” src="…/panel/index_amp.php?


Ok… I really dont know what else do! this is drive me crazy! I cant download “voicemail” and “call monitor”…

If I check the LOG, I see:

[client xxxx] File does not exist: /var/www/recordings, referer: http://xxxx/html/recordings/index.php
[client xxxx] File does not exist: /var/www/recordings, referer: http://xxxx/html/recordings/index.php?m=Callmonitor&q=&sort=desc&order=calldate&duration_filter=&start=15
[client xxxx] File does not exist: /var/www/recordings, referer: http://xxxx/html/recordings/index.php
[client xxxx] File does not exist: /var/www/recordings, referer: http://xxxx/html/recordings/index.php?m=Callmonitor&q=&sort=desc&order=calldate&duration_filter=&start=30
[client xxxx] File does not exist: /var/www/recordings, referer: http://xxxx/html/recordings/index.php

Ok, the path “var/www/recordings” doesnt exist! recordings is in "var/www/html/recordings"
Is this ok???

The system is by default! I dont change anything!! so, why I cant download voicemail?? I get “404 NOT FOUND”

This are my permissions:

asterisk:/var/www/html# ls -l
drwxrwx— 8 asterisk asterisk 4096 may 19 04:28 admin
drwxr-x— 2 asterisk asterisk 4096 may 19 04:25 _asterisk
-rw-r–r-- 1 root root 602 may 19 04:25 index.html
-rw-r–r-- 1 root root 4542 may 19 07:18 mainstyle.css
drwxrwx— 2 asterisk asterisk 4096 may 19 04:42 panel
drwxrwx— 7 asterisk asterisk 4096 may 19 04:25 recordings

asterisk:/var/www# ls -l
drwxr-xr-x 6 root root 4096 may 19 04:25 html
-rwxrwxr-x 1 asterisk asterisk 45 may 19 04:19 index.html

asterisk:/var/spool# ls -l
drwxrwxr-x 10 asterisk asterisk 4096 may 19 04:25 asterisk
drwxr-xr-x 5 root root 4096 may 18 11:06 cron
drwxr-x— 5 Debian-exim Debian-exim 4096 may 18 12:02 exim4
lrwxrwxrwx 1 root root 7 may 18 10:59 mail -> …/mail

So, I must doing something wrong, but I really dont know WHAT!!! PLEASE HELP!