Date: Sun, 02 Sep 2001 15:47:28 -0400 From: Mark Woodson <mwoodson@bacxs.com> To: <freebsd-questions@freebsd.org> Cc: ukla@mediaone.net Subject: Re: Installing PHP as CGI & MOD on FreeBSD Message-ID: <5.1.0.14.0.20010902153724.00b17a38@192.168.99.2> In-Reply-To: <B7B7B80C.46AD%ukla@mediaone.net>
next in thread | previous in thread | raw e-mail | index | archive | help
At 10:18 AM 9/2/2001 -0700, Steve Warwick wrote: >Thanks the nice people that answered my other two PHP questions I now have >PHP perfectly compiled... thank you! > >One last question. How do I install both the CGI *and* MOD compiles of PHP? >If I make/install the MOD version, then trying to make clean/make/install >the CGI version gives a warning that PHP is already installed / registered >and I don't wish to overwrite the MOD version by using FORCE_PKG_REGISTER... From what I saw the stand-alone isn't really the CGI (Look through the Makefile's). What looks like the best way to do this is to change to the work directory, and then manually ./configure <some opts>, and make/install. You'll probably want to have a look at PHP's site for the installation from source instructions (it's really not all that daunting), and their full listing of install options. I'm not sure what components/options you want to install support for, but you'll probably want to read through the entire list of options... And be sure to leave of the support for Apache. After you get the source compiled and installed then you'll have to go and manually edit the httpd.conf file to add support for PHP as a CGI. You'll want to remember that you'll need to add a different directive (and probably use a different extension) so that Apache knows when to parse it through the CGI or MOD. The relevant links: Generic Unix instructions, http://www.php.net/manual/en/install.unix.php Complete list of ./configure options, http://www.php.net/manual/en/install.configure.php Apache/PHP, scroll down for the CGI installation instructions. http://www.php.net/manual/en/install.apache.php I've had to do this several times (from source that is) on a remote server (no physical access/no root, web hosting provider). -Mark To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.1.0.14.0.20010902153724.00b17a38>