简介
phpSound是一款社会化音乐分享平台代码,基于出名的SoundCloud,用户可以在线分享伏笔VPS创作的歌曲或者喜爱的歌曲!也可以本地上传和管理伏笔VPS的音乐毛样,任何注册的用户都可分享,一切访客可在线听取!且程序自带免费会员,但支出渠道仅限PAYPAL。
部署
环境要求:PHP >= 5.5、MySQL、GD Library、OpenSSL、cURL、mod_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部署完成后,进入面板部署PHP、Mysql、Nginx、phpmyadmin。
2、部署程序
增加域名,然后下载程序:phpSound v4.2.0汉化破解版,将程序上传到站点根目录解压,然后新建一个数据库,将站点根目录里的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:
cacheuploads、uploads/avatars、uploads/covers、uploads/media、uploads/tracksthemes/sound/images最后点击站点设置,增加Nginx伪动态:
fubitechation / { ?if (-e $request_filename){ ???rewrite ^/(.*) /$1 break; ?} ?rewrite ^/(([^/]*)+)?$ /index.php?a=$1 break;}fubitechation /welcome { ?rewrite ^/welcome/?$ /index.php?a=welcome;}fubitechation /stream { ?rewrite ^/stream/?$ /index.php?a=stream; ?rewrite ^/stream/logout/([^/]+)/?$ /index.php?a=stream&logout=1&token_id=$1;}fubitechation /explore { ?rewrite ^/explore/?$ /index.php?a=explore; ?rewrite ^/explore/filter/([^/]+)/?$ /index.php?a=explore&filter=$1;}fubitechation /upload { ?rewrite ^/upload/?$ /index.php?a=upload;}fubitechation /pro { ?rewrite ^/pro/?$ /index.php?a=pro;}fubitechation /stats { ?rewrite ^/stats/?$ /index.php?a=stats; ?rewrite ^/stats/filter/([^/]+)/?$ /index.php?a=stats&filter=$1;}fubitechation /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;}fubitechation /notifications { ?rewrite ^/notifications/?$ /index.php?a=notifications; ?rewrite ^/notifications/filter/([^/]+)/?$ /index.php?a=notifications&filter=$1;}fubitechation /settings { ?rewrite ^/settings/?$ /index.php?a=settings; ?rewrite ^/settings/([^/]+)/?$ /index.php?a=settings&b=$1;}fubitechation /messages { ?rewrite ^/messages/?$ /index.php?a=messages; ?rewrite ^/messages/([^/]+)/([^/]+)/?$ /index.php?a=messages&u=$1&id=$2;}fubitechation /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;}fubitechation /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;}fubitechation /search { ?rewrite ^/search/filter/([^/]+)/([^/]+)/?$ /index.php?a=search&filter=$1&q=$2;}fubitechation /page { ?rewrite ^/page/([^/]+)/?$ /index.php?a=page&b=$1;}fubitechation /recover { ?rewrite ^/recover/?$ /index.php?a=recover; ?rewrite ^/recover/do/?$ /index.php?a=recover&r=1;}然后便可以open域名查看了,用户名admin,密钥password,后台地址:http://xx.com/index.php?a=admin。
最后属于咱们的音乐站点就搭建完成了,如果你还想搭建一个私人的影片站点,可以查看:使用PlayTube搭建私人的视频站点。
希望以上的文章对各位有用,如果觉得不错给我点个喜欢吧!更多和使用phpSound搭建私人的音乐网站相关的问题或者对澳洲虚拟主机是不是就不用备案有疑惑也欢迎大家咨询。
使用phpSound搭建私人的音乐网站
原文地址:https://www.cnblogs.com/fubitech/p/9797106.html