简介

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.down.hupsun.com/phpSound-v4.2.0.zip
#phpSound-v4.3.0汉化破解
https://www.down.hupsun.com/phpsound-v4.3.0.zip

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

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

$CONF['user'] = 'YOURDBUSER';//数据库用户
$CONF['pass'] = 'YOURDBPASS';//数据库密码
$CONF['name'] = 'YOURDBNAME';//数据库名
$CONF['url'] = 'http://hupsun.com';//程序安装网址
$CONF['email'] = 'admin@hupsun.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搭建私人的视频网站。

零基础的萌新搭建属于自己的Typecho/WordPress等博客教程

说明:一直以来老有同学问博主怎么搭建博客,最好出个教程,然后就拖到了现在,这里就发个超小白教程,适合对建站不懂又想拥有一个自己的博客的同学,有闲置...

阅读全文

一款开源免费且基于Laravel开发的在线点播系统:MeEdu搭建教程

说明:之前看有童鞋需要个点播系统,恰好就看到个不错的MeEdu,一个开源免费的在线点播,电子书和会员收费三大模块为一的整合系统,该系统主要的目的是让每位...

阅读全文

一款开源、轻巧且功能齐全的跨平台网盘程序:蓝眼云盘

说明:最近发现了一个不错的网盘程序蓝眼云盘,该程序后端使用golang开发,前端使用vue套件开发,而且开源免费,基本上目前除了离线下载外,其它功能都有,同...

阅读全文

欢迎留言