Wo ist apache!?

debian

Newbie
Registriert
Nov. 2004
Beiträge
7
Hallo,
habe jetzt auf meinem Debian-Server Apache drauf, war also vorinstalliert.
Nun habe ich GDLib mit JPEG-Unterstützung installiert und nu wollte ich PHP installieren.
Hat auch geklappt aber dann ist mir aufgefallen, das ich das ganze ja nicht als CGI will sondern als Apache-Modul.
Dazu habe ich folgendes verwendet:

./configure --with-xml --with-zlib --with-gd=/usr/local/lib --with-jpeg-dir=/usr/local/lib/libjpeg --disable-cgi --with-apache=/etc/apache

und dann bringt er aber schon die Fehlermeldung dass er httpd.h nicht finden kann.

Jetzt habe ich per find und per locate nach httpd.conf gesucht und diese Datei existiert anscheinend nicht!?
Das gibts doch nicht, Apache ist doch installiert, es gibt halt eine httpd.conf aber in dem Verzeichnis ist sonst gar nix wo die drin liegt.

Wenn ich aber mit apx installieren will sagt er das geht nicht, also ist apx einfach nicht installiert oder wie auch immer das geht (Laut einem Fach-IRC-Channel)

Nu meine Frage:
-Ist der Befehl so richtig ,um PHP als Apache-Modul zu installieren oder muss ich da was anderes verwenden?
Wo ist Apache? Habe angeblich 1.3.x und im ordner usr/lib/apache/1.3 sind ein paar .so und .info files, aber wenn ich den ordner bi der configuration von php angebe sagt er wieer dass er die datei httpd.h nicht finden kann...
Aber wie gesagt, die datei gbts laut find und locate gar nicht...

Dankr für jede Hilfe :)
 
Wenn du Debian hast, kannst du PHP und Apache ganz einfach mit apt-get install installieren. Die zugehoerigen Module natuerlich auch. Ansonsten mal den Source vom Apache installieren, weil das sieht mir sehr nach einer .h-Header Datei aus.


mfg
 
OK, ich bin Newbie :)
Also dann so: ./configure --with-xml --with-zlib --with-gd=/usr/local/lib --with-jpeg-dir=/usr/local/lib/libjpeg --disable-cgi --with-apache=/etc/apache --apt-get ?
und wie installier ich die Apache-headerfiles?
Danke, sx1
 
Hm, habe es jetzt mal so: ./configure --with-xml --with-zlib --with-gd=/usr/local/lib --with-jpeg-dir=/usr/local/lib/libjpeg apt-get gemacht, kompiliert und installiert, aber ich bekomm im script immernoch die fehlermeldung: Fatal error: imagecreatetruecolor(): requires GD 2.0 or later in /var/www/web1/html/cms/data.php on line 8744

Muss ich da in der httpd.conf oderso noch was ändern?
Hab natürlich schon wieder neu gestartet...

danke, sx1
 
Ja, es gibt noch so 'ne libphp4mod fuer den Apache, aber die wird, wenn man apt-get install apache php4 macht, automatisch installiert.

mfg
 
Hm, dann sagt er:
E: Couldn't find package apache13

Und wenn ich "apt-get install apache php4" eingebe dann bringt er mir:

:~# apt-get install apache php4
Reading Package Lists... Done
Building Dependency Tree... Done
Sorry, apache is already the newest version.
Sorry, php4 is already the newest version.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


Aber er soll mir das doch neu insatllieren mit GD-Support, wie bringe ich ihm da sbei?

Danke, sx1
 
Zuletzt bearbeitet von einem Moderator:
apt-cache search gd
vielleicht spuckt er da was aus zu apache + gd :)
 
Throx schrieb:
apt-cache search gd
gibt folgendes aus:


