16
merci pour la reponse
Ca dit toujours la meme chose en fait :
AH00557: httpd-prefork: apr_sockaddr_info_get() failed for localhost.localdomain
AH00558: httpd-prefork: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
Syntax OK
j'au cherche dans quelque .conf mais j'ai jamais trouvé servername .. a supposer que j'ai bien compris ce qui est dit !
17
░░ The job identifier is 6284.
Apr 23 18:29:10 localhost.localdomain systemd[1]: Reloading The Apache Webserver...
░░ Subject: A reload job for unit apache2.service has begun execution
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A reload job for unit apache2.service has begun execution.
░░
░░ The job identifier is 6393.
Apr 23 18:29:10 localhost.localdomain start_apache2[25031]: AH00557: httpd-prefork: apr_sockaddr_info_get() failed for localhost.localdomain
Apr 23 18:29:10 localhost.localdomain start_apache2[25031]: AH00558: httpd-prefork: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive global>
Apr 23 18:29:10 localhost.localdomain systemd[1]: apache2.service: Main process exited, code=dumped, status=6/ABRT
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ An ExecStart= process belonging to unit apache2.service has exited.
░░
░░ The process' exit code is 'dumped' and its exit status is 6.
Apr 23 18:29:10 localhost.localdomain systemd[1]: apache2.service: Failed with result 'core-dump'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit apache2.service has entered the 'failed' state with result 'core-dump'.
Apr 23 18:29:10 localhost.localdomain systemd[1]: Reload failed for The Apache Webserver.
░░ Subject: A reload job for unit apache2.service has finished
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A reload job for unit apache2.service has finished.
░░
Dans Utilisateurs
login-nom-uid-group => eric-eric-1000-users,www
Dans Groupes
nom-id-membres
users-100-wwwrun,eric
Il faut changer quoi vers ou ?
19
localhost:/srv/www/htdocs> ls -al
total 20
drwxrwxr-x 2 eric web 94 23 avril 01:10 .
drwxr-xr-x 4 root root 35 21 avril 23:16 ..
-rw-r--r-- 1 eric web 302 23 juil. 2008 favicon.ico
-rw-rw-r-- 1 eric web 50 22 avril 12:00 index.html
-rwxrwxrwx 1 eric users 24 7 nov. 2022 index.php
-rw-r--r-- 1 eric web 26 30 oct. 15:43 robots.txt
-rwxr-xr-x 1 eric www 20 23 avril 01:10 test.php
localhost:/srv/www> ls -al
total 0
drwxr-xr-x 4 root root 35 21 avril 23:16 .
drwxr-xr-x 4 root root 33 21 avril 23:21 ..
drwxr-xr-x 2 root root 6 15 mars 2022 cgi-bin
drwxrwxr-x 2 eric web 94 23 avril 01:10 htdocs
Mon idee au depart, c'est de me (eric) donner tous les droits sur htdocs
je pensais que c'etait le cas vu que "it works" s'affiche
mais php semble moins enthousiaste a s'afficher
20
Bonjour,
N'hesitez pas a me deplacer si je suis pas dans le bon forum.
Je viens d'installer 15.5 sur un nouveau ssd. Je suis a l'etape d'installation LAMP. Je me base sur cette url pour faire le setup.
Pour Apache "It works".
Et avant d'installer mariadb, j'ai installé php7.
It works mais it works juste en terminal.
127.0.0.1 n'a envoyé aucune donnée.
ERR_EMPTY_RESPONSE
Ce qui est dit
apache2.service - The Apache Webserver
Loaded: loaded (/usr/lib/systemd/system/apache2.service; disabled; vendor preset: disabled)
Active: active (running) since Tue 2024-04-23 10:31:53 CEST; 14min ago
Main PID: 4491 (httpd-prefork)
Status: "Processing requests..."
Tasks: 6
CGroup: /system.slice/apache2.service
├─ 4491 /usr/sbin/httpd-prefork -DSYSCONFIG -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//global.conf" -f /etc/apache2/ht>
├─ 4542 /usr/sbin/httpd-prefork -DSYSCONFIG -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//global.conf" -f /etc/apache2/ht>
├─ 4556 /usr/sbin/httpd-prefork -DSYSCONFIG -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//global.conf" -f /etc/apache2/ht>
├─ 4587 /usr/sbin/httpd-prefork -DSYSCONFIG -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//global.conf" -f /etc/apache2/ht>
├─ 4777 /usr/sbin/httpd-prefork -DSYSCONFIG -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//global.conf" -f /etc/apache2/ht>
└─ 8404 /usr/sbin/httpd-prefork -DSYSCONFIG -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//global.conf" -f /etc/apache2/ht>
En résumé de situation: phpinfo s'affiche dans le terminal, mais pas dans le navigateur.
Ca m'inspire une gestion erronée des droits utilisateur, vu que je me suis attribué les droits utilisateur sur /srv/www .. et que je suis pas top top sur chmod :-)
Vous en dites quoi ?
Cdt
Ooo
22
Tres interessante reponse. Merci.
Concernant LVM, il m'aurait été utile une fois depuis que je suis sous Linux (une grosse dizaine d'années) donc "le benefice risque" est assez faible :-) Mon home etait full et au niveau des perfs c'etait la cata ! Ca demande a faire du menage et a faire des transferts vers d'autres supports, mais ca se gere. Et passer le home de 200 Go a 1 To, je pense que ca fera assez l'affaire :-)
Concernant XFS, quels avantages par rapport a btrfs ? J'avoue que j'ai pas trouvé. Si j'ai compris, XFS est une evolution par rapport a btrfs ? La seule contrainte que je trouve avec btrfs que j'aurai de toutes manieres avec XFS c'est la longueur du chemin du fichier que EXT4 n'apprecie pas vraiment. Bon,ca reste honorable, mais c'est vrai que EXT4 est contraignant. Reste que j'ai choisi EXT4 sur mon disque interne pour le garder compatible avec windows.
En fait, un snapshot serait plus parlant que moi peut etre !
/ btrfs defaults 0 0
/var btrfs subvol=/@/var 0 0
/usr/local btrfs subvol=/@/usr/local 0 0
/tmp btrfs subvol=/@/tmp 0 0
/srv btrfs subvol=/@/srv 0 0
/root btrfs subvol=/@/root 0 0
/opt btrfs subvol=/@/opt 0 0
/home btrfs subvol=/@/home 0 0
/boot/grub2/x86_64-efi btrfs subvol=/@/boot/grub2/x86_64-efi 0 0
/boot/grub2/i386-pc btrfs subvol=/@/boot/grub2/i386-pc 0 0
swap swap defaults 0 0
/.snapshots btrfs subvol=/@/.snapshots 0 0
/Archives ext4 defaults,noatime 0 2
/Fichiers ext4 defaults,noatime 0 2
Volontairement pas de montage Windows.
OpenSuse offre le plus d'outils.. la ca serait un autre debat :-) Je dirais plutôt oui mais peut-etre pas :-)
Je vais rester focus sur future installation.
Ah.. d'ailleurs, puisqu'on en parle du redimensionnement... Redimensionner une machine virtuelle c'est un sujet qui va beaucoup plus m'attirer :-) vu qu'avec plus de place, ca permettrait d'avoir des machines virtuelles moins réduites. LVM revient sur cette possibilité ??
J'avais plus pressenti l'hibernation dans /tmp. Je comprends mieux certains plantages maintenant du coup :-) Vu que dans mon idee, pas vraiment besoin de swap avec 16 Go. Interessant !!!
Cdt
Ooo