Header set Strict-Transport-Security: "max-age=31536000 includeSubDomains preload" # Only connect to this site and subdomains via HTTPS for the next year and also include in the preload list
![how to install curl ubuntu 14.04 how to install curl ubuntu 14.04](https://www.linuxbabe.com/wp-content/uploads/2016/07/install-apache-2.4.7-on-Ubuntu-14.04.png)
Header set Content-Security-Policy: "default-src https: font-src https: data: img-src https: data: 'self' about: script-src 'unsafe-inline' 'unsafe-eval' https: data: style-src 'unsafe-inline' https: " # Pre-existing site uses too much inline code to fix, but wants to ensure resources are loaded only over https Header set X-XSS-Protection: "1 mode=block" # Block pages from loading when they detect reflected XSS attacks This defends against clickjacking attacks. # Prevent other sites from embedding pages from this site as frames. Header set X-Content-Type-Options: "nosniff" Install missing PHP7 modules sudo apt-get install php7.0-mysql php7.0-curl php7.0-gd php7.0-json php7.0-mbstring php7.0-mcrypt php7.0-opcache php7.0-tidy php7.0-xml php7.0-xmlrpcĮnable the mod_ext_filter Apache module for W3 Total Cache: sudo a2enmod ext_filterĮdit /etc/apache2/conf-enabled/nf to send only minimal information about the server: ServerTokens ProdĪdd the following to your Apache configuration file /etc/apache2/conf-enabled/nf: # Prevent MSIE from interpreting files as something else than declared by the content type in the HTTP headers. Migrate from PHP 5.6 to PHP 7 Remove PHP5 sudo apt-get purge php5-common When asked whether to install the updated version of /etc/logrotate.d/apache2, select “yes”.When asked whether to install the updated version of nf, select “yes”.
#HOW TO INSTALL CURL UBUNTU 14.04 UPGRADE#
Upgrade to Ubuntu 16.04.1 sudo do-release-upgrade Reboot and check Apache’s error log: sudo shutdown -r now
![how to install curl ubuntu 14.04 how to install curl ubuntu 14.04](https://www.unixmen.com/wp-content/uploads/2015/08/unxmen_008.png)
#HOW TO INSTALL CURL UBUNTU 14.04 UPDATE#
Install all available updates sudo apt-get update Note: to be on the safe side I ran all following commands on the console, not via SSH. Backupīackup your machine by exporting the VM from Hyper-V Manager. Please see this article for more information on the server’s installation and configuration. This post describes how I upgraded our webserver running WordPress on Apache from Ubuntu 14.04.5 LTS to 16.04.1 LTS.