<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV><BLOCKQUOTE type="cite"></BLOCKQUOTE></DIV>Thank you very much to all who responded, and especially Ryan for his patience. Once I got my httpd.conf in proper shape, php worked fine, but mysql didn't. The problem was:<DIV><BR class="khtml-block-placeholder"></DIV><DIV>error: 'Can't connect to local MySQL server through socket '/opt/local/var/run/mysql5/mysqld.sock'</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>This was a problem others had wrestled with as well, I soon found out. It turned out I'd made two mistakes when installing mysql: I hadn't used the +server variant and I hadn't initialized the database. So I uninstalled php5 and mysql5, reinstalled mysql5 +server and followed the instructions in an old post by Ryan Schmidt on how install the main db:</DIV><DIV><A href="http://article.gmane.org/gmane.os.apple.macports.user/619/match=mysql">http://article.gmane.org/gmane.os.apple.macports.user/619/match=mysql</A></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I then reinstalled php5 +apache2 +mysql5 and now they're all nice to each other once again. </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"><DIV><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>Elise van Looij</DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR class="Apple-interchange-newline"></SPAN></SPAN> </DIV><BR></DIV></BODY></HTML>