|
Posted by void * clvrmnky() on 10/28/26 11:43
anne001 wrote:
> I tried downloading the binary 5.1.2 and running
> ./configure --enable-fastcgi --enable-discard-path
> --enable-force-cgi-redirect --with-mysql --with-java
>
> but it did not find the mysql files
You probably need to point the conf script at the mysql development
files. If you have these.
> so I had to run without mysql hoping this php would support mysql
> ./configure --enable-fastcgi --enable-discard-path
> --enable-force-cgi-redirect
> make
> sudo make install
> but the test file in html did not change, it still said 5.0.4
>
The PHP that is referenced by the mod_php DSO is not necessarily the
specific PHP you've installed to (I presume) /usr/local. OS X has most
of the system, including convenient dev tools like this, in /Library or
/System with softlinks back to /usr/ or /private as necessary. Unless
you installed a new DSO to the appropriate directory and restarted
Apache, it will continue to use the DSO it already has available.
This way, you can have any number of PHP installs, as long as they are
kept separate from each other.
> then I went and got the package which includes support for mysql but
> not cfgi.
> http://www.entropy.ch/software/macosx/php/
>
> that installed, and the test file in html now says 5.1.2 but I don't
> find any mention of fcgi
> so it looks like I have updated php, but I haven't figured out how to
> compile php with fcgi.
>
> php -v no longer works in the terminal window.
>
Define "no longer works". I assume that all this hacking as left you
with PHP in /usr/local.
> why doesn't
> ./configure --enable-fastcgi --enable-discard-path
> --enable-force-cgi-redirect --with-mysql --with-java
>
> work?
>
Because it assumes you know exactly what you are doing. Do you have all
the necessary third party stuff, and can the conf script find it? Did
you remove something that the conf script now needs? Are the resulting
headers, libraries and executables in a sane location? Can Apache find
PHP and PHP find MySQL and so on?
I recommend something like Fink or Darwinports to get the libraries,
tools and addons you want to play with. This leaves the stock install
alone. Then you can configure Apache to use whatever DSO you like.
Otherwise, you are going to have to stare at the PHP README and INSTALL
docs for a bit, and figure out how to get all the necessary bits and
pieces for it. A typical technique is to use Fink to get the grungy
development libraries (i.e., I think there is a mysql-dev package) and
then point autoconf at /sw for the stuff that is not in the default
search path(s). This often means tweaking the CFLAGS and LDFLAGS variables.
[Back to original message]
|