Edit:
As @ajtrichards says:
"You don't have permission to read the files in /var/www/music. You'll need to allow access to your web server"
Go to your /var/www/music
folder and give the right permissions for your server to READ in there.
If you use Apache:
How to make a directory apache readable on ubuntu
PHP has two environments.
- The web environment.
- The CLI environment.
Your extension works perfectly on the CLI environment because you added the PECL extension on the CLI php.ini.
You need to make sure the extension is added to the web php.ini.
To test it, make a test.php
with a phpinfo call.
And access it via browser.
This will output all the php.ini configuration for the "web" PHP.
Then search for your ID3
extension in all the list of extensions.
If it does not display, then is not added to the "web environment" php.ini.
To add it, you must do the same that you did to add it to the CLI php.ini
Something like, adding this line
extension=id3.so
More info on ID3 http://www.php.net/manual/en/id3.installation.php