Date: Mon, 7 Apr 2014 17:02:02 +0100 From: Aled Morris <aledm@qix.co.uk> To: freebsd-hackers@freebsd.org Subject: Re: despairing with apache httpd + php Message-ID: <CAO1bj=YAUw3R0j_H0UFh34pxA9U_SQ2oiqoJPMb61s3kdjrSOg@mail.gmail.com> In-Reply-To: <b697897ad5f795dce615da25ae483844.authenticated@ultimatedns.net> References: <CAO1bj=bOxZ00dnFNX3Z8oTpumbYLjmygKEkvrSL0vS8xSrMV1A@mail.gmail.com> <20140401001447.1c6013d4@X220.alogt.com> <CAO1bj=b=DqCpqaBSCx5KuRQy_0ad0Qpk4OBFCBmZbtfLp=9kRg@mail.gmail.com> <b697897ad5f795dce615da25ae483844.authenticated@ultimatedns.net>
next in thread | previous in thread | raw e-mail | index | archive | help
I got it working! Big thanks to everyone who chipped in - your moral support was most welcome. In the end I stripped out everything I'd tried, so it was basically an out-of-the-box 10.0-RELEASE box with mysql server running, then did: 1. portsnap fetch/update to get /usr/ports up-to-date 2. in ports/www, make install apache22 3. in ports/lang, make install php55 4. in ports/textproc, make install php55-ctype, php55-dom, php55-xml 5. in ports/devel, make install php55-json 6. in ports/databases, make install php55-mysql 7. in ports/www, make install mod_php55, php55-session I think that's about it! Aled On 31 March 2014 17:45, <chrish@ultimatedns.net> wrote: > > On 31 March 2014 17:14, Erich Dollansky <erichsfreebsdlist@alogt.com> > wrote: > > > >> This is how I have done it. Just get the source, compile and install. > >> But I do not think that it is important to do it like this. You also > >> can do a make install and get it all done in a single step. > > > > > > Compiling php-5.5.10 from source with: > > > > $ sh configure --with-mysql --with-apxs2=/usr/local/apache2/bin/apxs > > $ make > > > > results in a build that can't be installed: > > > > $ sudo make install > > ...blah...blah... > > Warning! dlname not found in /usr/local/apache2/modules/libphp5.la. > > Assuming installing a .so rather than a libtool archive. > > chmod 755 /usr/local/apache2/modules/libphp5.so > > chmod: /usr/local/apache2/modules/libphp5.so: No such file or directory > > apxs:Error: Command failed with rc=65536 > > > > very frustrating! > Indeed. :) > I'm not sure why you're choosing the direction for build install, that you > are. > But if it were me; I'd > > # cd /usr/ports/lang/php55 > # make config > choose the options you wish -- as Apache module for sure > # make > # make install clean > Assuming success... > # cd /usr/ports/www/apache<your chosen version> > # make config > You know the drill; choose your favorite options > # make > # make install clean > > Now, I might also mention, there's also > /usr/ports/lang/php55-extensions. This is a bit of a > meta-package that will allow you to pick all your favorite > must-have php extensions up front. But it's usually better to > simply go to each extension' folder/directory, and make(1), and > configure them individually. I only mention this, as you indicated > you were looking to install mediawiki, which, I believe needs (at least) > XML. > > Best wishes, and hope this helps. :) > > --Chris > > > > > Aled > > _______________________________________________ > > freebsd-hackers@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > > To unsubscribe, send any mail to " > freebsd-hackers-unsubscribe@freebsd.org" > > > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAO1bj=YAUw3R0j_H0UFh34pxA9U_SQ2oiqoJPMb61s3kdjrSOg>