<div dir="ltr">Do you need to a2enmod php7?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 17, 2016 at 6:59 PM, Keith Smith <span dir="ltr"><<a href="mailto:techlists@phpcoderusa.com" target="_blank">techlists@phpcoderusa.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
Hi,<br>
<br>
I'm configuring Ubuntu 16.04 with Apache 2.4, PHP 7 PHP-FPM and MariaDB.<br>
<br>
If I go to the IP I see the default HTML page.  I added a file info.php with <?php phpinfo();  And when I go to the IP/info.php my browser wants to download the file.<br>
<br>
Here is roughly what I did:<br>
<br>
apt-get -y install mariadb-server mariadb-client<br>
mysql_secure_installation<br>
apt-get -y install apache2<br>
apt-get -y install php7.0 libapache2-mod-php7.0<br>
apt-get -y install php7.0-mysql<br>
<br>
added the following to /etc/apache2/sites-available/0<wbr>00-default.conf<br>
<br>
   <Directory /usr/lib/cgi-bin><br>
         Require all granted<br>
    </Directory><br>
<br>
    <IfModule mod_fastcgi.c><br>
<br>
          AddType application/x-httpd-php .php<br>
          AddType application/x-httpd-php .php7<br>
          Action application/x-httpd-php /php7-fcgi<br>
<br>
                AddHandler php7-fcgi .php<br>
                Action php7-fcgi /php7-fcgi<br>
                Alias /php7-fcgi /usr/lib/cgi-bin/php7-fcgi<br>
                # socket version<br>
                #FastCgiExternalServer /usr/lib/cgi-bin/php7-fcgi -socket /var/run/php/php7.0-fpm.sock -pass-header Authorization<br>
                FastCgiExternalServer /usr/lib/cgi-bin/php7-fcgi -flush -idle-timeout 300 -host <a href="http://127.0.0.1:9000" rel="noreferrer" target="_blank">127.0.0.1:9000</a> -pass-header Authorization<br>
        </IfModule><br>
<br>
<br>
<br>
systemctl restart apache2<br>
sudo a2enconf php7.0-fpm<br>
service apache2 reload<br>
I've also run service php7.0-fpm restart<br>
<br>
Thank you in advance for any help!!<br>
<br>
Keith<br>
------------------------------<wbr>---------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.or<wbr>g</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">http://lists.phxlinux.org/mail<wbr>man/listinfo/plug-discuss</a><br>
</blockquote></div><br></div>