Hello, I did a lot of installs/reinstalls and I still have the same problem. I couldn´t get to work apache2 with php4 or 5. 1. I installed mysql5 +server -> works 2. I installed apache2 -> works 3. I installed php4 +apache2 +mysql5 and followed the steps at the end, renaming php.ini, pear.conf, checked for the httpd.conf entry and the permissions of libphp4.so, no result. Apache works fine, test.php (<?php echo phpinfo(); ?>) only displays the code. 4. reinstalled php4, tryed the same with php5, same result. Error.log shows that I am missing dbd: "this function has not yet implemented on this platform: DBD: driver for [DBDriver unset] not available" Port instelled shows: apache2 @2.2.3_0 (active) apr @1.2.7_0 (active) apr-util @1.2.7_0 (active) cclient @2004g_0 (active) curl @7.15.5_0+darwin_8 (active) db4 @4.3.29_0+darwin_8 (active) expat @2.0.0_1 (active) freetype @2.1.10_1 (active) gettext @0.15_0 (active) jpeg @6b_1 (active) libiconv @1.11_0+darwin_8 (active) libmcrypt @2.5.7_2+darwin_8 (active) libpng @1.2.10_2+darwin_8 (active) libtool @1.5.22_0 (active) libxml2 @2.6.23_0 (active) libxslt @1.1.15_0 (active) mhash @0.9.2_0+darwin_8 (active) mysql5 @5.0.26_0+darwin_8+server (active) openssl @0.9.8d_0+darwin_8 (active) pcre @6.7_0 (active) php5 @5.1.6_2+apache2+darwin_8+macosx+mysql5 (active) tidy @20051025_0+darwin_8 (active) tiff @3.8.2_0+darwin_8 (active) zlib @1.2.3_0 (active) I have no idea, what my mistake is. Thanks Uli
-----Ursprüngliche Nachricht----- Von: Mark Duling [mailto:mark.duling@biola.edu] Gesendet: Sonntag, 22. Oktober 2006 22:16 An: Ulrich Wiederhold Cc: macports-users@lists.macosforge.org Betreff: Re: Php-module for apache - start server
"Ulrich Wiederhold" <wubuwei@gmx.net> on Sunday, October 22, 2006 at 5:57 AM -0800 wrote:
I am very new with macs but I need to install zoph (www.nother.net) on my imac (Intel CPU).
For this I need new apache, php and more. So I installed darwin|macports 1.3.2 and php5 and apache2.2.
1. How do I get a php5 Module for apache?
The INSTALL file for zoph says it requires PHP4. But hopefully it works with PHP5. Install it like this ans watch for some additional instructions at the end of the install.
port install php5 +apache2 +mysql5
It has worked fine for me in the past. Right now I'm having trouble geting PHP5 to work with my new MacBook Pro and I haven't found the problem yet. Perhaps it is just my machine though.
2. How do I start the mysql5-Server and restart it every
time I start
the mac?
Install using the server variant like this:
port install mysql5 +server
The server variant installs a LaunchD item. A ui_msg during install will tell you to do something like this to activate the startupitem.
sudo launchctl load -w /Library/LaunchDaemons/ .....
3. If I start apachectl, it still uses /usr/bin/apachectl
from my Mac-OS.
I already added the PATH in /etc/profiles and as well in my .profile. Can I uninstall the older versions of apache, mysql, perl etc. that came with my macos?
Set your path to have MacPorts paths in front of the rest and it will always find MacPort's apachectl first. Just turn off Personal Web Sharing in System Preferences so Apple's Apache isn't running.
http://trac.macosforge.org/projects/macports/wiki/InstallingMacPorts
4. If I figured out all the problems above i can install
zoph. I could
do it from source in /usr/local, or is there a better way? Is it possible to build my own zoph-package to install/uninstall it with macports?
Making your own port is the way to go. Something like below probably. The destroot section you'll need to modify, it is only an example. Use a local repository by editing /opt/local/etc/ports/sources.conf to have a 'file:///' entry locating yor local repository.
file:///Users/johndoe/dports rsync://rsync.darwinports.org/dpupdate/dports
Then run 'portindex' from that directory and then install like any other port. After you get thePortfile modified properly and tested it can be committed.
Mark
# $Id: Portfile
PortSystem 1.0 name zoph version 0.6 categories www maintainers darwinports@opendrwin.org description Web based digital image presentation and management system. long_description ${description}
homepage http://www.nother.net/zoph/ platforms darwin master_sites sourceforge checksums md5 7e139b32bd477cccf43454cb4c07c16d
depends_lib port:mysql5 \ port:apache2 \ port:php5 \ port:perl5.8 \ port:p5-dbi \ port:p5-dbd-mysql \ port:p5-image-size \ port:imagemagick \ port:jhead
use_configure no build {}
variant mysql4 { depends_lib-delete port:mysql5 depends_lib-append port:mysql4 }
set appdir ${prefix}/share/${name} set docdir ${prefix}/share/doc/${name}
destroot { # Comments describing what is being installed ...... xinstall -m 755 -d ${destroot}${appdir} xinstall -m 755 -d ${destroot}${docdir} system "cd ${worksrcpath} && cp -R . ${destroot}${appdir}" system "cp ${worksrcpath}/docs/* ${destroot}${docdir}" }