Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - hitsfmdj

Pages: [1]
1
PHP / PHP extension directory
« on: May 26, 2016, 11:10:32 PM »
Hello could anyone provide me with the default php extension directory that CWP installs all .so files to?

Following a guide for proper ffmpeg installation over at https://blog.bullten.com/installing-ffmpeg-on-centos-web-panel/


I created my own extension directory and now pointing to that via php.ini, But I need to move all those old .so files from where ever that default "/" directory is, Because now calling all extensions except ffmpeg-php  in scripts results in the obvious errors that X.so is not found in /mynew/default.directory/ext/ in Apache error log file.
Any help or ideas?
Thanks :)

2
Well I was able to fix the above  issue by:

./configure --with-ffmpeg=/usr/local/cpffmpeg

Then looked at phpinfo and sure enough ffmpeg php module is now active. But now everytime a script calls for it, The Apache error log file spits out all this garbage now and no video converting :(

[Thu May 26 13:44:25 2016] [error] [client 24.139.25.40] ffmpeg version 0.9.1-syslint, Copyright (c) 2000-2012 the FFmpeg developers, referer: http://radiogaga.ga/vidi/upload
[Thu May 26 13:44:25 2016] [error] [client 24.139.25.40]   built on Nov  1 2015 16:42:55 with gcc 4.4.7 20120313 (Red Hat 4.4.7-16), referer: http://radiogaga.ga/vidi/upload
[Thu May 26 13:44:25 2016] [error] [client 24.139.25.40]   configuration: --prefix=/usr/local/cpffmpeg --enable-shared --enable-nonfree --enable-gpl --enable-pthreads --enable-libopencore-amrnb --enable-decoder=liba52 --enable-libopencore-amrwb --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --extra-cflags=-I/usr/local/cpffmpeg/include/ --extra-ldflags=-L/usr/local/cpffmpeg/lib --enable-version3 --extra-version=syslint, referer: http://radiogaga.ga/vidi/upload
[Thu May 26 13:44:25 2016] [error] [client 24.139.25.40]   libavutil    51. 32. 0 / 51. 32. 0, referer: http://radiogaga.ga/vidi/upload
[Thu May 26 13:44:25 2016] [error] [client 24.139.25.40]   libavcodec   53. 42. 4 / 53. 42. 4, referer: http://radiogaga.ga/vidi/upload
[Thu May 26 13:44:25 2016] [error] [client 24.139.25.40]   libavformat  53. 24. 2 / 53. 24. 2, referer: http://radiogaga.ga/vidi/upload
[Thu May 26 13:44:25 2016] [error] [client 24.139.25.40]   libavdevice  53.  4. 0 / 53.  4. 0, referer: http://radiogaga.ga/vidi/upload
[Thu May 26 13:44:25 2016] [error] [client 24.139.25.40]   libavfilter   2. 53. 0 /  2. 53. 0, referer: http://radiogaga.ga/vidi/upload
[Thu May 26 13:44:25 2016] [error] [client 24.139.25.40]   libswscale    2.  1. 0 /  2.  1. 0, referer: http://radiogaga.ga/vidi/upload
[Thu May 26 13:44:25 2016] [error] [client 24.139.25.40]   libpostproc  51.  2. 0 / 51.  2. 0, referer: http://radiogaga.ga/vidi/upload
[Thu May 26 13:44:25 2016] [error] [client 24.139.25.40] , referer: http://radiogaga.ga/vidi/upload
[Thu May 26 13:44:25 2016] [error] [client 24.139.25.40] Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 25.00 (25/1), referer: http://radiogaga.ga/vidi/upload
[Thu May 26 13:44:25 2016] [error] [client 24.139.25.40] Input #0, flv, from '/home/radioga/public_html/vidi/uploads/small.flv':, referer: http://radiogaga.ga/vidi/upload
[Thu May 26 13:44:25 2016] [error] [client 24.139.25.40]   Metadata:, referer: http://radiogaga.ga/vidi/upload
[Thu May 26 13:44:25 2016] [error] [client 24.139.25.40]     audiodelay      : 0, referer: http://radiogaga.ga/vidi/upload
[Thu May 26 13:44:25 2016] [error] [client 24.139.25.40]     audiosize       : 25162, referer: http://radiogaga.ga/vidi/upload
[Thu May 26 13:44:25 2016] [error] [client 24.139.25.40]     videosize       : 589575, referer: http://radiogaga.ga/vidi/upload
[Thu May 26 13:44:25 2016] [error] [client 24.139.25.40]     hasCuePoints    : false, referer: http://radiogaga.ga/vidi/upload
[Thu May 26 13:44:25 2016] [error] [client 24.139.25.40]     metadatacreator : inlet media FLVTool2 v1.0.6 - http://www.inlet-media.de/flvtool2, referer: http://radiogaga.ga/vidi/upload


And more and more of that.......

3
Hello, I did some more searching online and my problem seems more common then I thought. It seems that to get ffmpeg-php extention to work correctly, There is more step then just clicking "Install ffmpeg" from within the CWP panel. Looking at this link at https://blog.bullten.com/installing-ffmpeg-on-centos-web-panel/ here it explains the proper method on installing ffmpeg properly on a CWP machine. Here is where I get screwed up.

C) Navigate to ffmpeg-php folder.

