Restart Apache to enable the modules and any additional PHP modules installedģ.5. The modules required will vary but using the command below you can install some commonly used modules.Īpt-get install php-curl php-gd php-mcrypt php-mbstring php-xmlģ.4. You may need some additional PHP modules to run your web applications. Install additional PHP modules (optional) The SSL module is required to secure your web site with SSL/TLS (to use instead of a2enmod rewriteģ.3. The rewrite module is very useful to create SEO friendly urls for your web site and required by many frameworks and web applications. Using mpm-itk you can make sure one web site cannot access files from another one if the permissions are configured correctly, more on that later.Īpt-get install apache2 libapache2-mpm-itk php php-mysql The mpm-itk is ideal when hosting multiple web sites on a single server to isolate the sites. Install and configure Apache web server with mpm-itk and PHP7 support Choose any password here but make sure it’s a strong password and something you remember.ģ. When the server has been installed you’ll have to provide a password for the root user. In the first step, select Server and next select mysql-5.7. You will be asked to select product and version that you want to install. Download the MySQL APT repository config tool (you can see more details and the latest version of the tool here: )Ģ.2. Install the MySQL APT repository config tool We’ll install MySql 5.7 in this tutorial which requires a few additional steps.Ģ.1. Once you have followed the tutorial you’ll have a fully functional and secure web server ready to host your web sites.īefore moving any further, let’s upgrade all packages to the latest versions.īy default MySql 5.5 is included in the standard debian repositories which is a very old version. Additionally the tutorial covers installation of the vsftp server to provide FTP service, setting up letsencrypt and requesting a free certificate, installation of phpMyAdmin and configuring the iptables firewall to protect the server and only allow required ports. In this tutorial we’ll install the Debian Linux 9 (squeeze), Apache 2 with mpm-itk (to run each web as a isolated user), PHP 7 support and MySql 5.7 database server. This tutorial has been tested on the following Linux distributions:
0 Comments
Leave a Reply. |