Salut,

J'ai installé httpd et php sur mon ordi pour tester piwigo et voir si c'est facile à modifier. 🙂
Le problème c'est qu'il suffit d'après le site de piwigo de dézipper leur archive d'install dans /var/www/html et de lancer l'utilitaire d'installation mais quand je fais ça en local (je tappe http://localhost/piwigo dans firefox) il m'affiche le contenu du install.php au lieu de m'afficher la page d'installation :-?

pré requis pour Piwigo :
Un serveur supportant le PHP * Apache, Lighttpd ou Nginx.
MySQL 5 ou équivalent MariaDB *
PHP 5.2 *
ImageMagick ou GD
[root@localhost ~]# rpm -qa php
php-5.5.17-2.fc20.x86_64
[root@localhost ~]# rpm -qa php-fpm
php-fpm-5.5.17-2.fc20.x86_64
[root@localhost ~]# rpm -qa httpd
httpd-2.4.10-1.fc20.x86_64
contenu du /var/log/httpd/error_log
[root@localhost ~]# cat /var/log/httpd/error_log
[Sun Oct 05 13:30:19.321370 2014] [core:notice] [pid 28045] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Sun Oct 05 13:30:19.345820 2014] [suexec:notice] [pid 28045] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun Oct 05 13:30:19.389785 2014] [auth_digest:notice] [pid 28045] AH01757: generating secret for digest authentication ...
[Sun Oct 05 13:30:19.391230 2014] [lbmethod_heartbeat:notice] [pid 28045] AH02282: No slotmem from mod_heartmonitor
[Sun Oct 05 13:30:19.486476 2014] [mpm_prefork:notice] [pid 28045] AH00163: Apache/2.4.10 (Fedora) PHP/5.5.17 configured -- resuming normal operations
[Sun Oct 05 13:30:19.486524 2014] [core:notice] [pid 28045] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Sun Oct 05 13:36:11.739893 2014] [mpm_prefork:notice] [pid 28045] AH00170: caught SIGWINCH, shutting down gracefully
pas d'erreur visible et je ne trouve plus le /var/log/messages :-D

Quelqu'un à une idée svp ?
T'as quels droits sur ce répertoire (piwigo) ?
ls -l /var/www/html
C'est root qui est owner, c'est peut être pas bon ?
[root@localhost ~]# ll /var/www/html/
total 8
-rw-r--r--.  1 root root   20 Sep 24 08:20 info.php
drwxr-xr-x. 15 root root 4096 Jun 11 10:10 piwigo
j'ai contrôlé le dossier html et c'est root également donc ca me parait cohérent 🙂
Apparemment c'est bon ... Mais si tu fais localhost tout simplement dans ta barre d'adresse, tu as quoi ? Idem pour localhost/info.php
j'ai bien la page fedora qui s'affiche pour localhost et la page qui donne la version de php pour localhost/info.php. J'avais oublié de le préciser désolé 😉
la version est la bonne :-D
PHP Version 5.5.17
je tappe localhost/piwigo/ ce qui me redirige automatiquement vers la page install.php qui s'affiche non pas comme elle devrait car j'ai son contenu. Voici le début :
<?php
// +-----------------------------------------------------------------------+
// | Piwigo - a PHP based photo gallery                                    |
// +-----------------------------------------------------------------------+
// | Copyright(C) 2008-2014 Piwigo Team                  http://piwigo.org |
// | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
// | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
// +-----------------------------------------------------------------------+
// | This program is free software; you can redistribute it and/or modify  |
// | it under the terms of the GNU General Public License as published by  |
// | the Free Software Foundation                                          |
// |                                                                       |
// | 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. See the GNU      |
// | General Public License for more details.                              |
// |                                                                       |
// | You should have received a copy of the GNU General Public License     |
// | along with this program; if not, write to the Free Software           |
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
// | USA.                                                                  |
// +-----------------------------------------------------------------------+

//----------------------------------------------------------- include
define('PHPWG_ROOT_PATH','./');

