Jump to content

apache 1.3.36 and php 5.1.14 - cant get it working


Capacitor

Recommended Posts

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.
Link to comment
Share on other sites

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!
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.