Hi,
I'm configuring Ubuntu 16.04 with Apache 2.4, PHP 7 PHP-FPM and MariaDB.
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.
Here is roughly what I did:
apt-get -y install mariadb-server mariadb-client
mysql_secure_installation
apt-get -y install apache2
apt-get -y install php7.0 libapache2-mod-php7.0
apt-get -y install php7.0-mysql
added the following to /etc/apache2/sites-available/000-default.conf
<Directory /usr/lib/cgi-bin>
Require all granted
</Directory>
<IfModule mod_fastcgi.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php7
Action application/x-httpd-php /php7-fcgi
AddHandler php7-fcgi .php
Action php7-fcgi /php7-fcgi
Alias /php7-fcgi /usr/lib/cgi-bin/php7-fcgi
# socket version
#FastCgiExternalServer /usr/lib/cgi-bin/php7-fcgi -socket /var/run/php/php7.0-fpm.sock -pass-header Authorization
FastCgiExternalServer /usr/lib/cgi-bin/php7-fcgi -flush -idle-timeout 300 -host 127.0.0.1:9000 -pass-header Authorization
</IfModule>
systemctl restart apache2
sudo a2enconf php7.0-fpm
service apache2 reload
I've also run service php7.0-fpm restart
Thank you in advance for any help!!
Keith
---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss