Load mod_h264_streaming.dll in Windows Apache2 - apache2

Hi I am trying to stream video from static html5 pages serve by Windows Apache2. According to Apache guide on http://h264.code-shop.com/trac/wiki/Mod-H264-Streaming-Apache-Version2
this only for Linux, so I get the mod_h264_streaming.dll from http://h264.code-shop.com/trac/wiki/Mod-H264-Streaming-Internet-Information-Services-IIS7-Version2 but when I LoadModule h264_streaming_module modules/mod_h264_streaming.dll in httpd.conf it return
httpd.exe: Syntax error on line 129 of C:/Program Files (x86)/Apache Software Fo
undation/Apache2.2/conf/httpd.conf: Can't locate API module structure `h264_stre
aming_module' in file C:/Program Files (x86)/Apache Software Foundation/Apache2.
2/modules/mod_h264_streaming.dll: No error
Any help would be appreciated, thanks in advanced!

That dll you downloaded is only for IIS not apache

Step by Step
1- At first Download Visual Studio 2008 x64 SP1, be sure to install the Visual C++ 2008 x64 SP1 Redistributable Package
it can be downloaded from;
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=BA9257CA-337F-4B40-8C14-157CFDFFEE4E
2- Download Apache module mod_h264_streaming from ; https://www.apachehaus.net/modules/mod_h264_streaming/ in the below.Before download Please careful about your apache version.consider it.
3- Extrach files , copy "mod_h264_streaming.so"
3- If you are using Wamp server go the C:\wamp\bin\apache\Apache2.4.4\modules and drop(add,copy what ever you say) mod_h264_streaming file to the path. If you are not using wamp go to C:/Apache24/modules/ and add mod_h264_streaming.
4- Then Go to httpd.conf (in the C:\wamp\bin\apache\Apache2.4.4\conf path) , open with notepad++ find load modules line
just like ;
LoadModule auth_basic_module modules/mod_auth_basic.so // opened module
#LoadModule auth_digest_module modules/mod_auth_digest.so // closed module
#LoadModule authn_anon_module modules/mod_authn_anon.so
When you find the lines add this ;
LoadModule h264_streaming_module modules/mod_h264_streaming.so
save and quit. Finally restart the apache server. Module is ready to serve you.

Related

httpd.conf new file locations -apache2

I'm trying to add some semblance of security for my website. I've been following this: https://www.tecmint.com/apache-security-tips/ and they want me to edit the httpd file but it doesn't exist in my server. I started doing some more research and I found this https://help.ubuntu.com/lts/serverguide/httpd.html which says it doesn't exist and "all configuration options have been moved to the below referenced directories". So I would appreciate it if someone could tell me which files to add those options to! Also should I edit the apache2.conf file?
Edit: I'm using ubuntu 18.04 LTS
the Main Configuration file for RHEL/CentOS/Fedora is: /etc/httpd/conf/httpd.conf
and for Debian/Ubuntu is: /etc/apache2/apache2.conf.
as you are using ubuntu os so you should edit /etc/apache2/apache2.conf.
for more information and the history about apache2.conf and httpd.conf , as mentioned within ubuntu doc Ubuntu 18.04 Apache2 Web Server Guide:
httpd.conf: historically the main Apache2 configuration file, named
after the httpd daemon. Now the file does not exist. In older versions
of Ubuntu, the file might be present, but empty, as all configuration
options have been moved to the below-referenced directories.

PHP 7.x connection with MSSQL server with MAMP

