引用:
Musica is a web application for browsing and listening to your music. Songs are organized hierarchically in folders of Artists, and sub-folders of
Albums. The PHP script presents an interface for navigating among artists and albums. It dynamically generates playlists, allows for downloading
single songs, entire albums, and links to Wikipedia articles on artists and albums.
下载软件包。软件依赖apache。只好自己hack下。
● aptitude download musica
● cd ~/php例子; mkdir musica; cd musica
● ln -sf ~/音乐/ music
解压 index.php和musica和png图片,修改musica里面的路径和find的-L参数,并执行。
修改后的脚本,在压缩包里面。
● ./musica
● ll
总用量 60K
-rw-r--r-- 1 eexp eexp 6 2012-01-07 23:38 artists
-rw-r--r-- 1 eexp eexp 2 2012-01-07 23:38 artists.count
-rw-r--r-- 1 eexp eexp 352 2012-01-07 23:38 albums
-rw-r--r-- 1 eexp eexp 3 2012-01-07 23:38 albums.count
-rw-r--r-- 1 eexp eexp 11K 2012-01-07 23:38 songs
-rw-r--r-- 1 eexp eexp 4 2012-01-07 23:38 songs.count
-rwxr-xr-x 1 eexp eexp 425 2012-01-07 23:38 musica*
lrwxrwxrwx 1 eexp eexp 18 2012-01-07 23:29 music -> /home/eexp/音乐//
-rw-r--r-- 1 eexp eexp 21K 2012-01-07 23:00 index.php
..............
nginx 服务配置增加。/etc/nginx/sites-available/default。84端口居然不能用。
#------------------------------------------
server{
listen 85;
server_name musica;
root /home/eexp/php例子/musica/;
location / {
root /home/eexp/php例子/musica/;
index index.php;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
}
}
#------------------------------------------
http://localhost:85/ 可操作本地音乐。只是没web播放。用totem播放。