Rat's

使用phpSound搭建私人的音乐网站
简介phpSound是一款社会化音乐分享平台代码,基于著名的SoundCloud,用户可以在线分享自己创作的歌曲或...
扫描右侧二维码阅读全文
15
2018/08

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

简介

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

截图

请输入图片描述
请输入图片描述
请输入图片描述

安装

环境要求: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.moerats.com/usr/down/phpSound-v4.2.0.zip
#phpSound-v4.3.0汉化破解
https://www.moerats.com/usr/down/phpsound-v4.3.0.zip

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

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

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

再将根目录下列文件或文件夹属性设置为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

最后属于我们的音乐网站就搭建完成了,如果你还想搭建一个私人的电影网站,可以查看:使用PlayTube搭建私人的视频网站

Vultr新用户注册送100美元/16个机房按小时计费,支持支付宝,【点击查看】。
最后修改:2018 年 11 月 16 日 12 : 50 PM

发表评论 取消回复

26 条评论

  1. 小白白。

    有问题。老是显示一个数据库密码那里还是哪里出错?嗯,我也不知道具体原因吧。反反正就是他报错显示我的目录第10行好像有问题。

  2. 0KeeTeam
    该评论仅登录用户及评论双方可见
  3. -lala-

    请问博主,后台更改语言后没有生效该怎么办

  4. 0KeeTeam
    该评论仅登录用户及评论双方可见
  5. 0KeeTeam
    该评论仅登录用户及评论双方可见
  6. 0KeeTeam
    该评论仅登录用户及评论双方可见
  7. 0KeeTeam
    该评论仅登录用户及评论双方可见
  8. 0KeeTeam
    该评论仅登录用户及评论双方可见
  9. 樱花风誓

    请问大佬,我这边搭建好后网页打开速度很慢,大多数时间都卡在解析网页地址了,不知道怎么解决

    1. 樱花风誓
      @樱花风誓

      已经解决,我这边url输入方式有问题,我把网站目录加上去了

  10. kju147

    我设置好之后(用的是ip+端口)无法打开网页,提示重定向的次数过多,无法正常运作

    1. Rat's
      @kju147

      配置文件里的程序安装网址也填的ip+端口?