The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]




Версия для распечатки Пред. тема | След. тема
Новые ответы [ Отслеживать ]
Apache + Pulse, !*! port20031, 27-Июн-14, 00:21  [смотреть все]
Доброго времени суток )))

Есть тупой скрипт

<?php
if( exec("/usr/bin/mplayer /var/www/html/sounds/dingdong.mp3 " ))
{
    echo 'good';    
}
?>

Есть Федора 20 , голова уже идет кругом , не играет музыка ((( .

good-bash-4.2$ php /var/www/html/test1.php
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Home directory not accessible: Permission denied
AO: [pulse] Init failed: Connection refused
Failed to initialize audio driver 'pulse'
Home directory not accessible: Permission denied
[AO_ALSA] alsa-lib: pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

[AO_ALSA] Playback open error: Connection refused
Failed to initialize audio driver 'alsa'
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
Home directory not accessible: Permission denied
[AO_ALSA] alsa-lib: pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

[AO_ALSA] Playback open error: Connection refused
Home directory not accessible: Permission denied
AO: [pulse] Init failed: Connection refused
Home directory not accessible: Permission denied
Home directory not accessible: Permission denied
[AO_ALSA] alsa-lib: pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

[AO SDL] Unable to open audio: No available audio device
DVB card number must be between 1 and 4

Под обычным пользователем играет , но нужно ж апачем (((
Заранее благодарен )))

  • Apache + Pulse, !*! port20031, 12:48 , 27-Июн-14 (1)
    Ларчик просто открылся ))) , не была настроена алса , вот как решил
    1 шаг
    cat /proc/asound/cards
    0 [Audigy2        ]: Audigy2 - SB Audigy 2 [SB0240]
                          SB Audigy 2 [SB0240] (rev.4, serial:0x10071102) at 0xdc00, irq 16
    1 [NVidia         ]: HDA-Intel - HDA NVidia
                          HDA NVidia at 0xf9e78000 irq 23


    2 шаг /etc/asound.conf правим так и ребут

    pcm.!default {
      type hw
      card NVidia
                 }

    ctl.!default {
       type hw
      card NVidia
                 }




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру