MacWarrior / clipbucket-v5

Open source video hosting with PHP
Other
69 stars 45 forks source link

unable to find php cli #359

Closed katmai closed 1 month ago

katmai commented 5 months ago

hi, i seem to have run into an odd problem. the script is reporting php cli not being present, but i know it's present.

image

i was looking in the code tests and i see it's doing exec 'which php' but i can confirm from bash shell that php is there.

$ which php
/usr/local/bin/php
 case 'php_cli':
            $php_path = exec('which php');
            if( empty($php_path) ) {
                $return['err'] = 'Unable to find PHP CLI';
                break;
            }

ffmpeg is also present when checking from bash:

$ ffmpeg
ffmpeg version 3.4.13 Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-44)
  configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro ' --extra-cflags=' ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libcdio --enable-libdrm --enable-indev=jack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopus --disable-encoder=libopus --enable-libpulse --enable-librsvg --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzvbi --enable-avfilter --enable-avresample --enable-libmodplug --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'

got any suggestions about how to get this going ?

thank you.

system is centos7 w/php 8.2

katmai commented 5 months ago

as soon as i posted this, like literally seconds, i realized i was running php in fpm mode. swapped it to CGI and now it all works :)))))))))))))))))))))))))

MacWarrior commented 5 months ago

Hello @katmai,

During installation process, only PHP and MySQL are mendatory Once installation is done, you will be able to specify each software path from admin area configurations

To get software paths, we use "which" command from www user In your case, you might have tested from root ; please log on your www user and then try : which ffmpeg I bet it won't found ffmpeg path 😉

Best regards, MacWarrior.

katmai commented 5 months ago

it all works now, but no i haven't tested as root, obviously :)

~]$ which ffmpeg
/usr/bin/ffmpeg
MacWarrior commented 3 months ago

Hello @katmai,

I just merged some huge changes on installation process which allow you now to specify not foud softwares filepaths This should help a lot in your case

Best regards, MacWarrior.

katmai commented 3 months ago

Hello @katmai,

I just merged some huge changes on installation process which allow you now to specify not foud softwares filepaths This should help a lot in your case

Best regards, MacWarrior.

thanks a bunch. will check it out!