Re: Apache2 et interprétation du php
Le 23/08/2019 à 20:26, G2PC a écrit :
Je doute que tu puisses mélanger du php7.3 et 7.0 ...
Que dit phpinfo ?
Tu as bien créé ton virtualhost ?
Tu as bien renseigné ton fichier hosts localement ?
# php -v
PHP 7.3.4-2 (cli) (built: Apr 13 2019 19:05:48) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.4, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.4-2, Copyright (c) 1999-2018, by Zend
Technologies
# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
127.0.1.1 canoe.homeg.lan canoe
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Je n'utilise pas les VirtualHosts mais j'ai ceci qui g
# cat /etc/apache2/conf-enabled/private.conf
#NameVirtualHost *
#<VirtualHost *>
Alias /private "/srv/www-private/"
<Directory "/srv/www-private/">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Require ip 192.168.0.1/23
Require local
</Directory>
#</VirtualHost>
Pour cacti :
# cat /etc/apache2/conf-enabled/cacti.conf
Alias /cacti /usr/share/cacti/site
<Directory /usr/share/cacti/site>
Options +FollowSymLinks
AllowOverride None
<IfVersion >= 2.3>
Require all granted
</IfVersion>
<IfVersion < 2.3>
Order Allow,Deny
Allow from all
</IfVersion>
AddType application/x-httpd-php .php
<IfModule mod_php.c>
php_flag magic_quotes_gpc Off
php_flag short_open_tag On
php_flag register_globals Off
php_flag register_argc_argv On
php_flag track_vars On
# this setting is necessary for some locales
php_value mbstring.func_overload 0
php_value include_path .
</IfModule>
DirectoryIndex index.php
</Directory>
Tu peux aussi installer phpsecinfo histoire de voir ce qu'il va te dire
sur ton installation :
https://github.com/ZerooCool/phpsecinfo/tree/phpsecinfo-zeroocool-v3.0.1
Pas mal de rouge et de jaune... Pour une installation "par défaut" ça
fait beaucoup :
Pass : 30 %
Notice : 12 %
Warning : 58 %
Mais pourquoi Chromium n'est pas sensible à tout ça ?
--
Migrec
Reply to: