Problèmes et questions sur les environnements graphiques et les applications.

Installation de Mariadb - php - apache - phpmyadmin

#1Messageil y a 5 ans

Bonjour,

Je suis des cours sur Openclassroom et ceux-ci nous demande dans le cadre de l'apprentissage en php et mysql d'installer XAMPP.
Cette application n'est disponible que dans AUR.
À l'installation, j'ai ceci :

==> Extracting package (this might take several minutes, don't give up!)...
mysql: Error while executing group action
Puis, le curseur clignote indéfiniment. Je sais qu'il est dit plus haut qu'il faut patienter plusieurs minutes, mais là cela fait 20 minutes que j'attends.
Est-ce à cause de cette erreur de mysql ?
Si c'était le cas, l'installation s'arrêterait et mon terminal terminerait le session, non ? :?:?

Le site d'openclassroom demande à ce qu'on le télécharge et l'installe sans passer par le gestionnaire de paquets, mais c'est déconseillé chez Manjaro. Or, le wiki d'archlinux, dit aussi de l'installer soit par AUR, soit manuellement.
Puis-je le faire sans risque ?

Merci.
Dernière modification par obelix1502il y a 5 ans, modifié au total 1 fois.

Installation de Mariadb - php - apache - phpmyadmin

#2Messageil y a 5 ans

Bonjour
Inutile d'installer xampp, c'est une usine à gaz. Il te faut seulement apache, php et mariadb qui est le pendant libre avec les même commande que mysql. C'est le même développeur. Par contre, nous avons php7 et la configuration globale d'un serveur diffère quelque peu d'une distro debian.
Tu as un tuto éloquent sur l'inter.

Installation de Mariadb - php - apache - phpmyadmin

#3Messageil y a 5 ans

:bjr:
Tout à fait, (as lemust83) xamp est à mettre aux oubliettes (même avec une ubuntu!), il n'apporte rien de plus et que des problèmes. Avec le tuto inter tu ne devrais rencontrer aucun problème pour les cours php par la suite

Installation de Mariadb - php - apache - phpmyadmin

#4Messageil y a 5 ans

Bon ben je vous ai écouté et suivi le tuto.
Déjà après l'installation d'apache et l'essai proposé dans le tutoriel, j'ai un accès interdit : soit celui-ci est protégé, soit il ne peut être lu par le serveur.
Même avec gufw désactivé. :siffle:siffle

Installation de Mariadb - php - apache - phpmyadmin

#5Messageil y a 5 ans

on ne sait pas de quoi tu parles - de quelle url:saispas:
- tu as cette erreur dés le début du tuto (avant php) ?
- uniquement avec ton fichier php ?
- si tu crées un nouveau fichier .html, tu as aussi des problèmes d'accès (403) ?

adapter le répertoire (/srv/http/) en fonction de ta config

ls -l /srv/http/
fichier doivent être en lecture pour tous !
MAIS
pour des cours il est chelou d'éditer 36 000 fois des fichiers root donc il est préférable de créer un lien symbolique vers un répertoire de ton home (ex: ~/www)

cela peut être aussi dans la config de php (open_basedir php ne s'exécute que dans quelques répertoires...)

----
Si tu rencontres une erreur, il faut toujours lire les logs : pour apache ils sont dans /var/log

Installation de Mariadb - php - apache - phpmyadmin

#6Messageil y a 5 ans

l'url est celle indiquée dans le tuto http://localhost/, juste après l'installation d'apache.
J'ai bien commenté la ligne LoadModule unique_id_module modules/mod_unique_id.so dans httpd.conf.
Puis

sudo systemctl enable httpd
sudo systemctl restart httpd
Le statut de httpd est bien démarré.
J'ai créé le fichier index.html dans sudo nano /srv/http/index.html en ajoutant ce qui était dempandé à savoir :

<html>
<head>
  <title>Welcome</title>
</head>
<body>
  <h2>Welcome to my Web Server test page</h2>
</body>
</html>
Puis quand j'ouvre http://localhost/ dans le navigateur j'obtiens ceci :
Image

Voilà où cela cloche.

Édit : j'ai modifié les droits dans /srv/http/index.html et là cela s'affiche.
Donc à chaque page html créée, je devrai modifier les droits ?

Même chose avec php et phpmyadmin : voici les logs :

192.168.0.14 - - [09/Mar/2019:18:47:22 +0100] "GET /test.php HTTP/1.1" 500 -
::1 - - [09/Mar/2019:18:56:12 +0100] "GET / HTTP/1.1" 403 1052
127.0.0.1 - - [09/Mar/2019:19:22:34 +0100] "GET / HTTP/1.1" 403 1052
127.0.0.1 - - [09/Mar/2019:19:22:34 +0100] "GET /favicon.ico HTTP/1.1" 404 1079
::1 - - [09/Mar/2019:19:29:45 +0100] "GET / HTTP/1.1" 200 116
::1 - - [09/Mar/2019:19:34:24 +0100] "GET /test.php HTTP/1.1" 500 -
::1 - - [09/Mar/2019:19:39:39 +0100] "GET /test.php HTTP/1.1" 500 -
::1 - - [09/Mar/2019:19:39:42 +0100] "GET /test.php HTTP/1.1" 500 -
::1 - - [09/Mar/2019:19:39:44 +0100] "GET /test.php HTTP/1.1" 500 -
::1 - - [09/Mar/2019:19:39:46 +0100] "GET /test.php HTTP/1.1" 500 -
::1 - - [09/Mar/2019:19:39:47 +0100] "GET /test.php HTTP/1.1" 500 -
::1 - - [09/Mar/2019:19:39:48 +0100] "GET /test.php HTTP/1.1" 500 -
::1 - - [09/Mar/2019:19:39:50 +0100] "GET /test.php HTTP/1.1" 500 -
::1 - - [09/Mar/2019:19:39:52 +0100] "GET /test.php HTTP/1.1" 500 -
Dernière modification par obelix1502il y a 5 ans, modifié au total 1 fois.

Installation de Mariadb - php - apache - phpmyadmin

#7Messageil y a 5 ans

apache est un logiciel pour les hébergeurs web donc sa config ne correspond pas à un développeur !

Comme dit dans le précédent message, il faut mieux utiliser un répertoire dans ton home
- un lien symbolique qui remplace /srv/http/
- ou modifier conf/httpd.conf pour pointer vers ton répertoire home

----
Erreur 500 : c'est un plantage interne de php ; tu as surtout d'autres logs d'erreurs pour php que les access (cela peut-être simplement du mauvais code php ou mal suivi le tuto...)

----
ps: on relance le serveur apache(httpd) après chaque modif dans le .conf

Installation de Mariadb - php - apache - phpmyadmin

#8Messageil y a 5 ans

Typiquement, on crée un dossier de travail dans $HOME et on fait un lien vers /srv : sudo ln -s /home/toto/dossier_qui_va_bien /srv/http/. Il faudra donner les droits ad-hoc à ce dossier:

chmod o+x ~
chmod o+x ~/dossier_qui_va_bien
Je me suis pas mal gratté la tête avant de réaliser que j'avais mal réalisé les modifications de /etc/httpd/conf/httpd.conf donc je suppose raisonnablement que tu as du oublier un truc...

Installation de Mariadb - php - apache - phpmyadmin

#9Messageil y a 5 ans

Alors, je me casse les dents depuis hier.
Pour Apache, ça va je m'en sors.
Là où ça ne va pas c'est avec php.
J'ai bien créé le fichier test.php dans /srv/http/ avec ceci à l'intérieur :

<?php
phpinfo();
Et les modifications du fichier /etc/httpd/conf/httpd.conf
Voici le ligne décommentée :

#LoadModule mpm_event_module modules/mod_mpm_event.so
LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
#LoadModule mpm_worker_module modules/mod_mpm_worker.so
Voici donc ce qui a été ajouté à la fin comme, je pense, le tutoriel le préconise :

LoadModule php7_module modules/libphp7.so
AddHandler php7-script php
Include conf/extra/php7_module.conf
Include conf/extra/phpmyadmin.conf
Je relance le tout par sudo systemctl restart httpd
Mais dès que je veux ouvrir la page http://localhost/test.php :
"La connexion a échoué"
Y aurait-il aussi un problème de droits avec /srv/http/test.php ?
J'ai bien regardé et c'est bien la version 7 de php qui est installée.

Installation de Mariadb - php - apache - phpmyadmin

#10Messageil y a 5 ans

Normalement il n'y a aucune manipulation particulière en dehors du tuto :confus:

Comme dit plus haut - il faut regarder les logs ! /var/log/httpd/error_log

Normalement il n'y a rien de particulier dans les droits des fichiers du serveur : (ls -l) - uniquement le 3eme petit "r" pour lecture pour tous (même avec le fichier php)

-rw-r--r-- 1 root root 21 "10.03.2019 11:53" index.html
-rw-r--r-- 1 root root 24 "10.03.2019 12:07" test.php
---------------------
Ton retour n'est pas logique ! tu as déjà Include conf/extra/phpmyadmin.conf:o
On fait le tuto dans l'ordre ! on test php et uniquement si il fonctionne on continue - ici ton erreur peut être dans phpmyadmin (phpmyadmin est un script php!) Avec l'install de phpmyadmin on modifie la config de php donc il y a risque de planter php...
Tu peux au moins lancer php en ligne de commande (dans ta console) pour voir si il ne retourne pas d'erreur :wink:

php --ini
php /srv/http/test.php

Installation de Mariadb - php - apache - phpmyadmin

#11Messageil y a 5 ans

J'ai lancé en console tes deux commandes.
Pour la première, je pense que c'est bon.
Mais le retour de la deuxième, désolé mains je n'y comprends encore rien.
Désolé, mais je débute.
Voici le retour des deux commandes :

#( 03/10/19@ 4:27 )( bruno@bruno ):~
   php --ini
Configuration File (php.ini) Path: /etc/php
Loaded Configuration File:         /etc/php/php.ini
Scan for additional .ini files in: /etc/php/conf.d
Additional .ini files parsed:      (none)
#( 03/10/19@ 4:27 )( bruno@bruno ):~
   php /srv/http/test.php 
phpinfo()
PHP Version => 7.3.3

System => Linux bruno 5.0.1-1-MANJARO #1 SMP PREEMPT Sun Mar 10 10:34:49 UTC 2019 x86_64
Build Date => Mar  6 2019 18:03:57
Configure Command =>  './configure'  '--srcdir=../php-7.3.3' '--config-cache' '--prefix=/usr' '--sbindir=/usr/bin' '--sysconfdir=/etc/php' '--localstatedir=/var' '--with-layout=GNU' '--with-config-file-path=/etc/php' '--with-config-file-scan-dir=/etc/php/conf.d' '--disable-rpath' '--mandir=/usr/share/man' '--without-pear' '--enable-cgi' '--enable-fpm' '--with-fpm-systemd' '--with-fpm-acl' '--with-fpm-user=http' '--with-fpm-group=http' '--enable-embed=shared' '--enable-bcmath=shared' '--enable-calendar=shared' '--enable-dba=shared' '--enable-exif=shared' '--enable-ftp=shared' '--enable-intl=shared' '--enable-mbstring' '--enable-shmop=shared' '--enable-soap=shared' '--enable-sockets=shared' '--enable-sysvmsg=shared' '--enable-sysvsem=shared' '--enable-sysvshm=shared' '--enable-zip=shared' '--with-bz2=shared' '--with-curl=shared' '--with-db4=/usr' '--with-enchant=shared,/usr' '--with-freetype-dir=/usr' '--with-gd=shared,/usr' '--with-gdbm' '--with-gettext=shared' '--with-gmp=shared' '--with-iconv=shared' '--with-imap-ssl' '--with-imap=shared' '--with-kerberos=/usr' '--with-ldap=shared' '--with-ldap-sasl' '--with-libzip' '--with-mhash' '--with-mysql-sock=/run/mysqld/mysqld.sock' '--with-mysqli=shared,mysqlnd' '--with-openssl' '--with-password-argon2' '--with-pcre-regex=/usr' '--with-pdo-dblib=shared,/usr' '--with-pdo-mysql=shared,mysqlnd' '--with-pdo-odbc=shared,unixODBC,/usr' '--with-pdo-pgsql=shared' '--with-pdo-sqlite=shared,/usr' '--with-pgsql=shared' '--with-pspell=shared' '--with-readline' '--with-snmp=shared' '--with-sodium=shared' '--with-sqlite3=shared,/usr' '--with-tidy=shared' '--with-unixODBC=shared,/usr' '--with-xmlrpc=shared' '--with-xsl=shared' '--with-zlib' '--enable-pcntl'
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /etc/php
Loaded Configuration File => /etc/php/php.ini
Scan this dir for additional .ini files => /etc/php/conf.d
Additional .ini files parsed => (none)
PHP API => 20180731
PHP Extension => 20180731
Zend Extension => 320180731
Zend Extension Build => API320180731,NTS
PHP Extension Build => API20180731,NTS
Debug Build => no
Thread Safety => disabled
Zend Signal Handling => enabled
Zend Memory Manager => enabled
Zend Multibyte Support => provided by mbstring
IPv6 Support => enabled
DTrace Support => disabled

Registered PHP Streams => https, ftps, compress.zlib, compress.bzip2, php, file, glob, data, http, ftp, phar, zip
Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, tls, tlsv1.0, tlsv1.1, tlsv1.2
Registered Stream Filters => zlib.*, bzip2.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk

This program makes use of the Zend Scripting Language Engine:
Zend Engine v3.3.3, Copyright (c) 1998-2018 Zend Technologies


 _______________________________________________________________________


Configuration

bz2

BZip2 Support => Enabled
Stream Wrapper support => compress.bzip2://
Stream Filter support => bzip2.decompress, bzip2.compress
BZip2 Version => 1.0.6, 6-Sept-2010

Core

PHP Version => 7.3.3

Directive => Local Value => Master Value
allow_url_fopen => On => On
allow_url_include => Off => Off
arg_separator.input => & => &
arg_separator.output => & => &
auto_append_file => no value => no value
auto_globals_jit => On => On
auto_prepend_file => no value => no value
browscap => no value => no value
default_charset => UTF-8 => UTF-8
default_mimetype => text/html => text/html
disable_classes => no value => no value
disable_functions => no value => no value
display_errors => Off => Off
display_startup_errors => Off => Off
doc_root => no value => no value
docref_ext => no value => no value
docref_root => no value => no value
enable_dl => Off => Off
enable_post_data_reading => On => On
error_append_string => no value => no value
error_log => no value => no value
error_prepend_string => no value => no value
error_reporting => 22527 => 22527
expose_php => On => On
extension_dir => /usr/lib/php/modules/ => /usr/lib/php/modules/
file_uploads => On => On
hard_timeout => 2 => 2
highlight.comment => <font style="color: #FF8000">#FF8000</font> => <font style="color: #FF8000">#FF8000</font>
highlight.default => <font style="color: #0000BB">#0000BB</font> => <font style="color: #0000BB">#0000BB</font>
highlight.html => <font style="color: #000000">#000000</font> => <font style="color: #000000">#000000</font>
highlight.keyword => <font style="color: #007700">#007700</font> => <font style="color: #007700">#007700</font>
highlight.string => <font style="color: #DD0000">#DD0000</font> => <font style="color: #DD0000">#DD0000</font>
html_errors => Off => Off
ignore_repeated_errors => Off => Off
ignore_repeated_source => Off => Off
ignore_user_abort => Off => Off
implicit_flush => On => On
include_path => .: => .:
input_encoding => no value => no value
internal_encoding => no value => no value
log_errors => On => On
log_errors_max_len => 1024 => 1024
mail.add_x_header => Off => Off
mail.force_extra_parameters => no value => no value
mail.log => no value => no value
max_execution_time => 0 => 0
max_file_uploads => 20 => 20
max_input_nesting_level => 64 => 64
max_input_time => -1 => -1
max_input_vars => 1000 => 1000
memory_limit => 128M => 128M
open_basedir => no value => no value
output_buffering => 0 => 0
output_encoding => no value => no value
output_handler => no value => no value
post_max_size => 8M => 8M
precision => 14 => 14
realpath_cache_size => 4096K => 4096K
realpath_cache_ttl => 120 => 120
register_argc_argv => On => On
report_memleaks => On => On
report_zend_debug => Off => Off
request_order => GP => GP
sendmail_from => no value => no value
sendmail_path => /usr/bin/sendmail -t -i  => /usr/bin/sendmail -t -i 
serialize_precision => -1 => -1
short_open_tag => Off => Off
SMTP => localhost => localhost
smtp_port => 25 => 25
sys_temp_dir => no value => no value
syslog.facility => LOG_USER => LOG_USER
syslog.filter => no-ctrl => no-ctrl
syslog.ident => php => php
track_errors => Off => Off
unserialize_callback_func => no value => no value
upload_max_filesize => 2M => 2M
upload_tmp_dir => no value => no value
user_dir => no value => no value
user_ini.cache_ttl => 300 => 300
user_ini.filename => .user.ini => .user.ini
variables_order => GPCS => GPCS
xmlrpc_error_number => 0 => 0
xmlrpc_errors => Off => Off
zend.assertions => -1 => -1
zend.detect_unicode => On => On
zend.enable_gc => On => On
zend.multibyte => Off => Off
zend.script_encoding => no value => no value
zend.signal_check => Off => Off

ctype

ctype functions => enabled

curl

cURL support => enabled
cURL Information => 7.64.0
Age => 4
Features
AsynchDNS => Yes
CharConv => No
Debug => No
GSS-Negotiate => No
IDN => Yes
IPv6 => Yes
krb4 => No
Largefile => Yes
libz => Yes
NTLM => Yes
NTLMWB => Yes
SPNEGO => Yes
SSL => Yes
SSPI => No
TLS-SRP => Yes
HTTP2 => Yes
GSSAPI => Yes
KERBEROS5 => Yes
UNIX_SOCKETS => Yes
PSL => Yes
HTTPS_PROXY => Yes
MULTI_SSL => No
BROTLI => No
Protocols => dict, file, ftp, ftps, gopher, http, https, imap, imaps, pop3, pop3s, rtsp, scp, sftp, smb, smbs, smtp, smtps, telnet, tftp
Host => x86_64-pc-linux-gnu
SSL Version => OpenSSL/1.1.1b
ZLib Version => 1.2.11
libSSH Version => libssh2/1.8.0

Directive => Local Value => Master Value
curl.cainfo => no value => no value

date

date/time support => enabled
timelib version => 2018.01RC3
"Olson" Timezone Database Version => 2018.9
Timezone Database => internal
Default timezone => UTC

Directive => Local Value => Master Value
date.default_latitude => 31.7667 => 31.7667
date.default_longitude => 35.2333 => 35.2333
date.sunrise_zenith => 90.583333 => 90.583333
date.sunset_zenith => 90.583333 => 90.583333
date.timezone => no value => no value

dom

DOM/XML => enabled
DOM/XML API Version => 20031129
libxml Version => 2.9.9
HTML Support => enabled
XPath Support => enabled
XPointer Support => enabled
Schema Support => enabled
RelaxNG Support => enabled

fileinfo

fileinfo support => enabled
libmagic => 533

filter

Input Validation and Filtering => enabled

Directive => Local Value => Master Value
filter.default => unsafe_raw => unsafe_raw
filter.default_flags => no value => no value

hash

hash support => enabled
Hashing Engines => md2 md4 md5 sha1 sha224 sha256 sha384 sha512/224 sha512/256 sha512 sha3-224 sha3-256 sha3-384 sha3-512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru snefru256 gost gost-crypto adler32 crc32 crc32b fnv132 fnv1a32 fnv164 fnv1a64 joaat haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5 

MHASH support => Enabled
MHASH API Version => Emulated Support

json

json support => enabled
json version => 1.7.0

libxml

libXML support => active
libXML Compiled Version => 2.9.9
libXML Loaded Version => 20909
libXML streams => enabled

mbstring

Multibyte Support => enabled
Multibyte string engine => libmbfl
HTTP input encoding translation => disabled
libmbfl version => 1.3.2
oniguruma version => 6.9.0

mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.

Multibyte (japanese) regex support => enabled
Multibyte regex (oniguruma) backtrack check => On
Multibyte regex (oniguruma) version => 6.9.0

Directive => Local Value => Master Value
mbstring.detect_order => no value => no value
mbstring.encoding_translation => Off => Off
mbstring.func_overload => 0 => 0
mbstring.http_input => no value => no value
mbstring.http_output => no value => no value
mbstring.http_output_conv_mimetypes => ^(text/|application/xhtml\+xml) => ^(text/|application/xhtml\+xml)
mbstring.internal_encoding => no value => no value
mbstring.language => neutral => neutral
mbstring.strict_detection => Off => Off
mbstring.substitute_character => no value => no value

mysqli

MysqlI Support => enabled
Client API library version => mysqlnd 5.0.12-dev - 20150407 - $Id: 7cc7cc96e675f6d72e5cf0f267f48e167c2abb23 $
Active Persistent Links => 0
Inactive Persistent Links => 0
Active Links => 0

Directive => Local Value => Master Value
mysqli.allow_local_infile => Off => Off
mysqli.allow_persistent => On => On
mysqli.default_host => no value => no value
mysqli.default_port => 3306 => 3306
mysqli.default_pw => no value => no value
mysqli.default_socket => /run/mysqld/mysqld.sock => /run/mysqld/mysqld.sock
mysqli.default_user => no value => no value
mysqli.max_links => Unlimited => Unlimited
mysqli.max_persistent => Unlimited => Unlimited
mysqli.reconnect => Off => Off
mysqli.rollback_on_cached_plink => Off => Off

mysqlnd

mysqlnd => enabled
Version => mysqlnd 5.0.12-dev - 20150407 - $Id: 7cc7cc96e675f6d72e5cf0f267f48e167c2abb23 $
Compression => supported
core SSL => supported
extended SSL => supported
Command buffer size => 4096
Read buffer size => 32768
Read timeout => 86400
Collecting statistics => Yes
Collecting memory statistics => No
Tracing => n/a
Loaded plugins => mysqlnd,debug_trace,auth_plugin_mysql_native_password,auth_plugin_mysql_clear_password,auth_plugin_sha256_password
API Extensions => mysqli

mysqlnd statistics =>  
bytes_sent => 0
bytes_received => 0
packets_sent => 0
packets_received => 0
protocol_overhead_in => 0
protocol_overhead_out => 0
bytes_received_ok_packet => 0
bytes_received_eof_packet => 0
bytes_received_rset_header_packet => 0
bytes_received_rset_field_meta_packet => 0
bytes_received_rset_row_packet => 0
bytes_received_prepare_response_packet => 0
bytes_received_change_user_packet => 0
packets_sent_command => 0
packets_received_ok => 0
packets_received_eof => 0
packets_received_rset_header => 0
packets_received_rset_field_meta => 0
packets_received_rset_row => 0
packets_received_prepare_response => 0
packets_received_change_user => 0
result_set_queries => 0
non_result_set_queries => 0
no_index_used => 0
bad_index_used => 0
slow_queries => 0
buffered_sets => 0
unbuffered_sets => 0
ps_buffered_sets => 0
ps_unbuffered_sets => 0
flushed_normal_sets => 0
flushed_ps_sets => 0
ps_prepared_never_executed => 0
ps_prepared_once_executed => 0
rows_fetched_from_server_normal => 0
rows_fetched_from_server_ps => 0
rows_buffered_from_client_normal => 0
rows_buffered_from_client_ps => 0
rows_fetched_from_client_normal_buffered => 0
rows_fetched_from_client_normal_unbuffered => 0
rows_fetched_from_client_ps_buffered => 0
rows_fetched_from_client_ps_unbuffered => 0
rows_fetched_from_client_ps_cursor => 0
rows_affected_normal => 0
rows_affected_ps => 0
rows_skipped_normal => 0
rows_skipped_ps => 0
copy_on_write_saved => 0
copy_on_write_performed => 0
command_buffer_too_small => 0
connect_success => 0
connect_failure => 0
connection_reused => 0
reconnect => 0
pconnect_success => 0
active_connections => 0
active_persistent_connections => 0
explicit_close => 0
implicit_close => 0
disconnect_close => 0
in_middle_of_command_close => 0
explicit_free_result => 0
implicit_free_result => 0
explicit_stmt_close => 0
implicit_stmt_close => 0
mem_emalloc_count => 0
mem_emalloc_amount => 0
mem_ecalloc_count => 0
mem_ecalloc_amount => 0
mem_erealloc_count => 0
mem_erealloc_amount => 0
mem_efree_count => 0
mem_efree_amount => 0
mem_malloc_count => 0
mem_malloc_amount => 0
mem_calloc_count => 0
mem_calloc_amount => 0
mem_realloc_count => 0
mem_realloc_amount => 0
mem_free_count => 0
mem_free_amount => 0
mem_estrndup_count => 0
mem_strndup_count => 0
mem_estrdup_count => 0
mem_strdup_count => 0
mem_edupl_count => 0
mem_dupl_count => 0
proto_text_fetched_null => 0
proto_text_fetched_bit => 0
proto_text_fetched_tinyint => 0
proto_text_fetched_short => 0
proto_text_fetched_int24 => 0
proto_text_fetched_int => 0
proto_text_fetched_bigint => 0
proto_text_fetched_decimal => 0
proto_text_fetched_float => 0
proto_text_fetched_double => 0
proto_text_fetched_date => 0
proto_text_fetched_year => 0
proto_text_fetched_time => 0
proto_text_fetched_datetime => 0
proto_text_fetched_timestamp => 0
proto_text_fetched_string => 0
proto_text_fetched_blob => 0
proto_text_fetched_enum => 0
proto_text_fetched_set => 0
proto_text_fetched_geometry => 0
proto_text_fetched_other => 0
proto_binary_fetched_null => 0
proto_binary_fetched_bit => 0
proto_binary_fetched_tinyint => 0
proto_binary_fetched_short => 0
proto_binary_fetched_int24 => 0
proto_binary_fetched_int => 0
proto_binary_fetched_bigint => 0
proto_binary_fetched_decimal => 0
proto_binary_fetched_float => 0
proto_binary_fetched_double => 0
proto_binary_fetched_date => 0
proto_binary_fetched_year => 0
proto_binary_fetched_time => 0
proto_binary_fetched_datetime => 0
proto_binary_fetched_timestamp => 0
proto_binary_fetched_string => 0
proto_binary_fetched_json => 0
proto_binary_fetched_blob => 0
proto_binary_fetched_enum => 0
proto_binary_fetched_set => 0
proto_binary_fetched_geometry => 0
proto_binary_fetched_other => 0
init_command_executed_count => 0
init_command_failed_count => 0
com_quit => 0
com_init_db => 0
com_query => 0
com_field_list => 0
com_create_db => 0
com_drop_db => 0
com_refresh => 0
com_shutdown => 0
com_statistics => 0
com_process_info => 0
com_connect => 0
com_process_kill => 0
com_debug => 0
com_ping => 0
com_time => 0
com_delayed_insert => 0
com_change_user => 0
com_binlog_dump => 0
com_table_dump => 0
com_connect_out => 0
com_register_slave => 0
com_stmt_prepare => 0
com_stmt_execute => 0
com_stmt_send_long_data => 0
com_stmt_close => 0
com_stmt_reset => 0
com_stmt_set_option => 0
com_stmt_fetch => 0
com_deamon => 0
bytes_received_real_data_normal => 0
bytes_received_real_data_ps => 0

openssl

OpenSSL support => enabled
OpenSSL Library Version => OpenSSL 1.1.1b  26 Feb 2019
OpenSSL Header Version => OpenSSL 1.1.1b  26 Feb 2019
Openssl default config => /etc/ssl/openssl.cnf

Directive => Local Value => Master Value
openssl.cafile => no value => no value
openssl.capath => no value => no value

pcntl

pcntl support => enabled

pcre

PCRE (Perl Compatible Regular Expressions) Support => enabled
PCRE Library Version => 10.32 2018-09-10
PCRE Unicode Version => 11.0.0
PCRE JIT Support => enabled
PCRE JIT Target => x86 64bit (little endian + unaligned)

Directive => Local Value => Master Value
pcre.backtrack_limit => 1000000 => 1000000
pcre.jit => 1 => 1
pcre.recursion_limit => 100000 => 100000

PDO

PDO support => enabled
PDO drivers =>  

Phar

Phar: PHP Archive support => enabled
Phar API version => 1.1.1
Phar-based phar archives => enabled
Tar-based phar archives => enabled
ZIP-based phar archives => enabled
gzip compression => enabled
bzip2 compression => enabled
Native OpenSSL support => enabled


Phar based on pear/PHP_Archive, original concept by Davey Shafik.
Phar fully realized by Gregory Beaver and Marcus Boerger.
Portions of tar implementation Copyright (c) 2003-2009 Tim Kientzle.
Directive => Local Value => Master Value
phar.cache_list => no value => no value
phar.readonly => On => On
phar.require_hash => On => On

posix

POSIX support => enabled

readline

Readline Support => enabled
Readline library => 8.0

Directive => Local Value => Master Value
cli.pager => no value => no value
cli.prompt => \b \>  => \b \> 

Reflection

Reflection => enabled

session

Session Support => enabled
Registered save handlers => files user 
Registered serializer handlers => php_serialize php php_binary 

Directive => Local Value => Master Value
session.auto_start => Off => Off
session.cache_expire => 180 => 180
session.cache_limiter => nocache => nocache
session.cookie_domain => no value => no value
session.cookie_httponly => no value => no value
session.cookie_lifetime => 0 => 0
session.cookie_path => / => /
session.cookie_samesite => no value => no value
session.cookie_secure => 0 => 0
session.gc_divisor => 1000 => 1000
session.gc_maxlifetime => 1440 => 1440
session.gc_probability => 1 => 1
session.lazy_write => On => On
session.name => PHPSESSID => PHPSESSID
session.referer_check => no value => no value
session.save_handler => files => files
session.save_path => no value => no value
session.serialize_handler => php => php
session.sid_bits_per_character => 5 => 5
session.sid_length => 26 => 26
session.upload_progress.cleanup => On => On
session.upload_progress.enabled => On => On
session.upload_progress.freq => 1% => 1%
session.upload_progress.min_freq => 1 => 1
session.upload_progress.name => PHP_SESSION_UPLOAD_PROGRESS => PHP_SESSION_UPLOAD_PROGRESS
session.upload_progress.prefix => upload_progress_ => upload_progress_
session.use_cookies => 1 => 1
session.use_only_cookies => 1 => 1
session.use_strict_mode => 0 => 0
session.use_trans_sid => 0 => 0

SimpleXML

SimpleXML support => enabled
Schema support => enabled

SPL

SPL support => enabled
Interfaces => OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject
Classes => AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, CallbackFilterIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveCallbackFilterIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHeap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedValueException

standard

Dynamic Library Support => enabled
Path to sendmail => /usr/bin/sendmail -t -i 

Directive => Local Value => Master Value
assert.active => 1 => 1
assert.bail => 0 => 0
assert.callback => no value => no value
assert.exception => 0 => 0
assert.quiet_eval => 0 => 0
assert.warning => 1 => 1
auto_detect_line_endings => 0 => 0
default_socket_timeout => 60 => 60
from => no value => no value
session.trans_sid_hosts => no value => no value
session.trans_sid_tags => a=href,area=href,frame=src,form= => a=href,area=href,frame=src,form=
url_rewriter.hosts => no value => no value
url_rewriter.tags => form= => form=
user_agent => no value => no value

tokenizer

Tokenizer Support => enabled

xml

XML Support => active
XML Namespace Support => active
libxml2 Version => 2.9.9

xmlreader

XMLReader => enabled

xmlwriter

XMLWriter => enabled

zip

Zip => enabled
Zip version => 1.15.4
Libzip headers version => 1.5.1
Libzip library version => 1.5.1

zlib

ZLib Support => enabled
Stream Wrapper => compress.zlib://
Stream Filter => zlib.inflate, zlib.deflate
Compiled Version => 1.2.11
Linked Version => 1.2.11

Directive => Local Value => Master Value
zlib.output_compression => Off => Off
zlib.output_compression_level => -1 => -1
zlib.output_handler => no value => no value

Additional Modules

Module Name

Environment

Variable => Value
XDG_SEAT_PATH => /org/freedesktop/DisplayManager/Seat0
XDG_CONFIG_DIRS => /etc/xdg
LC_TELEPHONE => fr_BE.UTF-8
LANG => fr_BE.utf8
XDG_VTNR => 7
SHLVL => 2
LOGNAME => bruno
PWD => /home/bruno
LC_NAME => fr_BE.UTF-8
DISPLAY => :0.0
MOZ_PLUGIN_PATH => /usr/lib/mozilla/plugins
XDG_GREETER_DATA_DIR => /var/lib/lightdm-data/bruno
XDG_SESSION_CLASS => user
QT_QPA_PLATFORMTHEME => qt5ct
XAUTHORITY => /home/bruno/.Xauthority
COLORTERM => truecolor
XDG_SESSION_ID => 2
GTK2_RC_FILES => /home/bruno/.gtkrc-2.0
DESKTOP_SESSION => xfce
XDG_RUNTIME_DIR => /run/user/1000
XDG_SESSION_DESKTOP => xfce
GDMSESSION => xfce
GDK_CORE_DEVICE_EVENTS => 1
LC_IDENTIFICATION => fr_BE.UTF-8
LC_MEASUREMENT => fr_BE.UTF-8
LC_PAPER => fr_BE.UTF-8
LC_NUMERIC => fr_BE.UTF-8
LC_MONETARY => fr_BE.UTF-8
DBUS_SESSION_BUS_ADDRESS => unix:path=/run/user/1000/bus
VTE_VERSION => 5403
MAIL => /var/spool/mail/bruno
XDG_DATA_DIRS => /home/bruno/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/usr/share
_ => /usr/sbin/php
XDG_MENU_PREFIX => xfce-
SHELL => /usr/bin/zsh
XDG_SESSION_TYPE => x11
LC_TIME => fr_BE.UTF-8
WINDOWID => 81788935
TERM => xterm-256color
GTK_MODULES => canberra-gtk-module
XDG_CURRENT_DESKTOP => XFCE
SESSION_MANAGER => local/bruno:@/tmp/.ICE-unix/1011,unix/bruno:/tmp/.ICE-unix/1011
EDITOR => /usr/bin/nano
PATH => /usr/sbin:/sbin:/usr/games:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
HOME => /home/bruno
XDG_SEAT => seat0
LC_ADDRESS => fr_BE.UTF-8
XDG_SESSION_PATH => /org/freedesktop/DisplayManager/Session0
SSH_AUTH_SOCK => /run/user/1000/keyring/ssh
USER => bruno
OLDPWD => /home/bruno
ZSH => /home/bruno/.oh-my-zsh
PAGER => less
LESS => -R
LC_CTYPE => fr_BE.utf8
LSCOLORS => Gxfxcxdxbxegedabagacad
LS_COLORS => rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:

PHP Variables

Variable => Value
$_SERVER['XDG_SEAT_PATH'] => /org/freedesktop/DisplayManager/Seat0
$_SERVER['XDG_CONFIG_DIRS'] => /etc/xdg
$_SERVER['LC_TELEPHONE'] => fr_BE.UTF-8
$_SERVER['LANG'] => fr_BE.utf8
$_SERVER['XDG_VTNR'] => 7
$_SERVER['SHLVL'] => 2
$_SERVER['LOGNAME'] => bruno
$_SERVER['PWD'] => /home/bruno
$_SERVER['LC_NAME'] => fr_BE.UTF-8
$_SERVER['DISPLAY'] => :0.0
$_SERVER['MOZ_PLUGIN_PATH'] => /usr/lib/mozilla/plugins
$_SERVER['XDG_GREETER_DATA_DIR'] => /var/lib/lightdm-data/bruno
$_SERVER['XDG_SESSION_CLASS'] => user
$_SERVER['QT_QPA_PLATFORMTHEME'] => qt5ct
$_SERVER['XAUTHORITY'] => /home/bruno/.Xauthority
$_SERVER['COLORTERM'] => truecolor
$_SERVER['XDG_SESSION_ID'] => 2
$_SERVER['GTK2_RC_FILES'] => /home/bruno/.gtkrc-2.0
$_SERVER['DESKTOP_SESSION'] => xfce
$_SERVER['XDG_RUNTIME_DIR'] => /run/user/1000
$_SERVER['XDG_SESSION_DESKTOP'] => xfce
$_SERVER['GDMSESSION'] => xfce
$_SERVER['GDK_CORE_DEVICE_EVENTS'] => 1
$_SERVER['LC_IDENTIFICATION'] => fr_BE.UTF-8
$_SERVER['LC_MEASUREMENT'] => fr_BE.UTF-8
$_SERVER['LC_PAPER'] => fr_BE.UTF-8
$_SERVER['LC_NUMERIC'] => fr_BE.UTF-8
$_SERVER['LC_MONETARY'] => fr_BE.UTF-8
$_SERVER['DBUS_SESSION_BUS_ADDRESS'] => unix:path=/run/user/1000/bus
$_SERVER['VTE_VERSION'] => 5403
$_SERVER['MAIL'] => /var/spool/mail/bruno
$_SERVER['XDG_DATA_DIRS'] => /home/bruno/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/usr/share
$_SERVER['_'] => /usr/sbin/php
$_SERVER['XDG_MENU_PREFIX'] => xfce-
$_SERVER['SHELL'] => /usr/bin/zsh
$_SERVER['XDG_SESSION_TYPE'] => x11
$_SERVER['LC_TIME'] => fr_BE.UTF-8
$_SERVER['WINDOWID'] => 81788935
$_SERVER['TERM'] => xterm-256color
$_SERVER['GTK_MODULES'] => canberra-gtk-module
$_SERVER['XDG_CURRENT_DESKTOP'] => XFCE
$_SERVER['SESSION_MANAGER'] => local/bruno:@/tmp/.ICE-unix/1011,unix/bruno:/tmp/.ICE-unix/1011
$_SERVER['EDITOR'] => /usr/bin/nano
$_SERVER['PATH'] => /usr/sbin:/sbin:/usr/games:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
$_SERVER['HOME'] => /home/bruno
$_SERVER['XDG_SEAT'] => seat0
$_SERVER['LC_ADDRESS'] => fr_BE.UTF-8
$_SERVER['XDG_SESSION_PATH'] => /org/freedesktop/DisplayManager/Session0
$_SERVER['SSH_AUTH_SOCK'] => /run/user/1000/keyring/ssh
$_SERVER['USER'] => bruno
$_SERVER['OLDPWD'] => /home/bruno
$_SERVER['ZSH'] => /home/bruno/.oh-my-zsh
$_SERVER['PAGER'] => less
$_SERVER['LESS'] => -R
$_SERVER['LC_CTYPE'] => fr_BE.utf8
$_SERVER['LSCOLORS'] => Gxfxcxdxbxegedabagacad
$_SERVER['LS_COLORS'] => rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
$_SERVER['PHP_SELF'] => /srv/http/test.php
$_SERVER['SCRIPT_NAME'] => /srv/http/test.php
$_SERVER['SCRIPT_FILENAME'] => /srv/http/test.php
$_SERVER['PATH_TRANSLATED'] => /srv/http/test.php
$_SERVER['DOCUMENT_ROOT'] => 
$_SERVER['REQUEST_TIME_FLOAT'] => 1552231688.5956
$_SERVER['REQUEST_TIME'] => 1552231688
$_SERVER['argv'] => Array
(
    [0] => /srv/http/test.php
)

$_SERVER['argc'] => 1

PHP License
This program is free software; you can redistribute it and/or modify
it under the terms of the PHP License as published by the PHP Group
and included in the distribution in the file:  LICENSE

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If you did not receive a copy of the PHP license, or have any
questions about PHP licensing, please contact license@php.net.
#( 03/10/19@ 4:28 )( bruno@bruno ):~
   
Voici le retour de /var/log/httpd/error_log :

  GNU nano 3.2                                                                                  /var/log/httpd/error_log                                                                                            

AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Sat Mar 09 18:08:07.427989 2019] [mpm_event:notice] [pid 18107:tid 140291815844800] AH00489: Apache/2.4.38 (Unix) configured -- resuming normal operations
[Sat Mar 09 18:08:07.428038 2019] [core:notice] [pid 18107:tid 140291815844800] AH00094: Command line: '/usr/bin/httpd -D FOREGROUND'
[Sat Mar 09 18:11:51.191868 2019] [core:error] [pid 18114:tid 140291763713792] (13)Permission denied: [client ::1:55452] AH00132: file permissions deny server access: /srv/http/index.html
[Sat Mar 09 18:13:34.602926 2019] [core:error] [pid 18114:tid 140291600242432] (13)Permission denied: [client ::1:55478] AH00132: file permissions deny server access: /srv/http/index.html, referer: http://localh$
[Sat Mar 09 18:13:35.965020 2019] [core:error] [pid 18113:tid 140291805677312] (13)Permission denied: [client ::1:55480] AH00132: file permissions deny server access: /srv/http/index.html, referer: http://localh$
[Sat Mar 09 18:13:36.885551 2019] [core:error] [pid 18112:tid 140291797284608] (13)Permission denied: [client ::1:55482] AH00132: file permissions deny server access: /srv/http/index.html, referer: http://localh$
[Sat Mar 09 18:13:38.030287 2019] [core:error] [pid 18112:tid 140291323414272] (13)Permission denied: [client ::1:55482] AH00132: file permissions deny server access: /srv/http/index.html, referer: http://localh$
[Sat Mar 09 18:18:49.080832 2019] [core:error] [pid 18112:tid 140291356985088] (13)Permission denied: [client ::1:55730] AH00132: file permissions deny server access: /srv/http/index.html, referer: http://localh$
[Sat Mar 09 18:18:51.003476 2019] [core:error] [pid 18112:tid 140291772106496] (13)Permission denied: [client ::1:55730] AH00132: file permissions deny server access: /srv/http/index.html, referer: http://localh$
[Sat Mar 09 18:18:53.531015 2019] [core:error] [pid 18112:tid 140291650598656] (13)Permission denied: [client ::1:55730] AH00132: file permissions deny server access: /srv/http/index.html, referer: http://localh$
[Sat Mar 09 18:37:33.608931 2019] [mpm_event:notice] [pid 18107:tid 140291815844800] AH00492: caught SIGWINCH, shutting down gracefully
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Sat Mar 09 18:37:33.701676 2019] [mpm_prefork:notice] [pid 21732] AH00163: Apache/2.4.38 (Unix) PHP/7.3.3 configured -- resuming normal operations
[Sat Mar 09 18:37:33.701703 2019] [core:notice] [pid 21732] AH00094: Command line: '/usr/bin/httpd -D FOREGROUND'
[Sat Mar 09 18:38:55.945307 2019] [php7:warn] [pid 21737] [client 192.168.0.14:37990] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Sat Mar 09 18:38:55.945336 2019] [php7:error] [pid 21737] [client 192.168.0.14:37990] PHP Fatal error:  Unknown: Failed opening required '/srv/http/test.php' (include_path='.:') in Unknown on line 0
[Sat Mar 09 18:39:50.060416 2019] [php7:warn] [pid 21741] [client ::1:56244] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Sat Mar 09 18:39:50.060446 2019] [php7:error] [pid 21741] [client ::1:56244] PHP Fatal error:  Unknown: Failed opening required '/srv/http/test.php' (include_path='.:') in Unknown on line 0
[Sat Mar 09 18:43:52.930677 2019] [mpm_prefork:notice] [pid 21732] AH00170: caught SIGWINCH, shutting down gracefully
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Sat Mar 09 18:43:53.042235 2019] [mpm_prefork:notice] [pid 21858] AH00163: Apache/2.4.38 (Unix) PHP/7.3.3 configured -- resuming normal operations
[Sat Mar 09 18:43:53.042260 2019] [core:notice] [pid 21858] AH00094: Command line: '/usr/bin/httpd -D FOREGROUND'
[Sat Mar 09 18:44:20.019022 2019] [php7:warn] [pid 21863] [client ::1:56354] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Sat Mar 09 18:44:20.019060 2019] [php7:error] [pid 21863] [client ::1:56354] PHP Fatal error:  Unknown: Failed opening required '/srv/http/test.php' (include_path='.:') in Unknown on line 0
[Sat Mar 09 18:44:21.511899 2019] [php7:warn] [pid 21864] [client ::1:56380] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Sat Mar 09 18:44:21.511922 2019] [php7:error] [pid 21864] [client ::1:56380] PHP Fatal error:  Unknown: Failed opening required '/srv/http/test.php' (include_path='.:') in Unknown on line 0
[Sat Mar 09 18:44:22.637591 2019] [php7:warn] [pid 21866] [client ::1:56382] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Sat Mar 09 18:44:22.637616 2019] [php7:error] [pid 21866] [client ::1:56382] PHP Fatal error:  Unknown: Failed opening required '/srv/http/test.php' (include_path='.:') in Unknown on line 0
[Sat Mar 09 18:44:23.768463 2019] [php7:warn] [pid 21867] [client ::1:56386] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Sat Mar 09 18:44:23.768497 2019] [php7:error] [pid 21867] [client ::1:56386] PHP Fatal error:  Unknown: Failed opening required '/srv/http/test.php' (include_path='.:') in Unknown on line 0
[Sat Mar 09 18:44:24.938365 2019] [php7:warn] [pid 21865] [client ::1:56390] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Sat Mar 09 18:44:24.938388 2019] [php7:error] [pid 21865] [client ::1:56390] PHP Fatal error:  Unknown: Failed opening required '/srv/http/test.php' (include_path='.:') in Unknown on line 0
[Sat Mar 09 18:44:26.038205 2019] [php7:warn] [pid 21863] [client ::1:56392] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Sat Mar 09 18:44:26.038227 2019] [php7:error] [pid 21863] [client ::1:56392] PHP Fatal error:  Unknown: Failed opening required '/srv/http/test.php' (include_path='.:') in Unknown on line 0
[Sat Mar 09 18:44:27.086116 2019] [php7:warn] [pid 21864] [client ::1:56394] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Sat Mar 09 18:44:27.086139 2019] [php7:error] [pid 21864] [client ::1:56394] PHP Fatal error:  Unknown: Failed opening required '/srv/http/test.php' (include_path='.:') in Unknown on line 0
[Sat Mar 09 18:44:28.058854 2019] [php7:warn] [pid 21866] [client ::1:56396] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Sat Mar 09 18:44:28.058878 2019] [php7:error] [pid 21866] [client ::1:56396] PHP Fatal error:  Unknown: Failed opening required '/srv/http/test.php' (include_path='.:') in Unknown on line 0
[Sat Mar 09 18:44:28.976505 2019] [php7:warn] [pid 21867] [client ::1:56398] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Sat Mar 09 18:44:28.976529 2019] [php7:error] [pid 21867] [client ::1:56398] PHP Fatal error:  Unknown: Failed opening required '/srv/http/test.php' (include_path='.:') in Unknown on line 0
[Sat Mar 09 18:44:29.751500 2019] [php7:warn] [pid 21865] [client ::1:56400] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Sat Mar 09 18:44:29.751520 2019] [php7:error] [pid 21865] [client ::1:56400] PHP Fatal error:  Unknown: Failed opening required '/srv/http/test.php' (include_path='.:') in Unknown on line 0
[Sat Mar 09 18:44:30.766895 2019] [php7:warn] [pid 21863] [client ::1:56404] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Sat Mar 09 18:44:30.766918 2019] [php7:error] [pid 21863] [client ::1:56404] PHP Fatal error:  Unknown: Failed opening required '/srv/http/test.php' (include_path='.:') in Unknown on line 0
[Sat Mar 09 18:45:35.090083 2019] [core:error] [pid 21864] (13)Permission denied: [client ::1:56488] AH00132: file permissions deny server access: /srv/http/index.html
[Sat Mar 09 18:46:48.239032 2019] [core:error] [pid 21866] (13)Permission denied: [client 192.168.0.14:38286] AH00132: file permissions deny server access: /srv/http/index.html
[Sat Mar 09 18:47:22.028331 2019] [php7:warn] [pid 21867] [client 192.168.0.14:38298] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0

