Вернуться   Форум RadioCMS > RadioCMS > Установка RadioCMS

Добро пожаловать на Форум RadioCMS.
Форум доступен только для чтения.

 
 
Опции темы Опции просмотра
  #1  
Непрочитано 04.12.2013, 20:41
djbarhat djbarhat вне форума
Member
 
Регистрация: 04.12.2011
О.С.: freebsd
Версия: 2.2
Сообщений: 87
Thumbs up Установка Radiocms и поднятие сервера LAMP на debian wheezy все в одном !

И так у вас установлена система debian 6 или 7
далее вводим команды по очередно
у меня это заняло около 20 минут что бы уже радио со статистикой с доменом запускались

Цитата:
aptitude update
apt-get install nano
nano /etc/apt/sources.list
удаляем все и копируем wheezy list для squeezy можете воспользоваться генератором
http://debgen.simplylinux.ch/
Цитата:
deb-src http://ftp.ru.debian.org/debian/ wheezy main
deb-src http://security.debian.org/ wheezy/updates main
deb http://ftp.ru.debian.org/debian/ wheezy-updates main
deb-src http://ftp.ru.debian.org/debian/ wheezy-updates main
deb http://ftp.ru.debian.org/debian stable main non-free
deb http://security.debian.org/ wheezy/updates main non-free
Цитата:
aptitude update
aptitude install wget make
apt-get -f install
устанавливаем webmin панелька для управление доменом
лежит в папке packets
Цитата:
dpkg -i webmin_1.660_all.deb
после установки будет доступно по адресу
https://ваш_сайт.ru:10000
Цитата:
aptitude install ssh openssh-server
aptitude install g++
Цитата:
aptitude install mysql-server mysql-client libmysqlclient15-dev apache2 apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert libapache2-mod-php5 libapache2-mod-ruby php5 php5-common php5-curl php5-dev php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-mysql php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl phpmyadmin php5-xsl
Цитата:
a2enmod ssl
a2enmod rewrite
a2enmod suexec
a2enmod include
Цитата:
service apache2 restart
cd /etc/apache2/sites-available cp ./default /etc/apache2/sites-enabled/ваш_сайт.ru

Цитата:
aptitude install memcached
aptitude install php5-dev
aptitude install make
apt-get install php5-fpm
Установка eaccelerator предварительно распаковываем командой tar - xvzf
Цитата:
cd eaccelerator
phpize
./configure --enable-eaccelerator=shared
make
make install
mkdir -p /var/cache/eaccelerator
chmod 0777 /var/cache/eaccelerator
nano /etc/php5/apache2/php.ini

