openbsd 4.7 amd64, httpd and php5 not working

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

openbsd 4.7 amd64, httpd and php5 not working

FRLinux-2
Hello list,

Sorry for stating the obvious but I don't get this. I am trying to
load up apache (which is working) with php5. I have then installed
php5-core and linked the proper stuff into /var/www/conf/

ln -s /var/www/conf/modules.sample/php5.conf /var/www/conf/modules/php5.conf

/var/www/conf contains a valid php.ini file

cat /var/www/conf/modules/php5.conf

LoadModule php5_module /usr/local/lib/php/libphp5.so

<IfModule mod_php5.c>
        AddType application/x-httpd-php .php .phtml .php3
        AddType application/x-httpd-php-source .phps
# Most php configs require this
        DirectoryIndex index.php
</IfModule>

file /usr/local/lib/php/libphp5.so
/usr/local/lib/php/libphp5.so: ELF 64-bit LSB shared object, x86-64,
version 1, for OpenBSD, dynamically linked, not stripped

When starting httpd (using -u at the moment to exclude any chroot
funky business), it does not report any error and i can call a php
file but then get a blank page. If i look at the source, i get my
source script (at the moment just trying to display phpinfo.

In the logs, it does not see it as an error, i just get a normal hit
in the access log:
[24/Jun/2010:14:18:50 +0100] "GET /info.php HTTP/1.1" 200 29

Must be something very stupid but i don't get this. I first tried to
reinstall my setup using lighttpd and php as fastcgi and got the same
error so thought it came from my installation. Any help welcome.

sudo httpd -l
Compiled-in modules:
  http_core.c
  mod_env.c
  mod_log_config.c
  mod_mime.c
  mod_negotiation.c
  mod_status.c
  mod_include.c
  mod_autoindex.c
  mod_dir.c
  mod_cgi.c
  mod_asis.c
  mod_imap.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_access.c
  mod_auth.c
  mod_so.c
  mod_setenvif.c
  mod_keynote.c
  mod_ssl.c
suexec: enabled; valid wrapper /usr/sbin/suexec

For info, OpenBSD runs on a KVM under CentOS but I don't believe this
might be relevant here given that all the rest is working flawlessly
(incidentally I have disabled mpi* and iic*)

OpenBSD 4.7 (GENERIC) #112: Wed Mar 17 20:43:49 MDT 2010
    [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 267321344 (254MB)
avail mem = 247496704 (236MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xfbdaf (10 entries)
bios0: vendor QEMU version "QEMU" date 01/01/2007
bios0: Red Hat KVM
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP APIC
acpi0: wakeup devices
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
acpiprt0 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0
mpbios at bios0 not configured
cpu0 at mainbus0: (uniprocessor)
cpu0: QEMU Virtual CPU version 0.9.1, 2394.29 MHz
cpu0: FPU,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,NXE,LONG
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB
64b/line 16-way L2 cache
cpu0: ITLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped
cpu0: DTLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel 82441FX" rev 0x02
pcib0 at pci0 dev 1 function 0 "Intel 82371SB ISA" rev 0x00
pciide0 at pci0 dev 1 function 1 "Intel 82371SB IDE" rev 0x00: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <QEMU HARDDISK>
wd0: 16-sector PIO, LBA48, 10240MB, 20971520 sectors
wd0(pciide0:0:0): using PIO mode 0, DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <QEMU, QEMU DVD-ROM, 0.9.> ATAPI 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 0
uhci0 at pci0 dev 1 function 2 "Intel 82371SB USB" rev 0x01: irq 11
piixpm0 at pci0 dev 1 function 3 "Intel 82371AB Power" rev 0x03: irq 10
iic at piixpm0 not configured
vga1 at pci0 dev 2 function 0 "Cirrus Logic CL-GD5446" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
em0 at pci0 dev 3 function 0 "Intel PRO/1000MT (82540EM)" rev 0x03:
irq 11, address 54:52:00:4a:f4:0e
"Qumranet Virtio Memory" rev 0x00 at pci0 dev 4 function 0 not configured
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: probed fifo depth: 0 bytes
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: density unknown
fd1 at fdc0 drive 1: density unknown
usb0 at uhci0: USB revision 1.0
uhub0 at usb0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
nvram: invalid checksum
mtrr: Pentium Pro MTRR support
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
root on wd0a swap on wd0b dump on wd0b
clock: unknown CMOS layout

Thanks in advance, this is driving me mad.
Steph

Reply | Threaded
Open this post in threaded view
|

Re: openbsd 4.7 amd64, httpd and php5 not working

FRLinux-2
On Thu, Jun 24, 2010 at 3:45 PM, Otto Moerbeek <[hidden email]> wrote:
> What the value of short_open_tag in php.ini and what is the exact
> content of your test file.

Hello Otto, thanks for your reply, this was the error, been using
mostly <? as a php tag (very old habit indeed...), switching it to On
fixed my issue, thanks again!

I'll go and hide in the bushes now.
Cheers,
Steph