[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] PHP, Apache, MySQL issue



Thanks for all the help! I'm no expert with servers, but I think the
information you provided will help me a lot.

NOTE: I AM trying to install PHP as a module, because right now it's a
standalone...I believe the reason it is (since this is not the default way
to install) is because ChiliSoft ASP Interpreter is running on the box.


Daren Cotter
Web Development
Prairie Lakes Internet
(507) 344-1318
darenc@xxxxxxxxxxxxxxxxx
http://web.lakes.com

> -----Original Message-----
> From: cobalt-users-admin@xxxxxxxxxxxxxxx
> [mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Kris Dahl
> Sent: Tuesday, August 01, 2000 10:05 AM
> To: cobalt-users@xxxxxxxxxxxxxxx
> Subject: Re: [cobalt-users] PHP, Apache, MySQL issue
>
>
>
> > I am setting up a client on a RaQ3 with a shopping site, complete with a
> > cart, online ordering, etc...this is all being done using PHP &
> > MySQL...however, I just recently discovered a major problem.
> I'm not real
> > certain of the terminology, but I know php can be installed two
> different
> > ways...one is "under" apache, so that it works with it, and the
> other does
> > not; it installs like perl would, so that a separate process has to be
> > launched for each php script interpreted. Whenever I have
> installed PHP it
> > has installed the first way (must be the default)...I have
> never known or
> > cared to know the difference but I have been told that if not installed
> > the first way, persistent database connections do not work.
>
> The first is called as an 'Apache Module', or 'mod_php' and the second
> method is called 'As a CGI' or 'standalone'.
>
> > The question: Is there any way I can reconfigure apache so that I can
> > install PHP so that it will accept Persistent DB connections and not
> > tamper with the ChiliSoft program?
>
> It is rare that you want PHP compiled as a CGI.  This is more for
> portability than anything.  Chances are if you are running Apache you want
> to run PHP as a module.  The performance difference is very large.
>
> > ERROR MESSAGE:
> > apxs:Warning: /usr/bin/httpd not found or not executable
> > apxs:Warning: Continuing anyway...
> > apxs:Warning: No shared object support for Apache
> > apxs:Warning: available under your platform. Make sure
> > apxs:Warning: the Apache module mod_so is compiled into
> > apxs:Warning: your server binary `/usr/bin/httpd'.
> > apsx:Warning: Continuing anyway...
>
> Essentially this is the problem--either Apache was not compiled
> with mod_so
> or the path to APXS was incorrect when configuring PHP.
>
> The instructions INSTALL.DSO that came with PHP should provide you with
> information on how to make it happen.
>
> Specifically Apache should be compiled like so
> ./configure --prefix=/path/to/apache --enable-shared=max
> make
> make install
>
> and then PHP should be comipiled
> ./configure --with-axps=/path/to/apache/bin/apxs
>
> There is more in-depth documentation on this list on how to
> install PHP and
> Apache (by compiling your own, not installing an RPM or .pkg).
>
> -k
>
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>