-
Notifications
You must be signed in to change notification settings - Fork 3
Install Ampache on Windows 10 with Bash Android access
In the Windows 10 bash shell (Launch it as administrator otherwise problem with network), use the following commands:
# Update and install packages
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install apache2 mysql-server
# Install php and enable mod-rewrite
apt-get install php5 php5-mysql php5-gd
sudo a2enmod rewrite
# Download and unzip ampache (installed in opt here and linked to /var/www/html
cd /opt
mkdir ampache-3.8.2 && cd ampache-3.8.2
wget https://github.com/ampache/ampache/releases/download/3.8.2/ampache-3.8.2_all.zip
unzip ampache-3.8.2_all.zip
cd ..
sudo chown -R www-data:www-data ampache-3.8.2
sudo ln -s /opt/ampache-3.8.2 /var/www/html/ampache
Add the following lines to apache default configuration (/etc/apache2/sites-available/000-default.conf) at the very end (outsite VirtualHost):
<Directory /var/www/html/ampache>
AllowOverride all
</Directory>
In the Windows 10 bash shell (Launch it as administrator otherwise problem with network), use the following commands:
- sudo apt-get update
- sudo apt-get dist-upgrade
- sudo apt-get install ampache
- sudo apt-get install mysql-server
If apache doesn't launch: add
AcceptFilter http none
To
/etc/apache2/apache2.conf
See [this link](https://stackoverflow.com/questions/36469527/installing-apache-on-windows-subsystem-for-linux for more info)
Go to the configuration url: http://localhost/ampache and start configuring ampache.
-
If you used the package manager:
Until the creation of the ampache.cfg.php file. Configure it and download it then copy it to /etc/ampache/ampache.cfg.php from the shell -
If you used a manual installation:
On the step for creating configuration files, check at the bottom that the .htaccess files are correctly created
Finish the installation and use ampache
If ampache is not accessible on other computer of the same LAN, allow access to 80 port in the windows firewall.
To start ampache (Launch the shell as administrator otherwise problem with network):
sudo /etc/init.d/apache2 start
sudo /etc/init.d/mysql start
To enable access from an android application and if you installed it from packages you probably need to use ACLs:
GO into the admin settings, then edit the access control section to add a right.
Add a right for your user from 0.0.0.0
to 255.255.255.255
(tune it for more security) with the type API/RPC
If you have the Subversion backend enabled, you can use DSub to stream or make your music available offline. Use your login and the traditional ampache server address (http://localhost/ampache) to access ampache with DSub. You can use DSub to download albums and put them in permanent cache, so they are available to other applications.