hi! i'm trying to install macport's apache, mysql server, and php5. i did this without error (output omitted): % sudo port install apache % sudo port install mysql5 +server % sudo port install php5 +apache +mysql5 +imap +tidy +sqlite +pear
Then this (output omitted): % sudo cp /opt/local/etc/php.ini-dist /opt/local/etc/php.ini % cd /opt/local/libexec/apache % sudo /opt/local/apache/bin/apxs -a -e -n "php5" libphp5.so ...but there is no "/opt/local/apache" so from "/opt/local/libexec/apache" where "libphp5.so" exists, I tried both apxs's in /opt/local/, like this: % sudo /opt/local/sbin/apxs -a -e -n "php5" libphp5.so [activating module `php5' in /opt/local/etc/apache/httpd.conf] cp /opt/local/etc/apache/httpd.conf /opt/local/etc/apache/httpd.conf.bak cp /opt/local/etc/apache/httpd.conf.new /opt/local/etc/apache/httpd.conf rm /opt/local/etc/apache/httpd.conf.new % sudo apachectl configtest Syntax error on line 237 of /opt/local/etc/apache/httpd.conf: API module structure `php5_module' in file /opt/local/libexec/apache/libphp5.so is garbled - perhaps this is not an Apache module DSO? Same result with % sudo /opt/local/var/macports/software/apache/1.3.37_0/opt/local/sbin/apxs -a -e -n "php5" libphp5.so Any idea what the problem is? The /opt/local/ versions of apache & mysql are otherwise fine and working. I have a newish MPB w/OSX 10.4.10 and latest Xcode... from /opt/local/etc/apache/httpd.conf line 63: ServerRoot "/opt/local" line 237: LoadModule php5_module libexec/apache/libphp5.so Thanks in advance, Isao PS - % echo $PATH | tr : "\n" /opt/local/bin /opt/local/sbin /usr/local/bin /usr/local/sbin /bin /sbin /usr/bin /usr/sbin % port installed The following ports are currently installed: apache @1.3.37_0 (active) apr @1.2.9_0 (active) apr-util @1.2.8_2 (active) cclient @2006h_0 (active) curl @7.16.4_0+darwin_8 (active) db44 @4.4.20_1+darwin_8 (active) expat @2.0.1_0 (active) freetype @2.3.5_0 (active) gettext @0.16.1_0 (active) jpeg @6b_2 (active) libiconv @1.11_4+darwin_8 (active) libmcrypt @2.5.8_0+darwin_8 (active) libpng @1.2.18_0+darwin_8 (active) libtool @1.5.24_0 (active) libxml2 @2.6.28_1 (active) libxslt @1.1.20_0 (active) lynx @2.8.6rel.5_0+ssl (active) mhash @0.9.9_0+darwin_8 (active) mysql5 @5.0.45_0+darwin_8+server (active) ncurses @5.6_0+darwin_8 (active) ncursesw @5.6_0+darwin_8 (active) neon @0.26.3_1 (active) openssl @0.9.8e_0+darwin_8 (active) pcre @7.2_0+utf8 (active) php5 @5.2.3_0+apache+darwin_8+imap+macosx+mysql5+pear+sqlite+tidy (active) pkgconfig @0.22_0 (active) readline @5.2.001_0 (active) sqlite3 @3.4.1_0+darwin_8 sqlite3 @3.4.2_0+darwin_8 (active) subversion @1.4.5_0 (active) tidy @20051026_0+darwin_8 (active) tiff @3.8.2_0+darwin_8 (active) tree @1.5.0_0 (active) wget @1.10.2_0+darwin_8 (active) zlib @1.2.3_1 (active) _______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users