^G Aide          ^O Écrire        ^W Chercher      ^K Couper        ^J Justifier     ^C Pos. cur.     M-U Annuler      M-A Marquer      M-] Parenthèse coM-Q Précédent    ^B En arrière    ^◀ Mot précédent
^X Quitter       ^R Lire fich.    ^\ Remplacer     ^U Coller        ^T Orthograp.    ^_ Aller lig.    M-E Refaire      M-6 Copier       ^Q Retrouver     M-W Suivant      ^F En avant      ^▶ Mot suivant
Si tu pouvais m'aider... :rendre::rendre:

Installation de Mariadb - php - apache - phpmyadmin

#12Messageil y a 5 ans

tes logs (d'hier !) montrent un problème de droits, je t'ai donné mon exemple d'un ls -l : un chmod 644 suffit largement, je ne sais pas ce que tu as aujourd'hui :saispas:
Ici tu ne montres pas les bons logs ! c'est l'erreur d'hier avant 19h00 qui concernait les droits pour html et donc aussi php - Ce qui compte c'est la dernière erreur (3..4 dernières lignes) et pas le début du log. Tu peux utiliser un simple cat et retourner que la fin
obelix1502 a écrit : il y a 5 ans Mais le retour de la deuxième, désolé mains je n'y comprends encore rien[/u].
Lorsque tu fais un php /srv/http/test.php c'est la même chose que http://127.0.0.1/test.php:wink: mais en console puisque la racine de ton serveur web est /srv/http/

Installation de Mariadb - php - apache - phpmyadmin

#13Messageil y a 5 ans

Bon, j'ai donné les droits 644 à /srv/http/
Mais quand dan le navigateur je lance http://127.0.0.1/test.php, j'ai maintenant une erreur 404. Fichier non trouvé.
Or, il existe.
J'ai même créé un lien symbolique vers un dossier www dans mon $HOME.
J'y ai aussi mis ce fichier dedans.

Je désinstalle le tout et je reprends tout à l'heure le tutoriel à zéro avec toutes les explications que tu m'as fournies. :gsourire::siffle:siffle

Installation de Mariadb - php - apache - phpmyadmin

#14Messageil y a 5 ans

Comme rien ne fonctionnait j'ai désinstallé apache, php, et php-apache.

Puis, j'ai réinstallé apache seulement comme sur le tutoriel.

Le status httpd me retourne ceci :

● httpd.service - Apache Web Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2019-03-12 20:14:18 CET; 10min ago
 Main PID: 21845 (httpd)
    Tasks: 82 (limit: 4915)
   Memory: 7.3M
   CGroup: /system.slice/httpd.service
           ├─21845 /usr/bin/httpd -k start -DFOREGROUND
           ├─21850 /usr/bin/httpd -k start -DFOREGROUND
           ├─21851 /usr/bin/httpd -k start -DFOREGROUND
           └─21852 /usr/bin/httpd -k start -DFOREGROUND

mar 12 20:14:18 bruno systemd[1]: Started Apache Web Server.
mar 12 20:14:18 bruno httpd[21845]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
J'ai créé le fichier /srv/http/index.html, puis j'y ai ajouté le code HTML préconisé.

J'ai créé un lien symbolique entre srv/http/ et /home/bruno/WWW, j'ai modifié les droits :

chmod o+x ~
chmod o+x ~/WWW
J'ai redémarré apache sudo systemctl httpd restart.

Mais dans le navigateur : http://localhost, avec Firefox, j'ai toujours l'erreur 403 accès interdit.

Le log de

/var/log/httpd/error_log 
me donne en dernière ligne, donc il y a quelques minutes :

 (13)Permission denied: [client ::1:54386] AH00035: access to /index.html denied (filesystem path '/srv/http/index.html') because search permissions are missing on a component of the path
[Tue Mar 12 20:04:40.824873 2019] [core:error] [pid 13052:tid 139921134167808] (13)Permission denied: [client 127.0.0.1:33804] AH00035: access to /index.html denied (filesystem path '/srv/http/index.html') because search permissions are missing on a component of the path
[Tue Mar 12 20:04:40.974692 2019] [core:error] [pid 13052:tid 139921125775104] (13)Permission denied: [client 127.0.0.1:33804] AH00035: access to /favicon.ico denied (filesystem path '/srv/http/favicon.ico') because search permissions are missing on a component of the path
Ce serait un problème du path ? Si c'est cela, comment le modifier ? Ou sic'est autre chose éclairez-moi car je n'ai pas touché d'un iota le tutoriel susmentionné. :rendre::rendre:

Installation de Mariadb - php - apache - phpmyadmin

#15Messageil y a 5 ans

AH00035 : accès refusé car des autorisations de recherche sont manquantes sur un composant du chemin
retourne

ls -ld /srv
ls -ld /srv/http
ls -ld /home/bruno/WWW
ls -l /srv/http
répertoires en 755 et fichiers en 644

Installation de Mariadb - php - apache - phpmyadmin

#16Messageil y a 5 ans

ls -ld /srv

drwxr-xr-x 4 root root 4096 10 nov 09:25 /srv
ls -ld /srv/http

drw-r--r-- 2 root root 4096 12 mar 13:24 /srv/http
ls -ld /home/bruno/WWW

drwxrwxr-x 2 bruno bruno 4096 12 mar 13:21 /home/bruno/WWW
ls -l /srv/http

total 8
-rwxrwxrwx 1 root root 116  9 mar 18:11 index.html
-rwxr-xr-x 1 root root  17  9 mar 18:36 test.php
lrwxrwxrwx 1 root root  15 12 mar 13:24 WWW -> /home/bruno/WWW
Voilà :gsourire:

Installation de Mariadb - php - apache - phpmyadmin

#17Messageil y a 5 ans

que d'erreurs !
répertoires en 755 et fichiers en 644 (chmod)

- /srv/http n'est pas bon ! c'est lui qui bloque (il n'a pas les même droits que /srv :confus: : il manque les "x")
- mettre un 777 à index.html :Rouleau::lol:
- tu as créer un lien DANS /srv/http :pleure: donc tes url sont actuellement 127.0.0.1/WWW/ je suppose que ce n'est pas ce que tu désires :saispas: mais plutot que /srv/http soit un lien vers ton home
Si tu désires bien être à la racine (ce qui est logique) il faut supprimer srv/ , faire le lien symbolique puis renommer ce lien en srv/

ou le plus simple:
papajoke a écrit : il y a 5 ans - ou modifier conf/httpd.conf pour pointer vers ton répertoire home

----
ps: si on ne comprend pas les drwxr-xr-r , on peut faire une conversion en code "chmod" avec stat

stat -c '%A(%a) %U:%G    %F    %n' /srv/http
drwxr-xr-x(755) root:root    répertoire    /srv/http

Installation de Mariadb - php - apache - phpmyadmin

#18Messageil y a 5 ans

papajoke a écrit : il y a 5 ans
- tu as créer un lien DANS /srv/http :pleure: donc tes url sont actuellement 127.0.0.1/WWW/ je suppose que ce n'est pas ce que tu désires :saispas: mais plutot que /srv/http soit un lien vers ton home
Si tu désires bien être à la racine (ce qui est logique) il faut supprimer srv/ , faire le lien symbolique puis renommer ce lien en srv/

ou le plus simple:
papajoke a écrit : il y a 5 ans - ou modifier conf/httpd.conf pour pointer vers ton répertoire home
Je suis désolé, mais vu mon grand âge et mon petit cerveau, je n'ai pas compris ces deux paragraphes :pappy::pappy::saispas::saispas:

Que veut dire "Si tu désires bien être à la racine (ce qui est logique) il faut supprimer srv/ , faire le lien symbolique puis renommer ce lien en srv/"

Et le conf/httpd.conf, je le trouve comment ?
Puis : "le faire pointer vers ton répertoire home" : que dois-je indiquer dans httpd.conf, si je le trouve.
Pourquoi y-a t'il un conf avant httpd.conf

Et pourquoi tout ceci n'est-il pas expliqué dans le tutoriel ? Je sais que la personne qui l'a écrit s'adresse à des "pros", mais moi, je suis à la lettre le tutoriel et rien ne fonctionne. :gsourire::gsourire:

Édit : quand je mets dans la barre d'adresse http://www.localhost/ cela fonctionne. Et j'ai déjà supprimé le lien symbolique, j'attends des instructions complémentaires :gsourire::saispas::wink::wink:

Installation de Mariadb - php - apache - phpmyadmin

#19Messageil y a 5 ans

Tout cela c'est mettre la charrue avant les bœufs :pleure: (voir dernier paragraphe)
obelix1502 a écrit : il y a 5 ans Que veut dire "Si tu désires bien être à la racine (ce qui est logique) il faut supprimer srv/ , faire le lien symbolique puis renommer ce lien en srv/"
je ne vais quand même pas t'expliquer ce qu'est un lien symbolique ;) srv doit pointer sur ton WWW ; ici tu ne le fais pas. Ou bien rien compris à cela ? :
papajoke a écrit : il y a 5 ans Lorsque tu fais un php /srv/http/test.php c'est la même chose que http://127.0.0.1/test.php:wink: mais en console puisque la racine de ton serveur web est /srv/http/
c'est la base d'un serveur web !!!
Dans /etc/httpd.conf tu as:

DocumentRoot "/srv/http"
<Directory "/srv/http">
DocumentRoot va indiquer à apache dans quel répertoire il va piocher les fichiers demandés dans l'url, il n'y a pas plus simple :wink:
Tu avais fait un /srv/http/WWW/fichier.html donc l'url est 127.0.0.1/WWW/fichier.html
Si tu entres dans ton navigateur 127.0.0.1/WWW/toto/test.php, apache va exécuter/afficher le fichier /srv/http/WWW/toto/test.php ; si apache ne le trouve pas il le note dans les logs d'erreurs.
obelix1502 a écrit : il y a 5 ans Et le conf/httpd.conf, je le trouve comment ?
C'est le seul fichier de config de apache que tu connaisses, tu l'as déjà édité plusieurs fois !
obelix1502 a écrit : il y a 5 ans Puis : "le faire pointer vers ton répertoire home" : que dois-je indiquer dans httpd.conf, si je le trouve.
Déjà expliqué plus haut et précédemment, ton répertoire racine(pour apache)
obelix1502 a écrit : il y a 5 ans Et pourquoi tout ceci n'est-il pas expliqué dans le tutoriel ? Je sais que la personne qui l'a écrit s'adresse à des "pros"
Parce que par défaut le site web est dans /src/http/ et qu'il n'y a donc rien à faire de plus que le tuto. Après c'est à chaque administrateur ou développeur d'adapter en fonction de ses besoins et généralement un dev utilise un répertoire dans son home mais jamais un administrateur ! Ne pas oublier que apache c'est un serveur; donc la seule bonne façon de faire est d'avoir que des fichiers en lecture au mieux. Apache est un outil qui est normalement géré par les administrateurs réseau et ils n'ont pas du tout les mêmes besoins qu'un dev. Personnellement je ne modifie ni /srv/http ni le fichier http.conf mais utilise les vhosts ; il existe encore d'autres façons de faire avec apache... mais ce n'est pas le travail d'un dev.

Normalement on suit le tuto à la lettre !!! ,C'est une fois que tout fonctionne parfaitement que l'on se permet de modifier la racine de notre serveur web en fonction de notre besoin : si l'on met une mauvaise racine au début du tuto c'est tout ce qu'il faut pour se perdre. Si tu le fais après le tuto, il est simple de revenir en arrière et/ou comprendre l'erreur puisque l'on a changé pratiquement rien.

Installation de Mariadb - php - apache - phpmyadmin

#20Messageil y a 5 ans

Ok, donc je retire toutes les applications, fichiers de configurations, etc. Puis, je réinstalle tout.
Je suis le tutoriel à la lettre, je vois si cela fonctionne. Et ensuite, si pas, j'adapte selon tes conseils.
C'est ce que tu préconises, si j'ai bien compris ?

Car vois-tu ce qui m'a induit en erreur est le lien symbolique que lemust m'avait donné plus haut :
sudo ln -s /home/toto/dossier_qui_va_bien /srv/http/

Donc pour moi, "le dossier qui va bien" était WWW, donc mon lien symbolique était :
sudo ln -s /home/bruno/WWW /srv/http.

Mais toi, tu préconise :
sudo ln -s /home/bruno/WWW /srv de ce fait, il pointe de la racine /srv vers mon "dossier qui va bien" : WWW.

J'ai bien compris ?
Répondre