apache2 und PHP auf openBSD 5.4 - PHP Unterstützung wird nicht erkannt

overflow

Member of Honour
Seit heute Mittag 14:00 Uhr versuche ich apache2 mit PHP zu starten - bisher ohne Erfolg.
Es gab div. Schwierigkeiten mit dem Server, daher habe ich eine Neuinstallation vor kurzem durchgeführt.
Immer noch will PHP nicht laufen.

OS: openbsd 5.4 GENERIC.MP#44 i386

pkg_info
GeoIP-1.4.8 find the country where IP address/hostname originates from
apache-httpd-2.2.25 apache HTTP server
apr-1.4.6p1 Apache Portable Runtime
apr-util-1.4.1p2 companion library to APR
bison-2.3p0 GNU parser generator
bzip2-1.0.6p0 block-sorting file compressor, unencumbered
curl-7.26.0p3 get files from FTP, Gopher, HTTP or HTTPS servers
db-4.6.21p0v0 Berkeley DB package, revision 4
femail-0.98 simple SMTP client
femail-chroot-0.98p2 simple SMTP client for chrooted web servers
gettext-0.18.2p3 GNU gettext
glib2-2.36.3 general-purpose utility library
gmake-3.82p2 GNU make
gnupg-2.0.19p3 gnu privacy guard - a free PGP replacement
jpeg-9p0 IJG's JPEG compression utilities
libassuan-2.1.0 IPC library used by GnuPG and gpgme
libcroco-0.6.8p0 generic CSS parsing library for GNOME project
libelf-0.8.13p1 read, modify, create ELF files on any arch
libffi-3.0.9p5 Foreign Function Interface
libgcrypt-1.5.2 crypto library based on code used in GnuPG
libghttp-1.0.9p2 GNOME http client library
libgpg-error-1.11 error codes for GnuPG related software
libiconv-1.14p0 character set conversion library
libidn-1.27 internationalized string handling
libksba-1.2.0 X.509 library
libltdl-2.4.2 GNU libtool system independent dlopen wrapper
libmcrypt-2.5.8p1 interface to access block/stream encryption algorithms
libsigc++-2.2.11p1 callback framework for C++
libsigsegv-2.10 library for handling page faults in user mode
libssh2-1.4.3 library implementing the SSH2 protocol
libusb-compat-0.1.5 libusb-0.1 compatibility layer for libusb1
libusb1-1.0.9p8 library for USB device access from userspace
libxml-2.9.0p0 XML parsing library
m4-1.4.16 GNU m4
mysql-client-5.1.70v0 multithreaded SQL database (client)
mysql-server-5.1.70v0 multithreaded SQL database (server)
nano-2.2.6 Pico editor clone with enhancements
nspr-4.10 Netscape Portable Runtime
nss-3.15.1 libraries to support development of security-enabled apps
p5-Authen-NTLM-1.08 perl interface to the NTLM authentication mechanism
p5-Authen-SASL-2.12p0 perl interface to the SASL auth framework
p5-BSD-Resource-1.2907 BSD process resource limit and priority functions
p5-Clone-0.34 recursively copy Perl datatypes
p5-Convert-ASN1-0.22p0 module to encode and decode ASN.1 data structures
p5-Crypt-SSLeay-0.64 library to provide LWP https support via OpenSSL
p5-DBD-mysql-4.023p0 MySQL drivers for the Perl DBI
p5-DBI-1.622 unified perl interface for database access
p5-Digest-HMAC-1.02p0 interface to HMAC Message-Digest Algorithms
p5-Digest-SHA1-2.13p2 module to calculate SHA1 digests
p5-FreezeThaw-0.5001 module for converting structures to strings and back
p5-GSSAPI-0.28p3 perl interface to the GSSAPIv2 library
p5-HTML-Parser-3.69 modules to parse and extract information from HTML
p5-HTML-Tagset-3.20p0 data tables useful for parsing HTML
p5-HTTP-GHTTP-1.07p4 perl interface to the GNOME GHTTP library
p5-IO-Socket-SSL-1.952 perl interface to SSL sockets
p5-IO-Tty-1.10p1 provide an interface to create pseudo ttys
p5-Locale-gettext-1.05p4 interface to gettext() internationalization function
p5-MLDBM-2.05 store multi-level hash structure in single-level tied hash
p5-Net-Daemon-0.48 extension for portable daemons
p5-Net-OpenSSH-0.57 perl SSH client package implemented on top of OpenSSH
p5-Net-SSH2-0.33p2 support for the SSH 2 protocol via libssh2
p5-Net-SSLeay-1.55 perl module for using OpenSSL
p5-Params-Util-1.07 utility to make parameter checking easier
p5-PlRPC-0.2018p1 module for writing rpc servers and clients
p5-SQL-Statement-1.33 sql parsing and processing
p5-Sub-Uplevel-0.24v0 Perl library for manipulating frame stack
p5-Test-Exception-0.31p0 test functions for exception based code
p5-URI-1.60 library to parse Uniform Resource Identifiers
p5-XML-Filter-BufferText-1.01p0 collate XML character events in one chunk
p5-XML-NamespaceSupport-1.11p0 perl module to the SAX2 NamespaceSupport class
p5-XML-Parser-2.41p0 perl module for parsing XML documents
p5-XML-SAX-0.96p1 perl interface to the SAX2 XML parser
p5-XML-SAX-Writer-0.53 SAX2 writer
p5-ldap-0.4001p1 client interface to LDAP servers
p5-libwww-5.837 library for WWW access in Perl
pcre-8.33 perl-compatible regular expression library
php-5.3.27-ap2 server-side HTML-embedded scripting language
php-mcrypt-5.3.27 mcrypt encryption/decryption extensions for php5
php-mysql-5.3.27 mysql database access extensions for php5
php-mysqli-5.3.27 mysql database access extensions for php5
pinentry-0.8.1p0 PIN or passphrase entry dialog (ncurses interface)
png-1.6.2p0 library for manipulating PNG images
pth-2.0.7 GNU portable threads
python-2.7.5 interpreted object-oriented programming language
quirks-1.87 exceptions to pkg_add rules
screen-4.0.3p3 multi-screen window manager
smartmontools-6.1 control and monitor storage systems using SMART
t1lib-5.1.2 Type 1 rasterizer library for UNIX/X11

$ ls /usr/lib/apache/modules/
libproxy.so mod_auth_digest.so mod_expires.so mod_log_referer.so mod_speling.so
mod_auth_anon.so mod_cern_meta.so mod_headers.so mod_mime_magic.so mod_unique_id.so
mod_auth_db.so mod_define.so mod_info.so mod_mmap_static.so mod_usertrack.so
mod_auth_dbm.so mod_digest.so mod_log_agent.so mod_rewrite.so mod_vhost_alias.so

ls /usr/local/lib/apache2/
httpd.exp mod_authz_user.so mod_headers.so mod_proxy_http.so
mod_actions.so mod_autoindex.so mod_ident.so mod_proxy_scgi.so
mod_alias.so mod_cache.so mod_imagemap.so mod_reqtimeout.so
mod_asis.so mod_cern_meta.so mod_include.so mod_rewrite.so
mod_auth_basic.so mod_cgi.so mod_info.so mod_setenvif.so
mod_auth_digest.so mod_dav.so mod_log_config.so mod_speling.so
mod_authn_anon.so mod_dav_fs.so mod_log_forensic.so mod_ssl.so
mod_authn_dbd.so mod_dbd.so mod_logio.so mod_status.so
mod_authn_dbm.so mod_deflate.so mod_mime.so mod_substitute.so
mod_authn_default.so mod_dir.so mod_mime_magic.so mod_suexec.so
mod_authn_file.so mod_disk_cache.so mod_negotiation.so mod_unique_id.so
mod_authz_dbm.so mod_dumpio.so mod_proxy.so mod_userdir.so
mod_authz_default.so mod_env.so mod_proxy_ajp.so mod_usertrack.so
mod_authz_groupfile.so mod_expires.so mod_proxy_balancer.so mod_version.so
mod_authz_host.so mod_ext_filter.so mod_proxy_connect.so mod_vhost_alias.so
mod_authz_owner.so mod_filter.so mod_proxy_ftp.so

Ich vermute mal, dass irgendein Modul fehlt.
Im Netz habe ich was von einem libphp5.so gelesen.
Ist es zwingend notwendig?

@Tarantoga/Bitmuncher: Hier habt ihr euren Beitrag

EDIT: Ich habs... Es lag an dem Modul /usr/local/lib/php-5.3/libphp5.so. Der wurde bei der ersten Installation nicht hinzugefügt.
Ein ganzen Tag nur wegen einem Modul verloren!
 
Ja, manchmal reicht’s schon aus, wenn man alles mal zusammenfasst um den Fehler zu finden. Es gibt aber durchaus auch Apachen, wo PHP nicht als Modul drin ist sondern fest einkompiliert. Das tun aber weder BSD- noch Linux-Distros per Default. Daher gilt es immer, wenn PHP in einem Webserver nicht funktioniert, folgendes zu prüfen:
1. Existiert das PHP-Modul?
2. Wird das PHP-Modul geladen?
3. Ist mit SetHandler ein Handler für PHP-Dateien definiert?
4. Wird ggf. irgendwo in der Config mittels ‚php_admin_value engine Off‘ die PHP-Engine für bestimmte Ordner deaktiviert?
Erfahrungsgemäss hat man nach Abarbeitung dieser Punkte die Ursache gefunden.
 
Zurück
Oben