gdk-imlib-dev - Header files needed for Gdk-Imlib development
gdk-imlib1 - Gdk-Imlib is an imaging library for use with gtk
imlib-base - Common files needed by the Imlib/Gdk-Imlib packages
imlib-progs - Configuration program for Imlib and GDK-Imlib
kdesdk-scripts - a set of useful development scripts for KDE
libgdbm-ruby - GDBM interface for Ruby
libgdk-pixbuf-dev - The GdkPixBuf library - development files.
libgdk-pixbuf-gnome-dev - The GNOME GdkPixBuf library - development files.
libgdk-pixbuf-gnome2 - The GNOME Canvas pixbuf library
libgdk-pixbuf2 - The GdkPixBuf library.
mozart-contrib - The Mozart Programming System (contributed libraries)
php3 - A server-side, HTML-embedded scripting language
php3-cgi - A server-side, HTML-embedded scripting language
php3-cgi-gd - GD (graphic creation) module for PHP3 (cgi)
php3-gd - GD (graphic creation) module for PHP3 (apache)
php4-gd - GD module for php4
postgresql-doc - Documentation for the PostgreSQL database.
python-gdbm - GNU dbm database support for Python (default version)
python1.5-gdbm - GNU dbm database support for Python (v1.5)
python2.1-gdbm - GNU dbm database support for Python (v2.1)
python2.2-gdbm - GNU dbm database support for Python (v2.2)
syslog-ng - Next generation logging daemon
crash - A kernel debugging utility, allowing gdb like syntax.
ddd - The Data Display Debugger, a graphical debugger frontend.
devhelp-book-gdb - GNU Debugger (gdb) book for the DevHelp system
dvilib2 - a portable DVI interpreter library - runtime
dvilib2-dev - a portable DVI interpreter library - development
ebook-dev-ggad - [EBOOK-DEV] GTK+/Gnome Application Development
eggdrop - Advanced IRC Robot
eog - Eye of Gnome graphics viewer program
epic4-script-thirdeye - Third Eye EPIC script
faqomatic - Online interactive FAQ CGI
gda-mysql - GDA backend server for MySQL
gda-odbc - GDA backend server for ODBC
gda-postgres - GDA backend server for PostgreSQL
gdancer - Visualization plug-in for xmms
gdb - The GNU Debugger
gdis - molecular display
gdkxft-capplet - gtk+-1.2 anti-aliased font support control panel
gdm - GNOME Display Manager
gdtclft - Tcl interface to GD graphics creation library.
gliv - image viewer using gdk-pixbuf and OpenGL
gnome-db - frontend to the GDA architecture for GNOME -- binary files
gnome-db-doc - frontend to the GDA architecture for GNOME -- documentation files
gnome-iconedit - A small tool to create icons for the gnome-desktop
gnome-utils - Gnome Utilities (gtt, gsearchtool, and more)
gnome-xbill - Fight the infection.
gnumeric-gda - Database access plugin for the GNOME spreadsheet
gphotocoll - A tool to manage your photo collection
gqview - A simple image viewer using GTK+
insight - Graphical debugger based on gdb
jfsutils - Utilities for managing the JFS filesystem
jigdo-file - Download Debian CD images from any Debian mirror
kdbg - Graphical debugger interface
kernel-patch-2.4-kgdb - GDB debugging for the kernel
kernel-patch-ulog - Netfilter userspace logging patch.
klogd - Kernel Logging Daemon
langdrill - Language Drills
leaktracer - Simple and efficient memory-leak tracer for C++ programs
lexmark7000linux - A printer driver for Lexmark 7000 "GDI" printers
lg-issue66 - Issue 66 of the Linux Gazette.
libart-2.0-2 - The Gnome 2 canvas widget - runtime files.
libart-2.0-dev - The Gnome 2 canvas widget - development files.
libart-dev - The Gnome canvas widget - development files.
libart2 - The Gnome canvas widget - runtime files.
libchart-perl - Chart Library for PERL
libdb2++-dev - The Berkeley database routines (c++ development files).
libdb2-dbg - The Berkeley database routines (debugging libraries, C and C++).
libfltk1-dbg - The Fast Light Toolkit, and the Fluid user interface designer
libgd-dev - GD Graphics Library (development version).
libgd-gif-tools - GD command line tools with gif support
libgd-gif1 - GD Graphics Library with gif support
libgd-gif1-dev - GD Graphics Library with gif support (development version)
libgd-graph-perl - Graph Plotting Module for Perl 5
libgd-graph3d-perl - Create 3D Graphs with GD and GD::Graph
libgd-noxpm-dev - GD Graphics Library (development version without XPM support).
libgd-noxpm-perl - Perl module wrapper for libgd (without XPM support)
libgd-perl - Perl module wrapper for libgd
libgd-ruby - An extension library to use gd graphics library from Ruby
libgd-text-perl - Text utilities for use with GD
libgd-tools - GD command line tools.
libgd1 - GD Graphics Library
libgd1-noxpm - GD Graphics Library (without XPM support).
libgd2 - GD Graphics Library version 2
libgd2-dev - GD Graphics Library version 2 (development version).
libgd2-noxpm - GD Graphics Library version 2 (without XPM support)
libgda-common - GNU Data Access library -- common files.
libgda-dev - GNU Data Access library -- development files
libgda-doc - GNU Data Access library -- documentation files
libgda0 - GNU Data Access library -- runtime libraries
libgdbi-dev - Generic Database Interface
libgdbi0 - Generic Database Interface
libgdbmg1 - GNU dbm database routines (runtime version). [libc6 version]
libgdbmg1-dev - GNU dbm database routines (development files) [libc6 version]
libgdk-imlib-ruby - Gtk+ and gdkimlib interface for scripting language Ruby
libgdk-pixbuf-ruby - Gtk+ and gdkpixbuf interface for scripting language Ruby
libgdkxft0 - transparently adds anti-aliased font support to gtk+-1.2
libgdome2-0 - DOM level2 library for accessing XML files
libgdome2-cpp-smart-dev - C++ bindings for GDome2
libgdome2-cpp-smart0 - C++ bindings for GDome2
libgdome2-dev - Development files for libgdome2
libgdome2-ocaml - OCaml bindings for GDome2, an implementation of DOM level 2
libgdome2-ocaml-dev - OCaml bindings for GDome2, an implementation of DOM level
2
libgifgraph-perl - perl GIFgraph - Graph Plotting Module for Perl 5.
libgnomedb-dev - frontend to the GDA architecture for GNOME -- development files
libgnomedb0 - frontend to the GDA architecture for GNOME -- runtime libraries
libgtk-imlib-perl - Perl module for the gdkimlib library.
libgtk-pixbuf-perl - Perl module for the gdkpixbuf library.
libgtkimreg - GTK+ widget to select regions of GdkImages
libgtkimreg-dev - GTK+ widget to select regions of GdkImages
liblockdev1-dbg - Debugging library for locking devices.
libphp-phplot - The graphic library for php.
libroxen-cloakingdevice - Mailto mutilation module for the Roxen Challenger web
server
libroxen-gdbmuserauth - GDBM authentication module for the Roxen Challenger web
server
libtdb1 - Trivial Database - shared library
libunix-syslog-perl - Perl interface to the UNIX syslog(3) calls
lx-gdb - Dump and load databases from the HP palmtop
mgdiff - xdiff clone
motor - C/C++/Java Integrated Development Environment
nana - GNU Nana -- improved support for assertions and logging
p10cfgd - Remote configuration daemon for Gracilis Packeten.
pgdocs-pdf - PostgreSQL documentation in PDF format on US letter paper
pgdocs-pdf-a4 - PostgreSQL documentation in PDF format for A4 paper
php4-gd2 - GD module (with GD2) for php4
pike-gdbm - Gdbm module for Pike
pike7-gdbm - Gdbm module for Pike
pike7.2-gdbm - Gdbm module for Pike
pnm2ppa - PPM to PPA converter
prc-tools - GCC, GDB, binutils, etc. for PDAs using the PalmOS
prc-tools-doc - Documentation for the PalmOS GCC, GDB, binutils, etc.
python-gd - Python module wrapper for libgd
python-gdk-imlib - GTK gdk_imlib support module for Python.
python-imaging - The Python Imaging Library.
python1.5-imaging - The Python Imaging Library.
python2.1-imaging - The Python Imaging Library.
python2.2-imaging - The Python Imaging Library.
qiv - a quick image viewer for X
scanlogd - A portscan detecting tool
sourcenav - Source code analysis, editor, browser and build tool.
sysklogd - System Logging Daemon
tdb-dev - Trivial Database - development files
tdb-tools - Trivial Database - bundled binaries
tex-guy - miscellaneous utilities using DVIlib
ulogd - The Userspace Logging Daemon
ulogd-mysql - mySQL extension to ulogd
xbill - Get rid of those Wingdows Viruses!
xgdipc - GnuDIP GTK client
xgdvi - a TeX DVI previewer for X, with a nice GTK+ UI
xringd - Extended Ring Daemon - Monitor phone rings and take action.
xxgdb - A X front-end to the GNU debugger gdb
yardradius - YARD Radius Auth/Acct Server
zope-psycopgda - Zope Database Adapter based on python-psycopg
perdition - POP3 and IMAP4 Proxy server

Jetzt hab ich auch mal das da probier (man beachte das -gd):

:~# apt-get install apache php4-gd

aber das gibt mir auch nur:

Reading Package Lists... Done
Building Dependency Tree... Done
Sorry, apache is already the newest version.
Sorry, php4-gd is already the newest version.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

aus.


ICh habe ja die neueste PHP-Version schon installiert und kompilert mit
./configure --with-xml --with-zlib --with-gd=/usr/local/lib --with-jpeg-dir=/usr/local/lib/libjpeg
make
make install
make test


nur Apache hat das noch nicht erkannt!?
Muss ich da nicht was in der httpd.conf ändern?


danke, sx1 :)
 
Zuletzt bearbeitet:
was genau ist eigentlich dein problem? so wie du schreibst, ist ja bereits alles mit apt-get (package-manager von debian) installiert. d.h. du musst ueberhaupt nichts von hand kompilieren (wuerde ich dir auch nicht anraten, denn die uebersicht geht so schnell verloren).

ganto
 
Ich muss mich Ganto anschliessen, wo ist dein Problem? Wenn du nicht weisst wo deine Konfigurationsdatei fuer den Apache liegt kannst du sie vielleicht mit folgenden Befehlen finden:

find / -name "apache.conf"
find / -name "apache2.conf"
find / -name "httpd.conf"
Ansonsten muss in die .conf vom Apache das angehaengt werden und der Apache mit apachectl restart bzw apache2ctl restart neugestartet werden, um die Konfiguration zu uebernehmen.

