FreeBSD 9.2 platform plus php5-5.4 plus Apache24 - need a rescue
nightrecon at hotmail.com
Wed Apr 22 21:39:37 UTC 2015
Nancy Belle wrote:
> Hi freebsd-questions
> Before writing this, we have worked on several attempts for an install of
> php5-5.4 and apache24 for the past couple of weeks and no joy! Have
> searched google several times were one usually finds an answer.
> We can install all of the usual modules we had for php5-5.4 under apache22
> with apache24 but the php5 won't load them because it's want to stubbornly
> load from the wrong location like the following which contained none of
> the modules even tho we disabled ZTS. Time after time we tried with same
> results. Thus, we decided to enable ZTS and we got the directories below
> with the modules within as shown. However, it stuck out its tongue on
> apache loadup and said none of the mods were "registered."
> The usual php/apache location for the mods is :
> /usr/local/libexec/apache24/mod_xxx.so and not the
> I believe we also saw a warning about use of a threaded apache which I
> understood is not used by default.
> We have been using FBSD for 18 years and never any problem let alonbe a
> mysterious one like this! I say mysterious because we don't know how to
> fix this and time is of the essence because we must move our servers to
> another location and they contain an old Freebsd-7.2 (ouch!) So, we are
> trying to get our servers here locally configured and then transfer the
> old stuff to the new ones. This problem won't let us and we have a
> deadline creeping up.
> One suggestion we found said:
> Fixing ZTS In Brief :
> # kldload dtraceall
> # echo 'dtraceall_load="YES"' >> /boot/loader.conf
> Reinstall lang/php5: #make install (or reinstall) clean
> Didn't do anything for us.
> Apache24 loads and can bring up php5-5.4.39 test page < ?php phpinfo(); ?>
> showing none of our desired modules.
> root% /home/sageame#locate zts
> Surely someone else out there has run into a similar problem. If so, we
> would be hugely appreciative!
> Thanks in advance!
> All the best, :-)
> Nancy Belle, belle at antennex.com
I use Nginx these days, but I do keep an old apache22 install on a test lab
box. However, what I did was create a fresh VM of FreeBSD 10.1 in Virtualbox
and walked through a very basic setup and config and did not reproduce what
This is a basic, with lots of defaults and very few changes on my part. The
custom changes I made were directed towards a basic mpm-prefork and mod_php5
configuration with the handful of default php extensions. All went well.
There are superior methods for utilizing apache and PHP. However, it would
be a fairly large paradigm shift over mod_php and with deadline-type time
constraints should be left to another day.
I can take a little time and write up my notes and send them to the above
email address should you desire. It may not exactly match what you're doing
there but it might help identify where in the process things are going
wrong. (Compare a known good against the problem).
More information about the freebsd-questions