FFmpeg 4.0.2 is available in Ubuntu Software via SNAP package (Runs in sandbox).
To upgrade from the Ubuntu build FFmpeg 3.x, the unofficial PPA contains the latest packages for Ubuntu 18.04, Ubuntu 16.04, and Ubunu 14.04.
1. Open terminal either via Ctrl+Alt+T keyboard shortcut, or by searching for ‘terminal’ from software launcher. When it opens, run command to add the PPA:
sudo add-apt-repository ppa:jonathonf/ffmpeg-4
Type user password (no asterisks feedback) when it prompts and hit Enter.
2. You can then upgrade FFmpeg libraries via Software Updater:
Or run commands in terminal:
sudo apt-get update
sudo apt-get install ffmpeg
We are running PHP 5.6 and Apache 2 on our test system. Lets see how we can install and configure this extension there.
First of all, go to /usr/src directory by running the following command:
Here create a new directory named “loader” by running the following command.
sudo mkdir loader
Now go into this newly created directory.
And download Source Guardian tar file here.
For 32bit system:
sudo wget http://www.sourceguardian.com/loaders/download/loaders.linux-i386.tar.gz
For 64bit system:
sudo wget http://www.sourceguardian.com/loaders/download/loaders.linux-x86_64.tar.gz
As soon as the file has been download, extract it by running the following command:
tar vxf loader*.tar.gz
That’s all, Now we need to copy the loader configuration file to PHP extenstion directory. Please note that if your PHP version is different, then you might have different folder/file name, run command accordingly.
sudo cp ixed.5.6.lin /usr/lib/php5/20131226/
Create a file for sourceguardian inside PHP5 mod’s directory i.e. /etc/php5/mods-available/, run following command to create file.
sudo gedit /etc/php5/mods-available/sourceguardian.conf
It will create an empty file in GEdit text editor, paste following content in this empty file. [Change your path or file names in case you are using different version of PHP]
Save the file and return back to the terminal windows. Run following command to enable this extension.
We are almost there, restart apache web server by running the following command:
sudo /etc/init.d/apache2 restart
in order to verify it, we need to see the output of phpinfo() function. Go to /var/www/html directory by running the following command.
Create an empty file here, named phpinfo.php by running the following command.
sudo gedit phpinfo.php
And paste following code in this file.
Save the file, launch your web browser and load http://localhost/phpinfo.php . It should load a page as shown in following screenshot, From here you should be able to confirm that Source Guardian is configured successfully (shown encircled in screenshot).