Re: strange behavior - PHP question...
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 23/01/2012 06:35, William H. Magill wrote: 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 titlePHP Test/title /head body ?php echo 'pHello World/p'; ? /body /html [..] Have you uncommented the `LoadModule php5_module modules/libphp5.so` at line 117 in httpd.conf? Cheers, Phil... - -- Some [people] feel that the best way to improve Perl would be to go back in time and shoot the author before he wrote it. -Larry Wall -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: §auto-key-locate cert pka ldap hkp://keys.gnupg.net Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJPHSsjAAoJEKpMeDHWT5ADPGYH/0si6HBTQ2R7B5Nb0FniUaAs +U5j6rCUz+O6LKn6aPNvn5UumWDuEUTsGfZBTlpfVVJOUEpHAnS25It5RktIEVgb nILpSaQwjvEAVeZILppMhvubxn7YSCfE5JnzeOAqZjlG+WTSHAxaf1OeDEa1S9L4 uismMb09spqWujLbsNRT74yvtjiRYBSLJZmOwA065PIOykkIQPFxHSZDAxMUl1uX vcxfRozAPaZ2EIoXaIgzuHn+nVp1RJ/cwpDCQ8qFCdopYhoTxJGh0Ws4/lTRK8D7 9XdB3ivON0nyVdteVg3VOuZ1DDzwtf4qhwApmWLQRTJBuVklcst9CQnDm3ybeOs= =hman -END PGP SIGNATURE- ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: strange behavior - PHP question...
On Jan 23, 2012, at 03:40, Phil Dobbin wrote: On 23/01/2012 06:35, William H. Magill wrote: 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 titlePHP Test/title /head body ?php echo 'pHello World/p'; ? /body /html [..] Have you uncommented the `LoadModule php5_module modules/libphp5.so` at line 117 in httpd.conf? Yes, he has, since phpinfo.php works. William, I don't immediately understand why phpinfo.php would work but your hello.php wouldn't work. Try to reduce the number of differences between the files until you either make hello.php work or phpinfo.php fail. For example, put them in the same directory. Or try to replace the content of one of the files with the content of the other file: what happens? Check the Apache error log. There might also be a separate PHP error log, if you've set it up that way. If you still get a blank page in the browser, see if the View Source command in the browser shows anything. ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: strange behavior - PHP question...
On Jan 23, 2012, at 1:40 AM, Phil Dobbin wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 23/01/2012 06:35, William H. Magill wrote: 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 titlePHP Test/title /head body ?php echo 'pHello World/p'; ? /body /html What is the url of this file? Is the file extension .php? Have you uncommented the `LoadModule php5_module modules/libphp5.so` at line 117 in httpd.conf? If the phpinfo.php test works then this should not be the problem. Regards, Bradley Giesbrecht (pixilla) ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: strange behavior - PHP question...
On Jan 23, 2012, at 2:10 AM, Bjarne D Mathiesen wrote: William H. Magill wrote: However, when I visit php.net and follow their tutorial, the very first example fails. ... 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 ? Permission problems on the files and the filepath is the first problem I'ld look for. make sure that all folders in the whole path have 'chmod a+x' and all files are 'chmod a+r' Duh … My default umask is 077 :) a+r was the problem. (both the working and non-working files were in the same directory so the path was ok.) What threw me completely was that I was looking for 404 errors in the access log, and instead was getting 500s. I guess that's one I'll have to remember. Thanks! T.T.F.N. William H. Magill mag...@mcgillsociety.org mag...@me.com whmag...@gmail.com ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
strange behavior - PHP question...
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 titlePHP Test/title /head body ?php echo 'pHello 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 mag...@mcgillsociety.org mag...@me.com whmag...@gmail.com ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: strange behavior - PHP question...
William H. Magill wrote: However, when I visit php.net and follow their tutorial, the very first example fails. ... 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 ? Permission problems on the files and the filepath is the first problem I'ld look for. make sure that all folders in the whole path have 'chmod a+x' and all files are 'chmod a+r' -- Bjarne D Mathiesen K¿benhavn N ; Danmark ; Europa -- denne besked er skrevet i et totalt M$-frit milj¿ MacOS X 10.7.2 ; 2.8GHz Intel Core i7 ; 16GB 1067MHz DDR3 http://webadmin.mathiesen.info/ ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users