-
Notifications
You must be signed in to change notification settings - Fork 11
Installation
Wiki ▸ Installation
Welcome to the slimpd wiki!
- MPD >=0.20.3 music player daemon
- MySQL/MariaDB
-
PHP >=5.6
- Modules
iconv,pdo_mysql,gd
- Modules
- Python2.X
- Sphinx 1↵
-
Webserver (Apache, Nginx, Lighttpd, ...)
- read-access to MPD-database-file (plain-text or gzip supported)
- read-access to filesystem configured in
'mpd.conf:music_directory' - optional: enable module mod_rewrite
MP3, M4A, MP4, AAC, FLAC, WMA, AC3, and, OGG
- Lame (for displaying waveforms)
-
optional:
- FAAD2 (for displaying waveforms for .m4a, .mp4, and, .aac)
- Flac and Metaflac(usually included within the Flac package) (for displaying waveforms for .flac)
- Mplayer (for displaying waveforms for .wma and .ac3)
- Vorbis-Tools (for displaying waveforms for .ogg)
- Create a virtual-host which points to your filesystem
For help: MYsQL/MariaDB database creation
-
MySQL and MariaDB
are considered interchangeable although MariaDB is recomended.
- config changes
[mysqld] max_allowed_packet = 4M
- config changes
- Webserver-user must have write permission to CREATE DATABASE.
For help: Configuration
- Copy
*/slimpd/core/config/config_local.sample.inito*/slimpd/core/config/config_local.ini
and check values. - Make sure that your web-server has write access to these directories:
*/slimpd/localdata/cache/
*/slimpd/localdata/embedded/
*/slimpd/localdata/peakfiles/
-
This will create your MySQL database tables and begin the import of your music from your Mpd-database:
$ php '*/slimpd/slimpd' hard-reset
Create Sphinx database
- Add Sphinx-configuration to:
/etc/sphinx/sphinx.confbased on*/slimpd/core/config/sphinx.example.conf.
Under most circumstances you can copy*/slimpd/core/config/sphinx.example.confto/etc/sphinx/sphinx.conf. - Update the Sphinx-index.
-
The first time after setting up Sphinx you must run:
# indexer slimpdmain slimpdsuggest -
For all future Sphinx updates run:
# */slimpd/core/scripts/sphinx-rotate.sh
-
- After completing setup, run
systemcheck. Either type in sliMpd's web-address and at*/index.php/*,change it to*/index.php/systemcheck, or simply press the 'Gear Icon' on the sliMpd web-page. - Scroll down the page and check for 'Success' or 'Error' messages. This is how to debug your installation.
-
Filesystem: make certain it says 'Success' for every subheading. All 'Error' messages under this heading must be fixed!
READ-PERMISSION TO ACCESS MPD'S MUSIC-DIRECTORY- Your [MPD music-directory](https://github.com/othmar52/slimpd/wiki/Configuration/#mpd ""config_local.ini [mpd]") and its children must be read accessible to your webserver-user.WRITE-PERMISSION FOR CACHE-DIRECTORY- Your webserver-user must have write permission to the'/slimpd/localdata/cache/'directory.WRITE-PERMISSION FOR EMBEDDED-DIRECTORY- Your webserver-user must have write permission to the'/slimpd/localdata/embedded/'directory.WRITE-PERMISSION FOR PEAKFILES-DIRECTORY- Your webserver-user must have write permission to the'/slimpd/localdata/peakfiles/'directory.
-
Database: MySQL-database, make certain it says 'Success' for every subheading. All 'Error' messages under this heading must be fixed!
CONNECTION- You must be able to successfully connect to the MySQL-database created for sliMpd athttp://localhost, by having the correct dbusername, dbpassword, and dbdatabase information added to your'/slimpd/core/config/config_local.ini'.PERMISSIONS OF DATABASE-USER- MySQL database user has permission to create databases.SCHEMA- MySQL database tables created correctly via running thephp '*/slimpd/slimpd' hard-resetscript.DATABASE CONTENT- Confirmation of Mpd-database import into the MySQL database. Listing the number of imported Tracks, Albums, Artists, Genres, and Labels.
-
MPD: make certain it says 'Success' for every subheading. All 'Error' messages under this heading must be fixed!
CONNECTIONREAD ACCESS TO DATABASE FILE
-
Sphinx: 1 ↵ make certain it says 'Success' for every subheading. All 'Error' messages under this heading must be fixed!
CONNECTIONSCHEMAINDEXED DATA
-
Waveform: The 'Success' or 'Error' messages are for the codecs installed. Only the codecs required for your music collection are necessary to have installed. The 'Show More' buttons, when pressed give detailed information for the creation of the test music file 'Fingerprint' with result comparison. It also provides details for the executed command used to create the test music file 'Waveform' and states whether the test failed or succeeded. These may prove helpful to debug should a codec you have installed not show as successfully creating the 'Fingerprint' and 'Waveform'.
MP3 EXTRACT FINGERPRINTandMP3 EXTRACT PEAKS FOR WAVEFORMThese are the only exception. They must be successfully installed with a green 'Check'!FLAC EXTRACT FINGERPRINTandFLAC EXTRACT PEAKS FOR WAVEFORMWAV EXTRACT FINGERPRINTandWAV EXTRACT PEAKS FOR WAVEFORMM4A EXTRACT FINGERPRINTandM4A EXTRACT PEAKS FOR WAVEFORMAIF EXTRACT FINGERPRINTandAIF EXTRACT PEAKS FOR WAVEFORMAAC EXTRACT FINGERPRINTandAAC EXTRACT PEAKS FOR WAVEFORMOGG EXTRACT FINGERPRINTandOGG EXTRACT PEAKS FOR WAVEFORMWMA EXTRACT FINGERPRINTandWMA EXTRACT PEAKS FOR WAVEFORMAC3 EXTRACT FINGERPRINTandAC3 EXTRACT PEAKS FOR WAVEFORM
-
Enviroment: Currently unimplemented.
check if php-pdo is enabledUnimplementedcheck locale settings to avoid errors caused by special charsUnimplemented
-
Xwax: Currently unimpliimented.
check connectionUnimplemented
-
1. Sphinx will be optional in the future