Enter the nginx conf directory, open the nginx configuration file nf, find worker_processes 1
Next, let's configure nginx to work with php. Unzip the downloaded nginx-1.0.4 package to the wnmp directory of the D drive, and rename it to nginx. This step is very important, here is the CGI settings for php.Ģ) Installation and configuration of nginx.
SETUP RTMP SERVER WINDOWS HOW TO
Next, let's configure php so that php can be combined with nginx. How to Make a Private RTMP Server & Re-Stream to Twitch, YouTube, etc from your WINDOWS machine, in another video I will show you how to setup your own RTMP. Of course, do n’t forget the very important step is to copy the libmysql.dll file in the php5 directory to the C: Windows directory, you can also specify the path in the system variable, of course, I chose a more convenient method ^ _ ^Īt this point, PHP can already support mysql. To serve the file on-demand when the live event is over, copy the file to the local disk of the server. Open php_mysql.dll and php_mysqli.dll here, let php support mysql. RTMP server using nginx - A somewhat advanced guide for Linux-based servers Fiddled with the RTMP setup ip (red5. Mysql extension (uncommented) extension=php_mysql.dllĪfter the ext path of php is specified above, as long as the " " corresponding to the front of the required expansion package is removed, it is ok. turn upĮxtended directory (uncommented) extension_dir = "ext" here are couple examples: Update localhost to your nginx server ip/domain. There are several source from which you can produce an rtmp stream.
SETUP RTMP SERVER WINDOWS INSTALL
sudo add-apt-repository ppa:mc3man/trusty-media sudo apt-get update sudo apt-get install ffmpeg. Additional applications can be setup in the rtmp section of your nf. To install ffmpeg using PPA run these commands. If you want to stream ONLY to youtube you can change the Server URL to rtmp://127.0.0.1:1935/youtube. Enter the folder and modify the php.ini-recommended file to php.ini, and open it with Editplus or Notepad ++. If you want to stream ONLY to facebook you can change the Server URL to rtmp://127.0.0.1:1935/facebook. Unzip the downloaded php package directly to the D drive wnmp directory (D: wnmp), and rename the decompressed folder here to php5. RunHiddenConsole: RunHiddenConsole.zip (for cmd non-blocking running process) 2. Php: php-5.2.16-nts-Win32-VC6-x86.zip (php under nginx runs in FastCGI mode, so we download the non-thread-safe php package that is nts) Nginx: nginx-rtmp-win32 or nginx/Windows-1.0.4 (no rtmp module) First need to prepare the application package.