Date: Wed, 22 Apr 2015 17:23:51 -0400 From: Michael Powell <nightrecon@hotmail.com> To: freebsd-questions@freebsd.org Subject: Re: FreeBSD 9.2 platform plus php5-5.4 plus Apache24 - need a rescue Message-ID: <mh93h8$qoh$1@ger.gmane.org> References: <DM__150422120215_17485523238@mail.antennex.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 > "/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@antennex.com > 4/22/2015 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 you describe. 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). -Mike
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?mh93h8$qoh$1>