strange behavior - PHP question...

William H. Magill magill at me.com
Sun Jan 22 22:35:32 PST 2012


A retired sysadmin who has been working with Macports since Darwin days --
I am playing with a software package written in php and attempting to learn php in the process.

I have installed (and just recently updated Apache2/Mysql5/php via macports following the instructions
at http://trac.macports.org/wiki/howto/MAMP

All on a Mac mini running 10.6.8 - I'm working remotely on the mini from an iMac running 7.2.
Both systems are "clean" Apple or Macports, without random software installs.

The only "non-standard-macports-way" I did things was to stick the Apache log files under
/var/log so I can read them with "console."  

Everything apparently works well and fine. 
All of the "tests" in that document (MMAP) pass with flying colors, including  the "phpinfo.php" test.
And phpmyadmin works as expected.
The package I am playing with also works fine.

However, when I visit php.net and follow their tutorial, the very first example fails.

<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello World</p>'; ?>
</body>
</html>

What happens is "a blank page" -- no source code,  no "hello world," no errors I can find -- nada.
php.net implies that something is not configured correctly.

But as I mentioned, phpinfo.php, runs fine and outputs (apparently) valid information.

Any hints on what/where I should look for ?

T.T.F.N.
William H. Magill
# iMac11,3 Core i7 [2.936GHz - 4 GB 1333] OS X 10.7.2
# iMac6,1 Core 2 Duo [2.16GHz - 3 GB 667] OS X 10.6.8
# MacBook Pro4.1 Core 2 Duo [2.5GHz - 4GB 667] OS X 10.6.8
# Mac mini Core Duo [1.66 Ghz - 2 GB 667] OS X 10.6.8
# Flat-panel iMac (2.1) [800MHz - Super Drive - 768 Meg] OS X 10.4.11 
# PWS433a [Alpha 21164 Rev 7.2 (EV56)- 64 Meg] Tru64 5.1a 
# XP1000 [Alpha 21264-3 (EV6) - 256 meg] FreeBSD 5.3
# XP1000 [Alpha 21264-A (EV6-7) - 256 meg] FreeBSD 5.3
magill at mcgillsociety.org
magill at me.com
whmagill at gmail.com





More information about the macports-users mailing list