Recherche avancée

Médias (0)

Mot : - Tags -/metadatas

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (45)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (5082)

  • How can I pass a variable containing spaces as an argument in a bash script ?

    8 décembre 2017, par Bill D

    I am trying to pass a variable containing a filename with spaces as an argument to ffmpeg in a bash script, and I am not having success.

    varToPass="file name with spaces.mp4"

    ffmpeg -i "$varToPass" -ss "${array[j]}" -t "${anotherArray[j]}" output.mp4

    I have tried passing the argument as "$varToPass" with double quotes as suggested by this answer and others, but I’m still unable to get it to work.

    I’ve also tried putting escape characters in the string like this :

    varToPass=`echo $varToPass | sed 's/ /\ /'`

    But still no luck.

    Any suggestions for how this can be done ?

  • I have installed FFMPEG and can't find it inside a PHP script

    14 novembre 2019, par Antop

    I have installed FFMPeg in CentOS. It works perfectly.
    It’s inside /usr/bin directory. Also, I have PHP 7.2.24 that comes with Plesk 18.0.20.

    I want to use FFMPeg inside a PHP script, but that script can’t find the executable of FFMpeg. I have tried giving the exact route (/usr/bin/ffmpeg) but doesn’t work.

    It’s a production server. The same script, in my development server (macOS) works perfectly.

    I tried using :

    var_dump(getenv('PATH'));
    var_dump(exec('which ffmpeg'));
    var_dump(ini_get('open_basedir'));
    var_dump(is_file(exec('which ffmpeg')));
    var_dump(is_executable(exec('which ffmpeg')));

    And it returns me :

    string(49) "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
    string(0) ""
    string(44) "/var/www/vhosts/name-of-the-domain.com/:/tmp/"
    bool(false)
    bool(false)
    NULL

    ¿What could be happening ?

    A very strange thing I’ve noticed is that I can’t access any command via php :
    I tried using it with echo

    var_dump(exec('which echo'));
    var_dump(is_file(exec('which echo')));
    var_dump(is_executable(exec('which echo')));

    And it returns me :

    string(0) ""
    bool(false)
    bool(false)
    NULL

    And the permissions are right :

    [root@vps bin]# ls -lha echo
    -rwxr-xr-x 1 root root 33K ago 20 08:25 echo

    [root@vps bin]# ls -lha ffmpeg
    -rwxr-xr-x 1 root root 217K abr  4  2019 ffmpeg

    But if I make a

    var_dump(exec('echo "HELLO"'))

    it returns me

    string(5) "HELLO"
  • FFmpeg works on command line but not working on PHP script [on hold]

    6 août 2014, par burakcakirel

    Here is the screenshot to compare the results of command line output and PHP script output.

    http://screencast.com/t/e8Cdmr6aQ

    It works when ffmpeg command runs on command line, but it doesn’t work when using exec() command in php script. Any solution ?

    Also, the following screenshot shows that all about ffmpeg on the server :

    http://screencast.com/t/N9TnOORJkx

    I’ve tried /opt/mct/bin/ffmpeg and /usr/local/bin/ffmpeg. Nothing works on php script.

    safe_mode => OFF

    FFmpeg paths => 755

    EDIT : FFmpeg command already exists in the screenshot. Anyway here are the commands which none of them don’t work :

    /root/bin/ffmpeg -y -i Intro1.mp4 -strict -2 -s 640x480 Intro1_mp4.mp4 2>&1

    /opt/mct/bin/ffmpeg -y -i Intro1.mp4 -strict -2 -s 640x480 Intro1_mp4.mp4 2>&1

    /usr/local/bin/ffmpeg -y -i Intro1.mp4 -strict -2 -s 640x480 Intro1_mp4.mp4 2>&1