Install Mplayer Debian Wheezy Lamp
This tutorial exists for these OS versions
- Debian 9 (Stretch)
Install mplayer Installing mplayer package on Debian 7 (Wheezy) is as easy as running the following command on terminal: sudo apt-get update sudo apt-get install mplayer.
Installation of the webserver software (Apache, MySQL, PHP); Installation of the transcoding software (ffmpeg, Mencoder, flv2tool); Installation of ViMP. TIP On request, we'll be happy to. Normally your server should already be pre-configured with a LAMP system (Linux-Apache-MySQL-PHP). Shouldn't that be the case,. A LAMP (Linux, Apache, MySQL, PHP) stack is a common web stack used to prepare servers for hosting web content. This guide shows you how to install a LAMP stack on a Debian 7 (Wheezy) Linode.
On this page
LAMP is short for Linux, Apache, MySQL, PHP. This tutorial shows how you can install an Apache web server on a Debian Stretch (9) server with PHP 7 (mod_php) and MariaDB support. MariaDB is a fork of the well known MySQL database server, it provides a MySQL compatible feature set and is a bit faster according to benchmarks that I found on the internet. MariaDB will work with all applications that require MySQL like Wordpress, Joomla etc.
A LAMP setup is a perfect basis for CMS systems like Joomla, Wordpress or Drupal.
1 Preliminary Note
In this tutorial, I use the hostname server1.example.com with the IP address 192.168.1.100. These settings might differ for you, so you have to replace them where appropriate.
2 Installing MariaDB as MySQL replacement
First, we install MariaDB like this:
Next, we will secure MariaDB with the mysql_secure_installation command. Run the below command and follow the wizard.
The recommended input is shown in red.
The MariaDB setup is secured now.
3 Installing Apache web server
Apache is available as a Debian package, therefore we can install it like this:
Now direct your browser to http://192.168.1.100, and you should see the Apache2 placeholder page (It works!):
Apache's default document root is /var/www on Debian, and the configuration file is /etc/apache2/apache2.conf. Additional configurations are stored in subdirectories of the /etc/apache2 directory such as /etc/apache2/mods-enabled (for Apache modules), /etc/apache2/sites-enabled (for virtual hosts), and /etc/apache2/conf-enabled.
4 Installing PHP 7.1
We can install PHP and the Apache PHP module as follows:
We must restart Apache afterward:
5 Testing PHP / Getting details about your PHP installation
The document root of the default web site is /var/www/html. We will now create a small PHP file (info.php) in that directory and call it in a browser. The file will display lots of useful details about our PHP installation, such as the installed PHP version.
Now we call that file in a browser (e.g. http://192.168.1.100/info.php):
As you see, PHP 7.0 is working, and it's working through the Apache 2.0 Handler, as shown in the Server API line. If you scroll further down, you will see all modules that are already enabled in PHP5. MySQL / MariaDB is not listed there which means we don't have MySQL support in PHP5 yet.
6 Getting MySQL and MariaDB Support in PHP
To get MySQL support in PHP, we will install the php7.0-mysql package. It's a good idea to install some other PHP modules as well as you might need them for your applications. You can search for available PHP 7 modules like this:
Pick the ones you need and install them like this:
Now restart Apache:
7 PHP Cache to improve the PHP speed
To speed up PHP, an Opcache should be installed. Check if the PHP Opcache module has been installed and enabled correctly.Run this command:
The output shall contain the line I marked in red.
If you do not see the Opcache module in the result, install it with this command:
There is one more cache which might be useful, it's name is APCu. APCu is a free PHP opcode cacher for caching and optimizing PHP intermediate code.
APCu can be installed as follows:
Now restart Apache:
Now reload http://192.168.1.100/info.php in your browser and scroll down to the modules section again. You should now find lots of new modules there, including the MySQL module which is used as MariaDB driver:
8 phpMyAdmin
phpMyAdmin is a web interface through which you can manage your MySQL and MariaDB databases. It's a good idea to install it:
You will see the following questions:
Afterwards, you can access phpMyAdmin under http://192.168.1.100/phpmyadmin/:
Install Mplayer Debian Wheezy Lamps
9 Enable MySQL root Login for phpMyAdmin
While you can log in as root user into MariaDB on the shell, the root login will not work in phpMyAdmin. To allow the root user to use phpMyAdmin as well, run the following command on the shell:
10 Links
- Apache: http://httpd.apache.org/
- PHP: http://www.php.net/
- MySQL: http://www.mysql.com/
- Debian: http://www.debian.org/
- phpMyAdmin: http://www.phpmyadmin.net/