Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Apr 2002 21:48:38 +0200 (CEST)
From:      Thomas Bollen <thomas@futuristic.nl>
To:        Wayne Lubin <wayneclubin@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: apache13-mod_ssl with mod_php4 and mysql
Message-ID:  <20020402213913.Q32918-100000@futuristic.nl>
In-Reply-To: <20020402192012.26437.qmail@web14703.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Wayne:

1. During the 'make install (clean)' process of PHP while doing the
configuration part, you will get a very simple ascii gui in which you can
set your preferences for support (like mysql support), builtin into PHP.

2. Yes you can add/remove/change these settings, when trying to understand
the ports system it's really just a neat set of scripts doing the
configure, make and make install for you, including dependencies so these
sure are files you can edit. I do think you will still get the menu during
configuration. This something you can probably turn on and off somewhere..
not sure. To configure with mysql is indeed --with-mysql.

3. For your third question i'm not quite sure, maybe one of the other
'freebsd-questions' readers can help us out here?

Goodluck,
Thomas

On Tue, 2 Apr 2002, Wayne Lubin wrote:

> Hi,
>
> I have just a couple of questions and then I think I
> am good for the go.
>
> 1. You said that the mod_php make process will prompt
> me whether to use mysql or not. I have never seen an
> "interactive" make process. Is that what you mean to
> say?
>
> 2. The makefile for mod_php4 has the following
> variable set:
>
> CONFIGURE_ARGS= --with-apxs=${APXS} \
>                 --enable-versioning \
>                 --with-system-regex \
>                 --with-config-file-path=${PREFIX}/etc
> \
>                 --disable-debug \
>                 --enable-track-vars \
>                 --without-gd \
>                 --disable-pear \
>                 --without-mysql
>
> Instead of waiting for that interactive thing, could I
> just change the "--without-mysql" to something like
> "--with-mysql"(or whatever the specific wording needs
> to be to get it to talk to mysql)? And if so, and you
> know that wording, what is it. You can save me some
> time of digging around to find it out :).
>
> 3. Also in the mod_php4 makefile the following
> variable is set:
>
> BUILD_DEPENDS=
> ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
>
> and in the bsd.ports.mk file, BUILD_DEPENDS is defined
> as:
>
> A list of "path:dir[:target]" tuples of other ports
> this package depends to run.
>
> I am having trouble understanding this definition. It
> seems to say that for a given port, that the "current"
> port you wish to intall depends on, an entry in the
> BUILD_DEPENDS variable needs to exist and needs to be
> in the form path:dir[:target]. For simplicity of this
> discusion let's disgard the optional "tartget" field.
> So we are left with "path:dir" for a port that the
> "current" port depends on. What does this mean and how
> is just the "path" not sufficient to describe the port
> depended on? And also, for this variable as used in
> the mod_php4 makefile, it seems as if for the "path"
> portion it has the path to the apxs program, and for
> the "dir" portion it has the path to the apache13
> port. Sort of like apples and oranges according to the
> definition of the BUILD_DEPENDS variable. In other
> words doesn't each "path:dir" pair need to refer to
> the same port(not that I undersatnd how path:dir
> points to a specific port, which is one of my
> questions above).
>
> Thanks for the help,
>
> Wayne
>
>
>
>
> --- Thomas Bollen <thomas@futuristic.nl> wrote:
> > Hi Wayne,
> >
> > First of all i noticed that your probably a bit new
> > to Apache, mySQL and
> > PHP, a good start might be to learn more about these
> > software packages,
> > how they work, how the general installation goes and
> > anything else you can
> > find out.
> >
> > A good start might be:
> > www.apache.org
> > www.php.net
> > www.mysql.com
> >
> > Second, it is possible to install everything you
> > need with the FreeBSD
> > ports collection. I'll show you how it's basically
> > done.
> >
> > How (assuming the machine has an internet hookup):
> >
> > First let's install Apache-modSSL:
> > Login, su to root and cd to:
> > /usr/ports/www/apache13-modssl
> > Here type 'make install clean', the port will now be
> > fetched from a ftp
> > server, then extracted, configured and installed,
> > with probably some
> > dependencies.
> >
> > Second let's install PHP:
> > Assuming your still in
> > /usr/ports/www/apache13-modssl do a cd to:
> > /usr/ports/www/mod_php4
> > Here again type 'make install clean' (if you you
> > want the php commandline
> > interpreter, do not use 'clean', then you can copy
> > it from the work
> > directory lateron), the port will again be fetched
> > from a ftp server, then extracted, configured and
> > installed, with some
> > dependencies.
> > When installing PHP keep in mind a few things,
> > first: during the
> > installation you will be given a menu, make sure,
> > you mark the option for
> > mysql support! (yes! :-)) Second, after the
> > installation process is done,
> > make sure you see the following configuration in
> > your
> > /usr/local/etc/apache/httpd.conf:
> >
> > --snip--
> > LoadModule setenvif_module
> > libexec/apache/mod_setenvif.so
> > LoadModule php4_module		libexec/apache/libphp4.so
> > <IfDefine SSL>
> > LoadModule ssl_module		libexec/apache/libssl.so
> > </IfDefine>
> > --snip--
> >
> > --snip--
> > AddModule mod_setenvif.c
> > AddModule mod_php4.c
> > <IfDefine SSL>
> > AddModule mod_ssl.c
> > </IfDefine>
> > --snip--
> >
> > --snip-- (something like the following)
> > <IfModule mod_dir.c>
> >     <IfModule mod_php3.c>
> >         <IfModule mod_php4.c>
> >             DirectoryIndex index.php index.php3
> > index.html
> >         </IfModule>
> >         <IfModule !mod_php4.c>
> >             DirectoryIndex index.php3 index.html
> >         </IfModule>
> >     </IfModule>
> >     <IfModule !mod_php3.c>
> >         <IfModule mod_php4.c>
> >             DirectoryIndex index.php index.html
> >         </IfModule>
> >         <IfModule !mod_php4.c>
> >             DirectoryIndex index.html
> >         </IfModule>
> >     </IfModule>
> > </IfModule>
> >
> > <IfModule mod_php4.c>
> >         AddType application/x-httpd-php .php
> >         AddType application/x-httpd-php-source .phps
> > </IfModule>
> > --snip--
> >
> > After this (and editing your httpd.conf a little
> > further for apache
> > itself) you can start your apache webserver, with
> > php support and the
> > modssl by typing as root:
> > apachectl startssl
> > Or if it's allready running:
> > apachectl configtest
> > apachectl graceful (yes one 'l'!)
> > Or without modssl:
> > apachectl start/configtest/graceful
> >
> > Ok now you got almost everything except the
> > database.. (when looking
> > closer you'll see you allready have the mysql-client
> > port, installed as
> > a dependencie, but not the mysql-server port). By
> > the way, you can test
> > your php by creating a php webpage with the
> > phpinfo() function.
> >
> > Well assuming your still root, cd to:
> > /usr/ports/databases/mysql323-server
> > Here run 'make install clean' again, and the usual
> > procedure will repeat
> > itself. When it's done installing run 'safe_mysqld
> > &' to start it up (if
> > it hasn't allready)
> >
> > Offcourse there are allot of configuration options
> > (and allot of
> > security issues you might want to keep in mind,
> > especially: PHP and
> > mySQL) but this should get you on your way and help
> > you through the
> > process of installation, i might haven't told you
> > every detail about the
> > install, but it shouldn't be too hard to figure out
> > any questions you
> > might encounter, if you have anymore questions that
> > you can't solve, even
> > after reading documentation, don't hesitate to ask!
> >
> > More information about installing FreeBSD ports is
> > on:
> >
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports.html
> >
> > Hope this helps and isn't too confusing ;-) i tried
> > to keep it simple,
> > Thomas
> >
> > On Mon, 1 Apr 2002, Wayne Lubin wrote:
> >
> > > Hi,
> > >
> > > I am not quite sure how to get apache13-mod_ssl
> > with
> > > mod_php4 and mysql all working together if
> > installed
> > > from the ports. If I was working from the source
> > balls
> > > then I would pass what I want as command line
> > options
> > > such as "with_php" or "with_mysql"(not exactly
> > those
> > > "words", but you know what I mean). My question is
> > how
> > > do I do this with the ports? For example, I looked
> > at
> > > the makefile in mod_php4 and it assumes that
> > apache13
> > > is being used, and so it seems as if having
> > > apache13-mod_ssl installed instead would just
> > cause an
> > > error(I am not saying this is what will happen, I
> > am
> > > just saying that I am a bit confused here). And
> > how do
> > > I get mod_php4 to talk to mysql? Seems as if you
> > need
> > > to pass to it the fact that you want it to talk to
> > > mysql, such as by passing to it on the command
> > line
> > > when compiling, something like "with_mysql". But
> > by
> > > simply going into the mod_php4 port directory and
> > > typing "make insall", I don't see how this gets
> > that
> > > info to it.
> > >
> > > In summary I would like to know how using the
> > ports I
> > > could get the three ports indicated above to all
> > work
> > > together. Thanks in advance.
> > >
> > > P.S. Someone told me that actually I could work
> > > straight from the source balls and pass it all of
> > the
> > > above methioned "with_php" and with_mysql", and
> > that
> > > no "porting" of the code is required for the above
> > > three softwares to work. Is this true?
> > >
> > > Wayne
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Yahoo! Tax Center - online filing with TurboTax
> > > http://http://taxes.yahoo.com/
> > >
> > > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > > with "unsubscribe freebsd-questions" in the body
> > of the message
> > >
> >
> >
> >
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-questions" in the body of
> > the message
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://http://taxes.yahoo.com/
>


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?20020402213913.Q32918-100000>