使用phpSound搭建私人的音乐网站

简介

phpSound是一款社会化音乐分享平台代码,基于著名的SoundCloud,用户可以在线分享自己创作的歌曲或者喜欢的歌曲!也可以本地上传和管理自己的音乐小样,任何注册的用户均可分享,所有访客可在线收听!且程序自带收费会员,但支付渠道仅限PAYPAL

截图

使用phpSound搭建私人的音乐网站
使用phpSound搭建私人的音乐网站
使用phpSound搭建私人的音乐网站

安装

环境要求:PHP >= 5.5MySQLGD LibraryOpenSSLcURLmod_rewrite

本文所使用的破解源码为最新版v4.2.0,源码来自于顶点网,并由林叶展弟弟进行汉化。

1、安装宝塔

#Centos系统
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh
#Ubuntu系统
wget -O install.sh http://download.bt.cn/install/install-ubuntu.sh && sudo bash install.sh
#Debian系统
wget -O install.sh http://download.bt.cn/install/install-ubuntu.sh && bash install.sh

安装完成后,进入面板安装PHPMysqlNginxphpmyadmin

2、安装程序
先添加域名,然后下载程序:

#phpSound-v4.2.0汉化破解
https://www.southcat.net/usr/down/phpSound-v4.2.0.zip
#phpSound-v4.3.0汉化破解
https://www.southcat.net/usr/down/phpsound-v4.3.0.zip

将程序源码上传到网站根目录解压,然后新建一个数据库,将网站根目录里的phpSound.sql导入进去。

接着编辑网站根目录includes/config.php,进行如下修改:

$CONF['user'] = 'YOURDBUSER';//数据库用户
$CONF['pass'] = 'YOURDBPASS';//数据库密码
$CONF['name'] = 'YOURDBNAME';//数据库名
$CONF['url'] = 'http://southcat.net';//程序安装网址
$CONF['email'] = 'admin@southcat.net';//系统联系邮件

再将根目录下列文件或文件夹属性设置为777

cache
uploads、uploads/avatars、uploads/covers、uploads/media、uploads/tracks
themes/sound/images

最后点击网站设置,添加Nginx伪静态:

location / {
  if (-e $request_filename){
    rewrite ^/(.*) /$1 break;
  }
  rewrite ^/(([^/]*)+)?$ /index.php?a=$1 break;
}

location /welcome {
  rewrite ^/welcome/?$ /index.php?a=welcome;
}

location /stream {
  rewrite ^/stream/?$ /index.php?a=stream;
  rewrite ^/stream/logout/([^/]+)/?$ /index.php?a=stream&logout=1&token_id=$1;
}

location /explore {
  rewrite ^/explore/?$ /index.php?a=explore;
  rewrite ^/explore/filter/([^/]+)/?$ /index.php?a=explore&filter=$1;
}

location /upload {
  rewrite ^/upload/?$ /index.php?a=upload;
}

location /pro {
  rewrite ^/pro/?$ /index.php?a=pro;
}

location /stats {
  rewrite ^/stats/?$ /index.php?a=stats;
  rewrite ^/stats/filter/([^/]+)/?$ /index.php?a=stats&filter=$1;
}

location /profile {
  rewrite ^/profile/([^/]+)/?$ /index.php?a=profile&u=$1;
  rewrite ^/profile/([^/]+)/([^/]+)/?$ /index.php?a=profile&u=$1&r=$2;
  rewrite ^/profile/([^/]+)/filter/([^/]+)/?$ /index.php?a=profile&u=$1&filter=$2;
}

location /notifications {
  rewrite ^/notifications/?$ /index.php?a=notifications;
  rewrite ^/notifications/filter/([^/]+)/?$ /index.php?a=notifications&filter=$1;
}

location /settings {
  rewrite ^/settings/?$ /index.php?a=settings;
  rewrite ^/settings/([^/]+)/?$ /index.php?a=settings&b=$1;
}

location /messages {
  rewrite ^/messages/?$ /index.php?a=messages;
  rewrite ^/messages/([^/]+)/([^/]+)/?$ /index.php?a=messages&u=$1&id=$2;
}

location /track {
  rewrite ^/track/([^/]+)/?$ /index.php?a=track&id=$1;
  rewrite ^/track/([^/]+)/edit/?$ /index.php?a=track&id=$1&type=edit;
  rewrite ^/track/([^/]+)/report/?$ /index.php?a=track&id=$1&type=report;
  rewrite ^/track/([^/]+)/stats/?$ /index.php?a=track&id=$1&type=stats;
  rewrite ^/track/([^/]+)/likes/?$ /index.php?a=track&id=$1&type=likes;
  rewrite ^/track/([^/]+)/stats/filter/([^/]+)/?$ /index.php?a=track&id=$1&type=stats&filter=$2;
  rewrite ^/track/([^/]+)/([^/]+)/?$ /index.php?a=track&id=$1&name=$2;
}

location /playlist {
  rewrite ^/playlist/([^/]+)/?$ /index.php?a=playlist&id=$1;
  rewrite ^/playlist/([^/]+)/edit/?$ /index.php?a=playlist&id=$1&edit=true;
  rewrite ^/playlist/([^/]+)/([^/]+)/?$ /index.php?a=playlist&id=$1&name=$2;
}

location /search {
  rewrite ^/search/filter/([^/]+)/([^/]+)/?$ /index.php?a=search&filter=$1&q=$2;
}

location /page {
  rewrite ^/page/([^/]+)/?$ /index.php?a=page&b=$1;
}

location /recover {
  rewrite ^/recover/?$ /index.php?a=recover;
  rewrite ^/recover/do/?$ /index.php?a=recover&r=1;
}

然后就可以打开域名查看了,用户名admin,密码password,后台地址:http://xx.com/index.php?a=admin



给TA打赏
共{{data.count}}人
人已打赏
cj

一个好用的制作GIF动画或视频的软件:ScreenToGif

2019-10-28 21:10:14

cj

Parkomat:Linux下自建WebDav+DNS+Web服务器教程

2019-10-29 12:59:50

个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索