@set_magic_quotes_runtime(0); // Disable magic_quotes_runtime
//
// addslashes to vars if magic_quotes_gpc is off this is a security
// precaution to prevent someone trying to break out of a SQL statement.
//
if( !@get_magic_quotes_gpc() )
{
  if( is_array($_POST) )
  {
    while( list($k, $v) = each($_POST) )
    {
      if( is_array($_POST[$k]) )
      {
        while( list($k2, $v2) = each($_POST[$k]) )
        {
          $_POST[$k][$k2] = addslashes($v2);
        }
        @reset($_POST[$k]);
      }
      else
      {
je mets pas tout car c'est très gros et je pense pas que ce soit utile 😉
introuvable, c'est ce que je disais dans mon premier post 😉
[root@localhost ~]# ll /var/log/messages
ls: cannot access /var/log/messages: No such file or directory
[root@localhost ~]# ll /var/log/
total 744
drwxrwxr-x. 2 root   root              4096 Jun  3 18:28 anaconda
drwxr-x---. 2 root   root              4096 Aug 24 20:40 audit
drwxr-xr-x. 2 root   root              4096 Sep 26  2013 boa
-rw-r--r--. 1 root   root              9153 Oct  5 13:56 boot.log
-rw-------. 1 root   utmp                 0 Jun  3 20:38 btmp
drwxr-xr-x. 2 chrony chrony            4096 Aug 15 12:17 chrony
drwxr-xr-x. 2 lp     sys               4096 Oct  5 13:20 cups
-rw-r--r--. 1 root   root             45489 Oct  5 15:05 dnf.log
-rw-r--r--. 1 root   root              1519 Oct  5 15:05 dnf.rpm.log
-rw-r--r--. 1 root   root               156 Sep 19 12:37 firewalld
drwx--x--x. 2 root   gdm               4096 Oct  5 13:56 gdm
drwxr-xr-x. 2 root   root              4096 Jul 31 20:38 glusterfs
-rw-------. 1 root   root              5137 Oct  5 13:22 grubby
drwx------. 2 root   root              4096 Oct  5 13:36 httpd
drwxr-sr-x+ 3 root   systemd-journal   4096 Sep 24 15:03 journal
-rw-r--r--. 1 root   root            292292 Oct  5 14:39 lastlog
drwxr-x---. 2 mysql  mysql             4096 Sep 11 10:39 mariadb
drwxrwx---. 2 apache root              4096 Sep 20 18:36 php-fpm
drwxr-xr-x. 3 root   root              4096 Dec 12  2013 pluto
drwx------. 2 root   root              4096 Aug 12 09:24 ppp
-rw-r--r--. 1 root   root              1040 Sep 24 15:03 README
drwx------. 3 root   root              4096 Sep 25 11:26 samba
drwx------. 2 root   root              4096 Jul 17 15:39 speech-dispatcher
drwxr-x---. 2 root   root              4096 Sep 25 10:54 sssd
-rw-------. 1 root   root                 0 Dec 12  2013 tallylog
-rw-------. 1 root   root              4923 Oct  5 15:01 wpa_supplicant.log
-rw-r--r--. 1 root   root             36761 Sep 19 13:53 wpa_supplicant.log-20140919
-rw-rw-r--. 1 root   utmp             95616 Oct  5 14:34 wtmp
-rw-r--r--. 1 root   root             26496 Oct  5 13:56 Xorg.0.log
-rw-r--r--. 1 root   root             27159 Oct  5 13:36 Xorg.0.log.old
-rw-------. 1 root   root             22895 Oct  5 13:19 yum.log
-rw-------. 1 root   root             66252 Sep  1 19:50 yum.log-20140902
Comment ca se fait ? Plus de /var/log/messages dans fedora 20 ?
je suis littéralement spammé par ces messages d'erreurs qui ne nous concernent pas à priori :-?
Oct 05 15:25:23 localhost.localdomain kernel: pciehp 0000:00:1c.5:pcie04: Card present on Slot(37)
Oct 05 15:25:23 localhost.localdomain kernel: pciehp 0000:00:1c.5:pcie04: Card not present on Slot(37)
Oct 05 15:25:23 localhost.localdomain kernel: pciehp 0000:00:1c.5:pcie04: Card present on Slot(37)
je n'ai pas trouvé d'option exclude dans le man de journalctl ?
Tu t'en fou, la commande te retourne quoi ? 🙂 Je ne pense pas que tu as que ça, si ? oO

T'as vu le lien que j'ai donné dans le post précédent ? 🙂
j'en ai une bonne soixantaine à la seconde donc pour voir autre chose :-?

j'ai pas remarqué d'autres erreurs mais il y en a tellement sur ce pciehp que j'aurais aimé les ignorer 😉
je regarde ton lien, je l'avais pas vu
Euh, avant de vous prendre la tête que renvoie un fichier test.php à la racine /var/www/html/piwigo et /var/www/html du genre :
<?php
$str = "Hello world!";
echo $str;
?>
Les logs à regarder seront plus /var/log/httpd/access.log et /var/log/httpd/error.log .

Sinon pour faire le ménage dans les logs système
# journalctl -f -u httpd
bon problème plus ou moins résolu, en utilisant la netinstall de piwigo j'ai découvert qu'il manquait des droits. Il voulait à priori un chmod 777 sur le répertoire html. Ensuite j'ai eu un problème selinux et maintenant j'ai ce joli message d'erreur :
./_data/templates_c Pas d'accès en écriture
Sauf que dans _data je n'ai aucun templates_c :-?
j'en créé un avec les droits 777 et l'install me fait une page blanche 8-) J'y suis presque :hammer:
le .data est dans le dossier piwigo ?

EDIT : exécute cette commande en root, ca devrait aller

setsebool -P httpd_unified 1
 chmod 777 
Révisez vos basiques !
Journée portes ouvertes !