-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Scott Webster Wood wrote: | Has anyone got PHP5 to work on apache 2.2 with MySQL? I actually got MySQL | to work under cygwin with no fuss. Re-compiled to create | libmysqlclient.a again with little fuss. Apache of course comes with cygwin | so I've been using that version - got mod_perl compiled on it with no | fuss.
Why do you want a static libmysqlclient.a? Ports includes mysql and a shared libmysqlclient15, which you absolutely will need. | PHP seems to be the fuss. Downloaded and configured with apxs2 and - --with-mysql | and I don't seem to get a libphp5 of any sort to add to Apache's | configuration. (as it went through the install process it says simply | Installing SAPI: cgi while all the other components it shows a full | path) PHP does *NOT* build on Cygwin OOTB. The php-5.2.5-1.cygport file is well documented, and there is a patch as well. But why not just use the packages in Ports? | I found some pre-rolls on the sunsite.dk site but the only apache2-php | didn't include mysql and the other packages seemed to be for | apache v1. I even tried grabbing the source and doing a cygport with it | but the dependencies were crazy. (and yes, I even tried changing the | cygport file to just do the bare minimum using --with-mysql | and still had no luck) apache2-mod_php5 contains only the Apache2 SAPI module; PHP modules can be used by any of the SAPIs (in most cases), and still need to be installed separately. | Has anyone got a mysql capable PHP5 running with apache 2.2 under cygwin? The numerous extensions included with PHP are broken out into separate Cygwin packages. You will need to install the following for a working CAMP stack, including their automatically selected dependencies: * apache2 (latest version from distro) * apache2-mod_php5 (from Ports) * php-mysql, php-mysqli, or php-pdo_mysql (depending on which API you want to use). There have been reports on this list confirming that the CAMP stack in Ports actually works. (Running rebaseall may be necessary.) As complicated as these components are to build, however, I highly recommend you use the packages in Ports rather than trying to figure it out yourself. Yaakov Cygwin Ports -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Cygwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFH3IWVpiWmPGlmQSMRCKSqAKDaOc7GRwqqXmz6Zq1sDqUC6NIVUgCcCveb zoYMHpzBvUBwWtXRwHxdVRM= =ksRq -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Cygwin-ports-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cygwin-ports-general