I am trying to connect mssql server to PHP 7.0.8 through MAMP. I have tried using freetds. On some blog people are saying to use pdo_dblib.so extension but it's not working.
Please guide me through the process of connection.
For those who still have this problem:
/Applications/MAMP/bin/php/php7.2.1/bin/pecl install sqlsrv pdo_sqlsrv
Edit php.ini:
extension=sqlsrv.so
extension=pdo_sqlsrv.so
If necessary, use brew install autoconf if you don't have it already.
While the answers posted by Vague Space and Pedro Santiago helped, I still think the answers are a bit lacking and incomplete… Or ask you to do too much. Honestly the official Microsoft instructions are overkill when they state you need to install their Docker image of SQL Server and such? C’mon… Most people just need the drivers installed to make a connection.
So here is my answer based on my experience installing the pdo_sqlsrv.so and sqlsrv.so modules in MAMP (version 5.2) but should work for most any MAMP version that supports some flavor of PHP 7.
Adjust the .bash_profile so MAMP’s binaries and libraries are a part of your $PATH settings.
First, adjust your .bash_profile so the MAMP stuff is in there; makes it easier to launch and work with MAMP specific binaries and ensures MAMP libraries are checked when doing things like installing new modules like this.
The way I like to do it is like this; set $MAMP_BIN and $MAMP_PHP variables like this and then rebuild the $PATH variables:
# MAMP stuff.
export MAMP_BIN="/Applications/MAMP/Library/bin";
export MAMP_PHP="/Applications/MAMP/bin/php/php7.2.10/bin";
# Final $PATH setting.
export PATH="/usr/local/bin:/usr/local/sbin:$MAMP_BIN:$MAMP_PHP:$PATH";
Save it and just log out of the Terminal session and back in, or just resource the .bash_profile like this:
source ~/.bash_profile
With that done, let’s install the core Microsoft ODBC binary stuff.
Install the Microsoft ODBC stuff.
Do this to install the core ODBC stuff on macOS; be sure to have Homebrew installed:
brew tap microsoft/SQLSRV-release https://github.com/Microsoft/homebrew-SQLSRV-release
brew update
brew install --no-sandbox msodbcsql17 SQLSRV-tools
Then when that’s done, go ahead and install the Unix ODBC stuff like this:
brew install unixodbc
Now install the actual PHP modules via PECL:
pecl install sqlsrv pdo_sqlsrv
With the modules installed, add them to the php.ini file in MAMP so PHP can recognize it. For PHP 7.2.10 on MAMP 5.x it should be located here:
/Applications/MAMP/bin/php/php7.2.10/conf/php.ini
And just add these config lines to the bottom of the file:
; Enable 'Microsoft Drivers for PHP for SQL Server' extension module
extension = sqlsrv.so
extension = pdo_sqlsrv.so
; Configuration
;sqlsrv.WarningsReturnAsErrors = 1
;sqlsrv.LogSeverity = 0
;sqlsrv.LogSubsystems = 0
;sqlsrv.ClientBufferMaxKBSize = 10240
;pdo_sqlsrv.log_severity = 0
;pdo_sqlsrv.client_buffer_max_kb_size = 10240
Note, most tutorials—and even PECL when you install the modules—simply mention adding extension = sqlsrv.so and extension = pdo_sqlsrv.so to the php.ini config, but these config options are the ones that RedHat has when installing the PHP SQLSRV via the Remi repo. Yeah, most of them are commented out but I still like having it there for reference.
Follow this guide through step 3: Microsoft PHP drivers for SQL Server
Find where pecl drops extensions in your local machine
Copy the files pdo_sqlsrv.so and sqlsrv.so into your MAMP's PHP extension directory. Mine was located at /Applications/MAMP/bin/php/php7x.x/lib/php/extensions/no-debug-foo-bar
Edit your php.ini file to include the new extensions:
extension=sqlsrv.so
extension=pdo_sqlsrv.so
Restart your MAMP servers.
having just done this in 2019 with MAMPPRO4 on windows 10 (follow upto step 4 to test that you are connected and then do point 9 ) point 5 onwards is for changing the path in the command line
download dll files from microsoft
https://www.microsoft.com/en-gb/download/details.aspx?id=20098
follow the instruction after running the exe file and place the dll
files into the extension directory of the php version that you are
using eg: MAMP/bin/php/php7.1.29/ext
check phpinfo for the Loaded Configuration File of the php.ini file
add the 2 dll files depending on your requirements (I wasted time by
using the 64.dll) make sure you are using ts(thread safe) not
nts(none thread safe) in the file name of the dll
extension=php_sqlsrv_71_ts_x86.dll
extension=php_pdo_sqlsrv_71_ts_x86.dll
in control panel search for advanced system settings and click
click Environment Variables
under system variables not user variables click path and click edit
click new and add C:\MAMP\bin\php\php7.1.29 (Edit this to your path)
restart MAMP
open a new command line an enter php -v
you should see the php version displayed

Unable to connect Firebird 3.0 embedded version

I have tried to connect to Firebird database file using IBExpert and Flamerobin always got this error "Unable to complete network request to localhost"
Is there any changes in Firebird 3.0 with embedded version, because I can connect to version 2.5.5 without any problem?
I solved the problem and now it works great.
The problem happens if Firebird plugins folder is missing and need to put it in the root with exe file like this:
exe file
db file
fbclient.dll
plugins folder
engine12.dll ( only this file needed from plugins folder )
To let Flamerobin work you need to put fbclient.dll and plugins folder in Flamerobin folder!

How to setup GStreamer Editing Services 1.2.0 (GES) environment on windows VS2012 or VS2010

I just downloaded gstreamer 1.2.4 both normal and developer packs from here, and performed full installs of both packs.
Then I added bin location to path variable, then created c++ solution and added x86.props and gstreamer-1.0.props. I wanted to check some basic GES project, but I'm unable to do it since not all dependencies are resolved. Visual studio 2012 shows:
cannot include file : 'ges/ges-version.h'. No such file or directory.
How can I setup GES working environment on Visual Studio? What props do I need to add to my solution?
The missing gst-editing-services-1.0.props file was added in 1.2.4.1 version. You can download it from here http://gstreamer.freedesktop.org/data/pkg/windows/1.2.4.1/ .

Apache 2.4.2 (win32), mod_fcgid - Can't find module file

(lastest fcgid module)
OS: Windows Xp prof SP3
I place file mod_fcgid.so in directory (modules)
// Httpd.conf
LoadModule fcgid_module modules/mod_fcgid.so
But. When i try run http (from cmd - for test purpose)
I get error:
httpd: Syntax error on line 515 of C:/Core/Apache24/conf/httpd.conf: Cannot load
C:/Core/Apache24/modules/mod_fcgid.so into server: Nie mo\xbfna odnale\x9f\xe6
okre\x9clonego modu\xb3u.
Path is correct. So what is bad?
This link may help. Here's an example of correct syntax:
IfDefine FCGI
LoadModule fcgid_module modules/mod_fcgid.so
IfDefine
Kindly visit https://www.apachelounge.com/download/
Download zip folder named mod_fcgid
Copy&Paste mod_fcgid.so file in your apache modules folder
Remember to load in your httd.conf file => LoadModule fcgid_module modules/mod_fcgid.so

Resources