[[PHP]
после этих строк добавляем
Цитата:
; eAccelerator configuration
; Note that eAccelerator may also be installed as a PHP extension or as a zend_extension
; If you are using a thread safe build of PHP you must use
; zend_extension_ts instead of zend_extension extension = "eaccelerator.so" eaccelerator.shm_size = "16" eaccelerator.cache_dir = "/var/cache/eaccele$
Цитата:
apt-get install libxslt1-dev
apt-get install libvorbis-dev
apt-get install libspeex-dev
apt-get install libtheora-dev
apt-get install libghc-curl-dev
apt-get install libssh2-1-dev libssh2-php
apt-get install lame
apt-get install madplay
apt-get install vlc
apt-get install icecast2
nano /etc/default/icecast2
меняем в конце строку false на true что бы можно было запускать командой service icecast2 start или restart stop

Цитата:
apt-get install ezstream
service apache2 restart
service memcached restart
aptitude upgrade
устанавливаем cms ку предварительно распаковав
unrar radiocms
Цитата:
chmod -R 777 /var/www/radio/_system.php
chmod -R 777 /var/www/radio/_config.php
и установить указав правильные пути

добавление записи в cron

Цитата:
crontab -e
следующую строку

Цитата:
*/03 * * * * wget http://localhost/radio/event.php -O event.php
запуск ezstream осушествляеться так

Цитата:
ezstream -c /usr/local/etc/ezstream.xml
пакеты можно скачать тут

рабочий eztream

Цитата:
<ezstream>
<url>http://localhost:8000/drum</url>
<sourcepassword>hackme</sourcepassword>
<format>MP3</format>
<filename>/home/den/server/radio-drum/playlist.txt</filename>
<shuffle>0</shuffle>
<stream_once>0</stream_once>
<playlist_program>0</playlist_program>
<svrinfoname>First Radio of 51 Channels in Russia</svrinfoname>
<svrinfourl>http://werof.ru/</svrinfourl>
<svrinfogenre>Drum aand Bass</svrinfogenre>
<svrinfodescription>World Entertainment Recordings of Drum aand Bass </svrinfodescription>
<svrinfobitrate>128</svrinfobitrate>
<svrinfochannels>2</svrinfochannels>
<svrinfosamplerate>44100</svrinfosamplerate>
<svrinfopublic>1</svrinfopublic>
<reencode>
<enable>1</enable>
<encdec>
<format>MP3</format>
<match>.mp3</match>
<decode>madplay -b 16 -R 44100 -S -o raw:- "@T@"</decode>
<encode>lame --preset cbr 192 -r -s 44.1 --bitwidth 16 - -</encode>
</encdec>
</reencode>
</ezstream>
права записи 644 chmod -R 644 eztream.xml
Цитата:
<icecast>
<limits>
<clients>100</clients>
<sources>2</sources>
<threadpool>5</threadpool>
<queue-size>524288</queue-size>
<client-timeout>30</client-timeout>
<header-timeout>15</header-timeout>
<source-timeout>10</source-timeout>
<!-- If enabled, this will provide a burst of data when a client
first connects, thereby significantly reducing the startup
time for listeners that do substantial buffering. However,
it also significantly increases latency between the source
client and listening client. For low-latency setups, you
might want to disable this. -->
<burst-on-connect>1</burst-on-connect>
<!-- same as burst-on-connect, but this allows for being more
specific on how much to burst. Most people won't need to
change from the default 64k. Applies to all mountpoints -->
<burst-size>65535</burst-size>
</limits>

<authentication>
<!-- Sources log in with username 'source' -->
<source-password>hackme</source-password>
<!-- Relays log in username 'relay' -->
<relay-password>hackme</relay-password>

<!-- Admin logs in with the username given below -->
<admin-user>admin</admin-user>
<admin-password>hackme</admin-password>
</authentication>

<!-- set the mountpoint for a shoutcast source to use, the default if not
specified is /stream but you can change it here if an alternative is
wanted or an extension is required
<shoutcast-mount>/live.nsv</shoutcast-mount>
-->

<!-- Uncomment this if you want directory listings -->
<!--
<directory>
<yp-url-timeout>15</yp-url-timeout>
<yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
</directory>
-->

<!-- This is the hostname other people will use to connect to your server.
It affects mainly the urls generated by Icecast for playlists and yp
listings. -->
<hostname>localhost</hostname>

<!-- You may have multiple <listener> elements -->
<listen-socket>
<port>8000</port>
<!-- <bind-address>127.0.0.1</bind-address> -->
<!-- <shoutcast-mount>/stream</shoutcast-mount> -->
</listen-socket>
<!--
<listen-socket>
<port>8001</port>
</listen-socket>
-->

<!--<master-server>127.0.0.1</master-server>-->
<!--<master-server-port>8001</master-server-port>-->
<!--<master-update-interval>120</master-update-interval>-->
<!--<master-password>hackme</master-password>-->

<!-- setting this makes all relays on-demand unless overridden, this is
useful for master relays which do not have <relay> definitions here.
The default is 0 -->
<!--<relays-on-demand>1</relays-on-demand>-->

<!--
<relay>
<server>127.0.0.1</server>
<port>8001</port>
<mount>/example.ogg</mount>
<local-mount>/different.ogg</local-mount>
<on-demand>0</on-demand>

<relay-shoutcast-metadata>0</relay-shoutcast-metadata>
</relay>
-->

<!-- Only define a <mount> section if you want to use advanced options,
like alternative usernames or passwords
<mount>
<mount-name>/example-complex.ogg</mount-name>

<username>othersource</username>
<password>hackmemore</password>

<max-listeners>1</max-listeners>
<dump-file>/tmp/dump-example1.ogg</dump-file>
<burst-size>65536</burst-size>
<fallback-mount>/example2.ogg</fallback-mount>
<fallback-override>1</fallback-override>
<fallback-when-full>1</fallback-when-full>
<intro>/example_intro.ogg</intro>
<hidden>1</hidden>
<no-yp>1</no-yp>
<authentication type="htpasswd">
<option name="filename" value="myauth"/>
<option name="allow_duplicate_users" value="0"/>
</authentication>
<on-connect>/home/icecast/bin/stream-start</on-connect>
<on-disconnect>/home/icecast/bin/stream-stop</on-disconnect>
</mount>

<mount>
<mount-name>/auth_example.ogg</mount-name>
<authentication type="url">
<option name="mount_add" value="http://myauthserver.net/notify_mount.php"/>
<option name="mount_remove" value="http://myauthserver.net/notify_mount.php"/>
<option name="listener_add" value="http://myauthserver.net/notify_listener.php"/>
<option name="listener_remove" value="http://myauthserver.net/notify_listener.php"/>
</authentication>
</mount>

-->

<fileserve>1</fileserve>
<mount>

<mount-name>/drum</mount-name>

<charset>UTF-8</charset>

<fallback-mount>/drum-dj</fallback-mount>

<fallback-override>1</fallback-override>

<fallback-when-full>1</fallback-when-full>

</mount>



<mount>

<mount-name>/drum-dj</mount-name>

<charset>UTF-8</charset>

<fallback-mount>/drum</fallback-mount>

<fallback-override>1</fallback-override>

<fallback-when-full>1</fallback-when-full>

</mount>
<paths>
<!-- basedir is only used if chroot is enabled -->
<basedir>/usr/share/icecast2</basedir>

<!-- Note that if <chroot> is turned on below, these paths must both
be relative to the new root, not the original root -->
<logdir>/var/log/icecast2</logdir>
<webroot>/usr/share/icecast2/web</webroot>
<adminroot>/usr/share/icecast2/admin</adminroot>
<!-- <pidfile>/usr/share/icecast2/icecast.pid</pidfile> -->

<!-- Aliases: treat requests for 'source' path as being for 'dest' path
May be made specific to a port or bound address using the "port"
and "bind-address" attributes.
-->
<!--
<alias source="/foo" dest="/bar"/>
-->
<!-- Aliases: can also be used for simple redirections as well,
this example will redirect all requests for http://server:port/ to
the status page
-->
<alias source="/" dest="/status.xsl"/>
</paths>

<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<!-- <playlistlog>playlist.log</playlistlog> -->
<loglevel>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
<logsize>10000</logsize> <!-- Max size of a logfile -->
<!-- If logarchive is enabled (1), then when logsize is reached
the logfile will be moved to [error|access|playlist].log.DATESTAMP,
otherwise it will be moved to [error|access|playlist].log.old.
Default is non-archive mode (i.e. overwrite)
-->
<!-- <logarchive>1</logarchive> -->
</logging>

<security>
<chroot>0</chroot>
<!--
<changeowner>
<user>nobody</user>
<group>nogroup</group>
</changeowner>
-->
</security>
</icecast>
полностью рабочий icecast без группы правда но и без этого все работает
важно при первом запуске пропишите в плейлист (с правами 777) полный путь до мп3 и потом нажимаем интернет радио предварительно
создав плейлист в ближайшем времени ....
Все осуществлялось на моунте /drum и mp3 файлом Dambas.mp3
Что непонятно пишите в этой теме будет время разжую ...

Последний раз редактировалось djbarhat; 04.12.2013 в 20:55.
Ответить с цитированием
 


Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.

Быстрый переход


Часовой пояс GMT +3, время: 10:30.