LoadModule php4_module modules/libphp4.so
AddType text/html php
AddType application/x-httpd-php-source phps
Bzw. Diese[1] Seite sollte dir eigentlich helfen.

mfg

[1] = http://dan.drydog.com/apache2php.html
 
Mein PRoblem ist, dass ich momentan anscheinend PHP als CGI kompilert habe.
Es ist ja und war auch von anfang anPHP als Modul installiert.
Nu habe ich PHP nochmal installiert, in ein anderes VErzeichnis.
Und das ist CGI und nicht als Modul.
Und dieses _neue_ mit GDLib will ich einfach als Modul installieren und dann in Apache einfügen.
Also ist meine Frage jetzt noch: Wie kompiliere ich PHP als Modul?
Danke ;-)
 
also lass mal deinen apache laufen und schreibe eine kleine datei test.php:
Code:
<html>
<body>
<?php phpinfo();
?>
</body>
</html>
dann lässt du den apache diese seite ausliefern und schaust, was unter dem abschnitt "loaded modules" zu finden ist. falls du nicht auch noch php4-cgi installiert hast, sollte debian eigentlich php als modul installieren. sonst einfach apt-get remove php4-cgi. ausserdem solltest du vielleicht mal alles selbstkompilierte löschen.

gruss ganto
 
Sicherheitshalber
PHP:
<?php
phpinfo();
?>
 
Hm shit.
Mein Server ist gestern abgeschmiert...
"Konfigurationsfehler", er erkennt das Netzwerk nicht mehr...
Ich lass den jetzt mal neu aufsetzen, evtl klärt sich das Problem dann von selbst.
Hoffentlich, ich musste heute nacht knapp 5 GB Daten vom Backup-Space auf nen neune Server laden und die ZielIPS im DNS für sämtliche Domains ändern...

Naja, danke mal für eure Hilfe, ich poste obs geklappt hat bzw nerve euch wieder ewig wenns nicht klappt ;-)

Danke, sx1
 
Zurück
Oben