cd /usr/src/ffmpeg-php/trunk

 

D) Now run the installation.

phpize
./configure
make && make install

So I log into shell and follow the guide word to word, I get to compile step and get this error:

configure: error: ffmpeg shared libraries not found. Make sure ffmpeg is compiled as shared libraries using the --enable-shared option

so I then do whereis ffmpeg and shell output:
ffmpeg: /usr/bin/ffmpeg /usr/local/bin/ffmpeg /usr/share/ffmpeg /usr/share/man/man1/ffmpeg.1.gz

Any ideas? Thanks

4
I looked at the log file over at /usr/local/apache/logs/error_log and get this output

 PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/extensions/no-debug-non-zts-20100525/ffmpeg.so' - /usr/lib/extensions/no-debug-non-zts-20100525/ffmpeg.so: cannot open shared object file: No such file or directory in Unknown on line 0, referer: http://radiogaga.ga/clip/cc-admin/logs.php

I have installed ffmpeg via CWP control panel and it shows up as installed at /usr/bin/ffmpeg

A little memo here, Since I installed Centos/CWP I did not do anything yum or configure from terminal in background. In other words As far as I know all my configurations are left alone.

Looks like some module is not loading or some php.ini file is pointing to a bad directory, I did take a look at this /usr/lib/extensions/no-debug-non-zts-20100525/ directory and it does exist in my system but it is empty. And I am not sure why and how it is pointing to this empty directory.

At this point I'm not sure if my problem is with Centos or CWP or both? I tried this over again on fresh VM with Centos and CWP and reproducing the same errors. I did some google on the topic PDO and cumulusClips with not much success but finding my own posts lol.

Since I can't seem to figure any of this out and this project of mine has been ongoing now for 1 year with no success. One long story short I have a commercial upload package at home. I need to self host because with my luck, When I setup hosted blogs and Facebook accounts etc I end up dealing with people drama, I get caught up and fight for a cause or opinion and usually end up getting banned. Same for videos, I post a video with me describing my feelings and a radio plays in the background and youtube goes nuts over copyright. It seems like even if what ever I do is just for personal, I run into drama, So to cut out the middle person, I want to setup my own blog on my own servers so my handful of local trouble makers can't mark perfect content as "offensive" etc. Same with movies. I would like to upload and share movies in private with friends without youtube and the big players telling me what I can and can't do. So by setup my own server I can do all this. I love the idea of CWP, I have not been able to install other control panels. Probably because I am no Linux expert, Just an average user that can figure things out with time. So that is why I hope no one take offense at what may look like stupid questions as I'm also trying to learn at the same time. Perhaps with that said someone could recommend an alternative configuration that is known to work with video streaming scripts and CWP. I was able to install video streaming scripts on bare bones Centos system running a server just for this. But having all these computers in my room all for separate sites got a little ridiculous imo. So I have this one big server system here that with Centos and CWP im assuming should do what it is I want it to.

Thanks for reading!

5
I have installed the script manually on a dedicated non CWP Centos Box in the past, It has worked great.

 I never did try to install the script manually from a CWP client user. That is a good idea. I will try it next and let you know how it goes. Should this work out just fine. Someone at Softaculous/CWP should look at why the "streaming" auto install scripts don't auto install properly with this configuration and make some sort of memo as Softaculous is installable via CWP, giving me the impression parts should not be broken from default install of everything :)
Thanks

*Update*
I have installed the script manually and I still get this error at log:

PHP Warning:  include(PDO.php): failed to open stream: No such file or directory in /home/radioga/public_html/clip/cc-core/lib/App.php on line 29
PHP Warning:  include(): Failed opening 'PDO.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php:/home/radioga/public_html/clip/cc-core/lib:/home/radioga/public_html/clip/cc-core/models:/home/radioga/public_html/clip/cc-core/mappers:/home/radioga/public_html/clip/cc-core/services') in /home/radioga/public_html/clip/cc-core/lib/App.php on line 29
PHP Fatal error:  Class 'PDO' not found in /home/radioga/public_html/clip/cc-core/system/bootstrap.php on line 36

So I go into CWP panel as root and click on PHP Short Info and I get this:

PHP Short Info

You are running PHP version: 5.4.45

Loaded PHP Modules:

[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
ionCube Loader
json
libxml
mbstring
mcrypt
mysql
mysqli
mysqlnd
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
Reflection
session
SimpleXML
soap
sockets
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
zlib

[Zend Modules]
the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured)

So it looks like indeed like everything I need is loaded. I'm at a loss. Not finding much info over at CumulusClips, Perhaps some configuration file within the script directory is over riding some CWP server php.ini defaults? Any place I should look for that? Thanks!

6
I'm still getting the error. Thinking PDO was not installed at first, It is. But the error in question is still PDO releated. how I can configure it to work? I'm I missing something obvious here because the folks won't answer me over that Softaculous over these issues. This post is not on right topic?v Anyone can recommend where I could go to get some answers?

7
My apologies, You are correct, PDO is loaded by default. I was looking at Apache loaded modules and not PHP loaded modules doh!. PDO is showing as loaded, so this error is kind of strange. Funny how all video scripts from Softaculous all don't work. But all those 400 some scripts work great with default CWP install. I chose CumulusClips script here because looking at the error log it seems like the most simple issue to fix so that any video script can work on my CWP box. Don't really care what script as long as it is video streaming. :)
Thanks

8
I have a default CWP install. This time since my other sites have been running great, I did not configure or modified any of the Apache/PHP settings. Here is the error I get, I did look at CWP Page loaded Apache modules list and this one does not show up ether.

PHP Warning:  include(PDO.php): failed to open stream: No such file or directory in /home/radioga/public_html/clips/cc-core/lib/App.php on line 29
PHP Warning:  include(): Failed opening 'PDO.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php:/home/radioga/public_html/clips/cc-core/lib:/home/radioga/public_html/clips/cc-core/models:/home/radioga/public_html/clips/cc-core/mappers:/home/radioga/public_html/clips/cc-core/services') in /home/radioga/public_html/clips/cc-core/lib/App.php on line 29
PHP Fatal error:  Class 'PDO' not found in /home/radioga/public_html/clips/cc-core/system/bootstrap.php on line 36

Now if this was just a plain system, I would just get a copy of that module and link it to the paths above and refer and load it in php extensions list. I just don't want to work behind CWP not aware of some changes I do in the background and may break. So there is probably a CWP friendly method on loading and unloading of some modules? Thanks!

9
Hello I run a Centos server at home. This runs CWP. I use this to run my various personal sites and domains all conveniently shared hosted on one box. Problem is I have yet been able to install and run any of the built in video scripts that Softaculous has to offer including this CumulusClips. I have been able to install this before on a server made just for this one site and configurations on a non shared environment. That was kind of easy and swift, Just follow one of the setup guides online. How ever this is not my goal. I do not want to run a real physical or VM box just to host this one site. I would like the video sites to also be able to run off my server backed via CWP and Softaculous, I am not a linux expert but I can find my way around if I have to. the reason I like this configuration for my hosting platform is the simplicity of the CWP install. You just provide a minimal Centos install and the CWP install script does the rest and auto configures apparently everything you need. I cross my fingers and hope it works and along with Softaculous, I am able to install my CMS scripts and various all other various scripts work just fine installed via a click of a button via Softaculous. But no working video scripts :( Anyhow I install this on my system and Videos are stuck at "pending convertion" so my log show that PDO extension is not installed. The fact that CWP did not install and configure this module automatically gives me a head ache now. In a normal case I would just install it myself but I dread the idea of trying as this system is already hosting several sites of mine fine, With some of my minor experiences if you try to do your own, Yum installs in the background of a CWP configured system of Apache and PHP related things, It breaks the CWP. In past I had to re-format and try again, This time not tingeing with settings I normally would. and this is where I am not good enough in linux to start repairing and rebuilding modules of a accidental CWP break figuring what could of went wrong. So in short, Does anyone have experience installing this video script on a Centos System running CWP? Anyone know how I could install this PHP extention without breaking my system mostly the CWP admin script. Thank you so much!

Pages: [1]