FreeBSD 9.2 platform plus php5-5.4 plus Apache24 - need a rescue

Nancy Belle belle at antennex.com
Wed Apr 22 17:47:55 UTC 2015


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 
"/usr/local/lib/php/20100525-zts/mod_xxx.so."

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
/usr/local/lib/php/20100525-zts
/usr/local/lib/php/20100525-zts/apc.so
/usr/local/lib/php/20100525-zts/bz2.so
/usr/local/lib/php/20100525-zts/calendar.so
/usr/local/lib/php/20100525-zts/ctype.so
/usr/local/lib/php/20100525-zts/curl.so
/usr/local/lib/php/20100525-zts/dom.so
/usr/local/lib/php/20100525-zts/filter.so
/usr/local/lib/php/20100525-zts/ftp.so
/usr/local/lib/php/20100525-zts/gd.so
/usr/local/lib/php/20100525-zts/gettext.so
/usr/local/lib/php/20100525-zts/hash.so
/usr/local/lib/php/20100525-zts/iconv.so
/usr/local/lib/php/20100525-zts/json.so
/usr/local/lib/php/20100525-zts/mbstring.so
/usr/local/lib/php/20100525-zts/mcrypt.so
/usr/local/lib/php/20100525-zts/mysql.so
/usr/local/lib/php/20100525-zts/mysqli.so
/usr/local/lib/php/20100525-zts/openssl.so
/usr/local/lib/php/20100525-zts/pdf.so
/usr/local/lib/php/20100525-zts/pdo.so
/usr/local/lib/php/20100525-zts/pdo_sqlite.so
/usr/local/lib/php/20100525-zts/phar.so
/usr/local/lib/php/20100525-zts/posix.so
/usr/local/lib/php/20100525-zts/session.so
/usr/local/lib/php/20100525-zts/simplexml.so
/usr/local/lib/php/20100525-zts/snmp.so
/usr/local/lib/php/20100525-zts/soap.so
/usr/local/lib/php/20100525-zts/sockets.so
/usr/local/lib/php/20100525-zts/sqlite3.so
/usr/local/lib/php/20100525-zts/tokenizer.so
/usr/local/lib/php/20100525-zts/xml.so
/usr/local/lib/php/20100525-zts/xmlreader.so
/usr/local/lib/php/20100525-zts/xmlwriter.so
/usr/local/lib/php/20100525-zts/zip.so
/usr/local/lib/php/20100525-zts/zlib.so

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
4/22/2015 


More information about the freebsd-questions mailing list