пятница, 26 октября 2018 г.
среда, 24 октября 2018 г.
htaccess redirect http на https
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://yourwebsite.com/$1 [R,L]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://yourwebsite.com/$1 [R,L]
суббота, 20 октября 2018 г.
MySQL (code=exited, status=1/FAILURE)
1) Бэкапим базы из
/var/lib/mysql
.
2) инициализация директории БД
mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
понедельник, 8 октября 2018 г.
Подключение liquidsoap к Icecast2
1) создаём файл test.liq в каталоге /etc/liquidsoap/
#!/usr/bin/liquidsoap
music = playlist("/home/music/")
security = single("/home/music/lp.ogg")
radio = music
# Now add some jingles
radio = random(weights = [1, 4],[music, radio])
# And finally the security
radio = fallback(track_sensitive = false, [radio, security])
#connect to icecast2
output.icecast(%vorbis,
host = "localhost", port = 8000,
password = "hackme", mount = "meteora.mp3",
radio)
2) service liquidsoap restart
#!/usr/bin/liquidsoap
music = playlist("/home/music/")
security = single("/home/music/lp.ogg")
radio = music
# Now add some jingles
radio = random(weights = [1, 4],[music, radio])
# And finally the security
radio = fallback(track_sensitive = false, [radio, security])
#connect to icecast2
output.icecast(%vorbis,
host = "localhost", port = 8000,
password = "hackme", mount = "meteora.mp3",
radio)
2) service liquidsoap restart
Подписаться на:
Сообщения (Atom)