Jump to content


Photo

apache 1.3.36 and php 5.1.14 - cant get it working


  • Please log in to reply
1 reply to this topic

#1 Capacitor

Capacitor
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 04 July 2006 - 08:04 PM

This is driving me batty.
I've installed apache 1.3.36 from source and php 5.1.14
but trying to load index.php or admin.php or any .php pages just gives me text.
I tried "--with-apache" and "--with-apxs" but claim they do the work properly,
but they dont.

my httpd.conf shows- LoadModule php5_module        libexec/libphp5.so
there is NO "ClearModuleList" in my httpd.conf (grep -i clear shows no result)
and no AddType for php

if I add the AddType manually say just below the tgz handler, it still doesn't work.
I know I'm missing something insanely stupid, but I can't figure out what it is.

This is a brand new install from scratch, nothing else has been done with the files.

#2 Capacitor

Capacitor
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 04 July 2006 - 08:15 PM

I fixed it!

A completely non-obvious and counter-intuitive fix.
here's the solution (for me)-

the following two lines:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
MUST be added IMMEDIATELY after the LoadModule line for php

augh!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users