Archiv verlassen und diese Seite im Standarddesign anzeigen : mysql und httpd.conf apache2
Guten Abend,
Ich wüsste gerne, was in der /etc/apache2/httpd.conf einzutragen ist, damit der apache2
das mysql modul lädt, bzw. die kommunikation mit der Datenbank ermöglicht.
Ich finde bei google leider garnichts.
Distri: gentoo
Bitte helft mir.
lluser
Dazu musst du die PHP-Erweiterung (Extension) mysql installieren.
Sorry, aber ich kann diese leider nicht finden.
Kannst du mir auf die sprünge helfen?
PHP wurde mit --with-mysql compiliert.
PLZ help
Danke,
lluser
Hi,
in /etc/php.ini sollte es den Eintrag extension=mysql.so geben, so dass php auf eine Datenbank zugreifen kann.
Gruß
Whistle
Das habe ich gemacht, aber leider zeigt das Installations-Interface von Serendipity
immer noch an, dass mein Webserver kein mySQL laufen hätte:
Bei der Einrichtung der Installation traten einige Fehler auf:
- No mySQL extension found. Please check your webserver installation or contact your systems administrator regarding this problem.
Woran kann das liegen?
Thx
lluser
Hi,
nur um sicherzugehen, was sagt den phpinfo?
Gruß
Whistle
Wenn du
php -i meinst, dann sagt es mir folgendes:
_ENV["SSH_AUTH_SOCK"] => /tmp/ssh-ihWAbg7161/agent.7161
_ENV["KDEDIR"] => /usr/kde/3.3
_ENV["PAGER"] => /usr/bin/less
_ENV["CONFIG_PROTECT_MASK"] => /etc/gconf /etc/terminfo
_ENV["XINITRC"] => /etc/X11/xinit/xinitrc
_ENV["DESKTOP_SESSION"] => fluxbox
_ENV["GDM_XSERVER_LOCATION"] => local
_ENV["PWD"] => /home/lluser
_ENV["INPUTRC"] => /etc/inputrc
_ENV["EDITOR"] => /usr/bin/vim
_ENV["LANG"] => de_DE
_ENV["GDM_LANG"] => de_DE
_ENV["QMAKESPEC"] => linux-g++
_ENV["KDEDIRS"] => /usr
_ENV["KDE_MALLOC"] => 1
_ENV["GDMSESSION"] =>
_ENV["SHLVL"] => 3
_ENV["PRELINK_PATH"] =>
_ENV["LOGNAME"] =>
_ENV["LESS"] => -R
_ENV["GCC_SPECS"] =>
_ENV["CVS_RSH"] => ssh
_ENV["LESSOPEN"] => |lesspipe.sh %s
_ENV["INFOPATH"] => /usr/share/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/info
_ENV["DISPLAY"] => :0.0
_ENV["OPENGL_PROFILE"] => xorg-x11
_ENV["LADSPA_PATH"] => /usr/lib/ladspa
_ENV["G_BROKEN_FILENAMES"] => 1
_ENV["CONFIG_PROTECT"] => /usr/lib/X11/xkb /usr/kde/3.3/share/config /usr/kde/3.3/env /usr/kde/3.3/shutdown /usr/kde/3.1/share/config /usr/share/config
_ENV["XAUTHORITY"] => /root/.xauthWWfbZQ
_ENV["_"] => /usr/bin/php
_ENV["COLORFGBG"] => 15;15
_ENV["WINDOWID"] => 18874370
_ENV["TERMINFO"] => /usr/share/terminfo
_ENV["COLORTERM"] => rxvt-xpm
_ENV["TERM"] => rxvt
_ENV["OLDPWD"] => /home/lluser
_ENV["WHITE"] =>
_ENV["BLACK"] =>
_ENV["RED"] =>
_ENV["GREEN"] =>
_ENV["YELLOW"] =>
_ENV["BLUE"] =>
_ENV["PURPLE"] =>
_ENV["CYAN"] =>
_ENV["RPS1"] => %{%}-=%{%}%D{%a %d.%m.%Y} %*%{%}=-%{%}
_ENV["SPROMPT"] => %R ist nicht vorhanden, meinten sie vielleicht %r?
_ENV["PS2"] => %{%}<--%_-->%{%}
_ENV["PS1"] => %{%}[%(!.%{%}%n. %{%}%n)%{%}@%{%}%m%{%}]%{%} %{%}%~ (8,9G free)%{%} %#
_ENV["PATH"] => /sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/opt/bin:/usr/local/bin:/opt/bittorrent:/opt/kde/bin:/opt/gnome/bin:
_ENV["HOME"] => /root
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.
Und noch sehr viel mehr meiner Variablen usw., wenns wichtig ist kann ich es noch posten.
Ein befehl wie phpinfo existiert leider nicht.
Thx
lluser
Ja, der gesamte Inhalt wäre hilfreich. Aber es geht auch anders. Poste bitte mal die Ausgabe von:
grep -n extension /etc/php.ini
OK.
Also zuerst: bei mir liegt die php.ini in /etc/php/apache2-php4/php.ini und in /etc/php/cli-php4/php.ini. Vielleicht sagt das ja irgentetwas wichtiges aus...
Ich poste hier aber mal die Ausgabe von " grep -n extension /etc/php/apache2-php4/php.ini":
55:; dynamically loaded extension (either a PHP extension or a Zend extension),
56:; you may only use these constants *after* the line that loads the extension.
317:; leading '/'. You must also specify the file extension being used including
428:; Directory in which the loadable extensions (modules) reside.
429:extension_dir = /usr/lib/php/extensions/no-debug-non-zts-20020429
520:; If you wish to have an extension loaded automatically, use the following
523:; extension=modulename.extension
527:; extension=msql.dll
531:; extension=msql.so
534:; needs to go here. Specify the location of the extension with the
535:; extension_dir = /usr/lib/php/extensions/no-debug-non-zts-20020429
541:;extension=php_bz2.dll
542:;extension=php_cpdf.dll
543:;extension=php_crack.dll
544:;extension=php_curl.dll
545:;extension=php_db.dll
546:;extension=php_dba.dll
547:;extension=php_dbase.dll
548:;extension=php_dbx.dll
549:;extension=php_domxml.dll
550:;extension=php_exif.dll
551:;extension=php_fdf.dll
552:;extension=php_filepro.dll
553:;extension=php_gd2.dll
554:;extension=php_gettext.dll
555:;extension=php_hyperwave.dll
556:;extension=php_iconv.dll
557:;extension=php_ifx.dll
558:;extension=php_iisfunc.dll
559:;extension=php_imap.dll
560:;extension=php_interbase.dll
561:;extension=php_java.dll
562:;extension=php_ldap.dll
563:;extension=php_mbstring.dll
564:;extension=php_mcrypt.dll
565:;extension=php_mhash.dll
566:;extension=php_mime_magic.dll
567:;extension=php_ming.dll
568:extension=php_mssql.dll
569:extension=php_msql.dll
570:;extension=php_oci8.dll
571:;extension=php_openssl.dll
572:;extension=php_oracle.dll
573:;extension=php_pdf.dll
574:;extension=php_pgsql.dll
575:;extension=php_printer.dll
576:;extension=php_shmop.dll
577:;extension=php_snmp.dll
578:;extension=php_sockets.dll
579:;extension=php_sybase_ct.dll
580:;extension=php_w32api.dll
581:;extension=php_xmlrpc.dll
582:;extension=php_xslt.dll
583:;extension=php_yaz.dll
584:;extension=php_zip.dll
1103:; dictionary files. Include the base filename, but not the file extension.
1118:extension=mysql.so
Hoffentlich hilfts.
Thx
lluser
Powered by vBulletin® Version 4.2.5 Copyright ©2024 Adduco Digital e.K. und vBulletin Solutions, Inc. Alle Rechte vorbehalten.