Sie sind nicht angemeldet.

1

14.04.2023, 19:48

PHP Modul wird nicht gefunden obwohl installiert

Ein emerge -avuND world und eine Neuinstallation von PHP nahm ich bereits vor

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
sysvorOrt / # eselect php list apache2
  (none found)

sysvorOrt / # cd /usr/lib64/php8.2/
sysvorOrt /usr/lib64/php8.2 # ls
bin  include  lib  lib64  man

sysvorOrt /usr/lib64/php8.2 # ping -c 4 localhost
PING localhost(localhost (::1)) 56 Datenbytes
64 Bytes von localhost (::1): icmp_seq=1 ttl=64 Zeit=0.037 ms
64 Bytes von localhost (::1): icmp_seq=2 ttl=64 Zeit=0.048 ms
64 Bytes von localhost (::1): icmp_seq=3 ttl=64 Zeit=0.047 ms
64 Bytes von localhost (::1): icmp_seq=4 ttl=64 Zeit=0.048 ms

--- localhost ping-Statistik ---
4 Pakete übertragen, 4 empfangen, 0% Paketverlust, Zeit 3033ms
rtt min/avg/max/mdev = 0.037/0.045/0.048/0.004 ms

sysvorOrt /usr/lib64/php8.2 # modprobe php
modprobe: FATAL: Module php not found in directory /lib/modules/6.1.9-gentoo-x86_64


sysvorOrt /usr/lib64/php8.2 # emerge -s php
  
[ Results for search key : php ]
Searching...

*  app-doc/php-docs
      Latest version available: 20190203
      Latest version installed: [ Not Installed ]
      Size of files: 12,988 KiB
      Homepage:      https://secure.php.net/download-docs.php
      Description:   HTML documentation for PHP
      License:       GPL-2

*  app-emacs/php-mode
      Latest version available: 1.24.3
      Latest version installed: [ Not Installed ]
      Size of files: 136 KiB
      Homepage:      https://github.com/emacs-php/php-mode/
      Description:   GNU Emacs major mode for editing PHP code
      License:       GPL-3+

*  app-emulation/phpvirtualbox
      Latest version available: 5.2.1
      Latest version installed: [ Not Installed ]
      Size of files: 3,792 KiB
      Homepage:      https://sourceforge.net/projects/phpvirtualbox/
      Description:   Web-based administration for VirtualBox in PHP
      License:       GPL-3

*  app-eselect/eselect-php
      Latest version available: 0.9.8
      Latest version installed: 0.9.8
      Size of files: 61 KiB
      Homepage:      https://gitweb.gentoo.org/proj/eselect-php.git/
      Description:   PHP eselect module
      License:       GPL-2

*  app-vim/phpdocs
      Latest version available: 0.26-r1
      Latest version installed: [ Not Installed ]
      Size of files: 4 KiB
      Homepage:      https://www.vim.org/scripts/script.php?script_id=520
      Description:   vim plugin: PHPDoc Support in VIM
      License:       vim

*  dev-db/phpmyadmin
      Latest version available: 5.2.1
      Latest version installed: [ Not Installed ]
      Size of files: 7,287 KiB
      Homepage:      https://www.phpmyadmin.net/
      Description:   Web-based administration for MySQL database in PHP
      License:       GPL-2

*  dev-db/phppgadmin
      Latest version available: 7.13.0
      Latest version installed: [ Not Installed ]
      Size of files: 606 KiB
      Homepage:      http://phppgadmin.sourceforge.net/
      Description:   Web-based administration for Postgres database in php
      License:       GPL-2

*  dev-lang/php
      Latest version available: 8.2.4
      Latest version installed: 8.2.4
      Size of files: 11,711 KiB
      Homepage:      https://www.php.net/
      Description:   The PHP language runtime engine
      License:       PHP-3.01 BSD Zend-2.0 bcmath? ( LGPL-2.1+ ) fpm? ( BSD-2 ) gd? ( gd ) unicode? ( BSD-2 LGPL-2.1 )

2

14.04.2023, 22:14

Es gibt kein php Modul. Php ist eine Laufzeit bibliothek und wird von anderen Programmen als lib verwendet.
Was willst du den machen?

Viele Grüße

3

15.04.2023, 11:26

ok dank dir. Wieder was gelernt. Ich will lokal auf meinem System PHP Scripte ausführen. Habe eben erstmal die Konfiguration durchgeführt. Im Moment wird der Apache erfolgreich ausgeführt das PHP Script aber noch nicht
»michi-monster« hat folgende Datei angehängt:

4

20.04.2023, 15:19

Hey,


Schau dir mal die beiden Seiten im Wiki an.

https://www.google.com/url?q=https://wik…xI30psFz5wyEMFo

Und

https://www.google.com/url?q=https://wik…ujtZwFn36I4dObY


Es gibt auch die Möglichkeit php zu kontrollieren.

To verify the PHP module works, create a test page:

FILE /var/www/localhost/htdocs/index.phpPHP test page

Quellcode

1
2
3
4
5
<html>
 <body>
  <?php phpinfo(); ?>
 </body>
</html>


Now, suppress or rename /var/www/localhost/htdocs/index.html and open the test page: http://localhost/

Story habe das am Handy geschrieben und das funktioniert nicht wirklich gut hier im Forum

Gruß Andreas

5

29.01.2024, 19:19

In der PHP Shell wird alles ausgeführt. Im Browser nicht.

michi@michis-kiste ~ $ php -a
Interactive shell
php >
php> phpinfo();

6

24.03.2024, 11:56

Hast du das nun schon gemacht?
Gentoo Can Do!

Wiki auf: http://deepdoc.at