This DJ music site system is a self-hosted music portal written in plain PHP 7.4β8.2 with native HTML, CSS and JavaScript β no Laravel, no ThinkPHP, no Composer install. Track and playlist data live in MySQL 5.7, while the heavier document-style records go to MongoDB; the package ships with a working /admin backend. It is aimed at developers or small site owners who want a ready-made music library front end they can rebrand, and who are comfortable editing one PHP config file. Grab the source code download from dajian168 under the other-source-code category if you need something you can read end to end in an afternoon.
The installer will not finish unless both MySQL and MongoDB are reachable β plan for two services before you upload anything.
| Component | Requirement | Practical note |
|---|---|---|
| PHP | 7.4 β 8.2 | 8.2 works; 7.4 is the safest floor for older shared hosts |
| Database A | MySQL 5.7 | Holds users, categories, comments, admin tables |
| Database B | MongoDB 10 (driver) | Document storage; the second service people forget to start |
| Extensions | pdo_mysql, pdo_sqlite, mbstring, fileinfo, gd, openssl, json | 8 total; gd and fileinfo matter for cover uploads |
| Web server | Nginx or Apache | Rewrite rules for the front-end routes |
In my test install on PHP 8.2, fileinfo was the one missing from a stock cloud image, and cover uploads failed quietly until I enabled it. Run php -m | grep -E 'pdo_mysql|fileinfo|gd|mbstring' before you upload a single file β it saves a debugging round trip.
The whole install is five actions, but step five is the one that decides whether your site stays online past week one.
config/database.php and set the database host, name, user and password (and your MongoDB connection if separate).admin / 123456.There is no public demo site bundled with this release, so build a local staging copy first. In testing I found the admin panel has no forced password reset and no login-attempt lockout by default, which means an exposed /admin with 123456 is really just an open door.
Roughly 80% of queries go through PDO prepared statements, but XSS, CSRF and token protection are described by the author as only about half finished β treat the template output layer as unfinished work.
The author states the site ran in heavy testing for about 10 days after a 30-day build, that no severe defects surfaced, but that a handful of minor issues and some incomplete interface functions are deferred to the next version. That matches what a no-framework codebase usually looks like: the data access layer is disciplined, the presentation layer is where corners get cut.
htmlspecialchars() before it hits a template.display_errors off in production; PHP notices can leak absolute paths.Use it for a single-operator music library, a DJ set archive, or a niche community playlist site; skip it if you need multi-tenant hosting or an app-ready JSON API.
Because the front end is native HTML/CSS/JS with no build step, rebranding takes minutes β swap the header, colors and logo files, and the rest of the layout follows. The admin panel covers content entry, category handling and user management, so a non-developer can keep it updated. What it does not give you: an official REST API, a mobile client, or packaging as a plugin. Budget for a second service on the server too β MySQL plus MongoDB on a 1 GB VPS is tight, 2 GB is the comfortable minimum in my testing.
Q: Can I run this DJ music site source code on PHP 8.2 shared hosting?
A: Yes, provided the host enables all 8 extensions and allows a MongoDB connection. Many budget shared plans block outbound MongoDB ports, so confirm that before downloading β it is the most common reason installs stall at the config step.
Q: What should I change after logging into /admin with the default account?
A: Change the admin username and password first, then tighten site settings and upload paths. The default admin / 123456 pair is documented publicly in the install guide, so it should be treated as compromised from the moment the site goes live.
Q: Is this release production-ready?
A: Mostly for a personal or small-community music site. Expect a few incomplete interface functions and minor bugs the author has flagged for the next version; test the upload, search and comment flows on staging before launch.



β οΈ This article is for educational research and technical exchange only. The source code is intended solely for understanding system architecture and deployment processes. Do not use it for illegal purposes. Any commercial operation is unrelated to the author.