Re: need help with php.

2010-10-21 Thread four . harrisons
Sorry for top posting - I'm stuck on my phone.

Shouldn't that be:

use perl;

;-)

Peter Harrison
www.4harrisons.blogspot.com


-
From:   Alejandro Imass a...@p2ee.org
Subject:Re: need help with php.
Date:   20th October 2010 21:28

On Wed, Oct 20, 2010 at 1:49 PM, Gary Kline kl...@thought.org wrote:
 On Wed, Oct 20, 2010 at 12:42:36PM +0300, Odhiambo Washington wrote:
 On Wed, Oct 20, 2010 at 5:34 AM, Alejandro Imass a...@p2ee.org wrote:

         Anyway,  thanks, Wash, for your cookbook backup commands.   ((See, 
         ***this***  is why I am not among the early adopters; it's why
         I'm  still at 7.3, etc, etc.   )) 

         Anyway,  I'll try backing up and trying again,

         gary 

Yeah well, it's not so much the OS's fault here. I've said it before:
the PHP people are crazy and irresponsible with their upgrades. I have
never had these problems with Perl in the entire 5.x lifetime!!!

If you want to avoid future problems I'd drop PHP altogether. I ask
for appologies beforehand if this raises a language flame, but PHP
sucks in so many ways that it would just take me too long to write.
Use Perl.

Best,
Alejandro Imass
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: need help with php.

2010-10-21 Thread Alejandro Imass
On Thu, Oct 21, 2010 at 4:53 AM,  four.harris...@googlemail.com wrote:
 Sorry for top posting - I'm stuck on my phone.

 Shouldn't that be:

 use perl;


That is correct sir! ;-)

 ;-)

 Peter Harrison
 www.4harrisons.blogspot.com

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: need help with php.

2010-10-20 Thread Odhiambo Washington
On Wed, Oct 20, 2010 at 5:34 AM, Alejandro Imass a...@p2ee.org wrote:

 On Mon, Oct 18, 2010 at 11:31 PM, Gary Kline kl...@thought.org wrote:
 
  Ok, I've done everything I can think of and still my php5 fails.
  Several pages use a php counter [[that I wrote years ago.  That is
  the main thing that is busted.  Anybody up to helping me with this
  one?
 

 Did you happen to upgrade to 5.3? It breaks a lot of code that used to
 run finr in 5.2. If you did upgrade, try downgrading to 5.2, it will
 we a pain though, use portmaster if possible IMO.


Downgrading from 5.3 to 5.2 wasn't quite a pain, unless I missed something.

1. pkg_delete -f php5-\*
2. rm -rf /usr/local/lib/php/*
3. cp /dev/null /usr/local/etc/php/extensions.ini
4. cd /usr/ports/lang/php52  make config  make install clean
5. cd /usr/ports/lang/php52-extensions
6. pkgdb -F
7. apachectl configtest
8. /usr/local/etc/rc.d/apache22 stop  /usr/local/etc/rc.d/apache22 start
9. less /var/log/httpd-error.log - check for any clues that apache might be
affected.
10. ps ax | grep httpd



-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Damn!!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP version dependency problems, was need help with php.

2010-10-20 Thread Gary Kline
On Wed, Oct 20, 2010 at 12:31:01AM -, John Levine wrote:
  compiled correctly.  Then, still nothing.  Typing php at a
  root prompt outputs these warnings.  What's strange is that I
  _thought_ I had mysql set up correctly.  
 
 PHP has a bunch of version dependencies on other ports that the guy
 who maintains the PHP port refuses to fix or even to document.  I sent
 in two fixes for a pcre dependency, one of which was a one-line change
 to the makefile to use the bundled pcre, the other of which was a
 different one-line change to note the version depenency on the
 separate pcre port.  He rejected them both, insisting that everyone
 always keeps all their ports current.  That's absurd, but there's not
 much to be done.
 
 The failures were odd PHP bugs in packages like mediawiki that used
 to work just fine.
 
 So if you've built PHP on a system that's not freshly installed, I'd
 suggest one of these to bring all the ports on which it depends up to
 date.
 
 # portupgrade -R php\*
 # portmaster php\*
 
 R's,
 John


Still stumped.  I upgraded via portmaster; I installed the
test.php.  The APACHE  flag is on in the lang/php5 Makefile.
Nada.  I just rebuilt the suite with the DEBUG ON; how is this
supposed to help?

gary



-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
The 7.90a release of Jottings: http://jottings.thought.org/index.php
   http://journey.thought.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: need help with php.

2010-10-20 Thread Gary Kline
On Wed, Oct 20, 2010 at 12:42:36PM +0300, Odhiambo Washington wrote:
 On Wed, Oct 20, 2010 at 5:34 AM, Alejandro Imass a...@p2ee.org wrote:
 
  On Mon, Oct 18, 2010 at 11:31 PM, Gary Kline kl...@thought.org wrote:
  
   Ok, I've done everything I can think of and still my php5 fails.
   Several pages use a php counter [[that I wrote years ago.  That is
   the main thing that is busted.  Anybody up to helping me with this
   one?
  
 
  Did you happen to upgrade to 5.3? It breaks a lot of code that used to
  run finr in 5.2. If you did upgrade, try downgrading to 5.2, it will
  we a pain though, use portmaster if possible IMO.
 
 
 Downgrading from 5.3 to 5.2 wasn't quite a pain, unless I missed something.
 
 1. pkg_delete -f php5-\*
 2. rm -rf /usr/local/lib/php/*
 3. cp /dev/null /usr/local/etc/php/extensions.ini
 4. cd /usr/ports/lang/php52  make config  make install clean
 5. cd /usr/ports/lang/php52-extensions
 6. pkgdb -F
 7. apachectl configtest
 8. /usr/local/etc/rc.d/apache22 stop  /usr/local/etc/rc.d/apache22 start
 9. less /var/log/httpd-error.log - check for any clues that apache might be
 affected.
 10. ps ax | grep httpd
 


I just noted a [warn] I hadn't caught before:  anybody know why
the CommonName != the server name?

::


[Wed Oct 20 08:01:56 2010] [notice] caught SIGTERM, shutting down
[Wed Oct 20 08:01:59 2010] [warn] RSA server certificate CommonName
(CN) `Gary Kline' does NOT match server name!?
[Wed Oct 20 08:02:00 2010] [warn] RSA server certificate CommonName
(CN) `Gary Kline' does NOT match server name!?
[Wed Oct 20 08:02:00 2010] [notice] Digest: generating secret for
digest authentication ...
[Wed Oct 20 08:02:00 2010] [notice] Digest: done
[Wed Oct 20 08:02:01 2010] [notice] Apache/2.2.16 (FreeBSD)
mod_ssl/2.2.16 OpenSSL/0.9.8e DAV/2 PHP/5.3.3 with Suhosin-Patch
configured -- resuming normal operations


Anyway, thanks, Wash, for your cookbook backup commands.  ((See,
***this*** is why I am not among the early adopters; it's why 
I'm still at 7.3, etc, etc.  ))

Anyway, I'll try backing up and trying again,

gary

PS: just a minor FWIW: after a final try at this a 00.33:08 hours
locattime, I switched off the display and went-to-bed.  Which
is to say that while I may be or am a fool, I'm not a 
*damned*-fool..

(*mumble*)



 
 
 -- 
 Best regards,
 Odhiambo WASHINGTON,
 Nairobi,KE
 +254733744121/+254722743223
 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
 Damn!!

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
The 7.90a release of Jottings: http://jottings.thought.org/index.php
   http://journey.thought.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: need help with php.

2010-10-20 Thread Ryan Coleman
That's if someone messed up the original CSR, IMO, or didn't get the ServerName 
directive just right.

On Oct 20, 2010, at 12:49 PM, Gary Kline wrote:
   I just noted a [warn] I hadn't caught before:  anybody know why
   the CommonName != the server name?
 
   ::
 
 
 [Wed Oct 20 08:01:56 2010] [notice] caught SIGTERM, shutting down
 [Wed Oct 20 08:01:59 2010] [warn] RSA server certificate CommonName
 (CN) `Gary Kline' does NOT match server name!?
 [Wed Oct 20 08:02:00 2010] [warn] RSA server certificate CommonName
 (CN) `Gary Kline' does NOT match server name!?
 [Wed Oct 20 08:02:00 2010] [notice] Digest: generating secret for
 digest authentication ...
 [Wed Oct 20 08:02:00 2010] [notice] Digest: done
 [Wed Oct 20 08:02:01 2010] [notice] Apache/2.2.16 (FreeBSD)
 mod_ssl/2.2.16 OpenSSL/0.9.8e DAV/2 PHP/5.3.3 with Suhosin-Patch
 configured -- resuming normal operations
 
 
   Anyway, thanks, Wash, for your cookbook backup commands.  ((See,
   ***this*** is why I am not among the early adopters; it's why 
   I'm still at 7.3, etc, etc.  ))
 
   Anyway, I'll try backing up and trying again,
 
   gary
 
   PS: just a minor FWIW: after a final try at this a 00.33:08 hours
   locattime, I switched off the display and went-to-bed.  Which
   is to say that while I may be or am a fool, I'm not a 
   *damned*-fool..
 
   (*mumble*)
 
 
 
 
 
 -- 
 Best regards,
 Odhiambo WASHINGTON,
 Nairobi,KE
 +254733744121/+254722743223
 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
 Damn!!
 
 -- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
The 7.90a release of Jottings: http://jottings.thought.org/index.php
   http://journey.thought.org
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: need help with php.

2010-10-20 Thread Gary Kline
On Wed, Oct 20, 2010 at 01:14:27PM -0500, Ryan Coleman wrote:
 That's if someone messed up the original CSR, IMO, or didn't get the 
 ServerName directive just right.
 


--I don't know what the snag is, but even 5.2 fails.  php execs;
it just doesn't do anything.  I built the test.php with

? phpinfo(); ?

and zip.  Scrreen is blank.  Let me try konqueror; maybe I don't
have something turned on it firfox3.

gary




 On Oct 20, 2010, at 12:49 PM, Gary Kline wrote:
  I just noted a [warn] I hadn't caught before:  anybody know why
  the CommonName != the server name?
  
  ::
  
  
  [Wed Oct 20 08:01:56 2010] [notice] caught SIGTERM, shutting down
  [Wed Oct 20 08:01:59 2010] [warn] RSA server certificate CommonName
  (CN) `Gary Kline' does NOT match server name!?
  [Wed Oct 20 08:02:00 2010] [warn] RSA server certificate CommonName
  (CN) `Gary Kline' does NOT match server name!?
  [Wed Oct 20 08:02:00 2010] [notice] Digest: generating secret for
  digest authentication ...
  [Wed Oct 20 08:02:00 2010] [notice] Digest: done
  [Wed Oct 20 08:02:01 2010] [notice] Apache/2.2.16 (FreeBSD)
  mod_ssl/2.2.16 OpenSSL/0.9.8e DAV/2 PHP/5.3.3 with Suhosin-Patch
  configured -- resuming normal operations
  
  
  Anyway, thanks, Wash, for your cookbook backup commands.  ((See,
  ***this*** is why I am not among the early adopters; it's why 
  I'm still at 7.3, etc, etc.  ))
  
  Anyway, I'll try backing up and trying again,
  
  gary
  
  PS: just a minor FWIW: after a final try at this a 00.33:08 hours
  locattime, I switched off the display and went-to-bed.  Which
  is to say that while I may be or am a fool, I'm not a 
  *damned*-fool..
  
  (*mumble*)
  
  
  
  
  
  -- 
  Best regards,
  Odhiambo WASHINGTON,
  Nairobi,KE
  +254733744121/+254722743223
  _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  Damn!!
  
  -- 
  Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
 The 7.90a release of Jottings: http://jottings.thought.org/index.php
http://journey.thought.org
  
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
 

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
The 7.90a release of Jottings: http://jottings.thought.org/index.php
   http://journey.thought.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: need help with php.

2010-10-20 Thread Brad Mettee

Gary Kline wrote:

On Wed, Oct 20, 2010 at 01:14:27PM -0500, Ryan Coleman wrote:
  

That's if someone messed up the original CSR, IMO, or didn't get the ServerName 
directive just right.





--I don't know what the snag is, but even 5.2 fails.  php execs;
it just doesn't do anything.  I built the test.php with

? phpinfo(); ?

and zip.  Scrreen is blank.  Let me try konqueror; maybe I don't
have something turned on it firfox3.

gary
  

Try using ?php as your beginning tag.

You can also try running php test.php from a shell and see if you get 
anything back.


What does php -v return?


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: need help with php.

2010-10-20 Thread Alejandro Imass
On Wed, Oct 20, 2010 at 1:49 PM, Gary Kline kl...@thought.org wrote:
 On Wed, Oct 20, 2010 at 12:42:36PM +0300, Odhiambo Washington wrote:
 On Wed, Oct 20, 2010 at 5:34 AM, Alejandro Imass a...@p2ee.org wrote:

        Anyway, thanks, Wash, for your cookbook backup commands.  ((See,
        ***this*** is why I am not among the early adopters; it's why
        I'm still at 7.3, etc, etc.  ))

        Anyway, I'll try backing up and trying again,

        gary

Yeah well, it's not so much the OS's fault here. I've said it before:
the PHP people are crazy and irresponsible with their upgrades. I have
never had these problems with Perl in the entire 5.x lifetime!!!

If you want to avoid future problems I'd drop PHP altogether. I ask
for appologies beforehand if this raises a language flame, but PHP
sucks in so many ways that it would just take me too long to write.
Use Perl.

Best,
Alejandro Imass
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: need help with php.

2010-10-20 Thread Kevin Kinsey

Gary Kline wrote:

On Wed, Oct 20, 2010 at 01:14:27PM -0500, Ryan Coleman wrote:

That's if someone messed up the original CSR, IMO, or didn't get the ServerName 
directive just right.


--I don't know what the snag is, but even 5.2 fails.  php execs;
it just doesn't do anything.  I built the test.php with

? phpinfo(); ?

and zip.  Scrreen is blank.  Let me try konqueror; maybe I don't
have something turned on it firfox3.

gary


Short Tags are (wisely /opinion) deprecated now.

?php phpinfo(); ?

should Just Work(tm).  If not, post back ;-)

HTH,

Kevin Kinsey

P.S.  I do think you might be able to turn them back on via
php.ini ... but it's not recommended.   


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: need help with php.

2010-10-20 Thread Gary Kline
On Wed, Oct 20, 2010 at 04:16:54PM -0400, Brad Mettee wrote:
 Gary Kline wrote:
 On Wed, Oct 20, 2010 at 01:14:27PM -0500, Ryan Coleman wrote:
 That's if someone messed up the original CSR, IMO, or didn't get the 
 ServerName directive just right.
 
 
 
  --I don't know what the snag is, but even 5.2 fails.  php execs;
  it just doesn't do anything.  I built the test.php with
 
  ? phpinfo(); ?
 
  and zip.  Scrreen is blank.  Let me try konqueror; maybe I don't
  have something turned on it firfox3.
 
  gary
 Try using ?php as your beginning tag.


Yeah, been doing that.  As a CLI guy, that's preferred:)
I'll cutpaste.  You tell me.  [[this is with 5.2... ]]


r...@ethic:/usr/local/www/apache22/data# ?
Invalid null command.
r...@ethic:/usr/local/www/apache22/data# ? echo hi ?
Missing name for redirect.
r...@ethic:/usr/local/www/apache22/data# php ./test.php
? phpinfo(); ?
r...@ethic:/usr/local/www/apache22/data# 


Hm.  php aimed at ./test.php just catenates the file.  Does
that tell you anything?



 
 You can also try running php test.php from a shell and see if you
 get anything back.
 
 What does php -v return?
 

Good one: never thought-of.




r...@ethic:/usr/local/www/apache22/data# php -v
PHP 5.2.14 with Suhosin-Patch 0.9.7 (cli) (built: Oct 20 2010
11:06:21) (DEBUG)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
r...@ethic:/usr/local/www/apache22/data# 


I built this before going to grab some coffee; then added the 
debug, etc.  This still tells me nothing.  You?  Anybody??


gary


 

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
The 7.90a release of Jottings: http://jottings.thought.org/index.php
   http://journey.thought.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: need help with php.

2010-10-20 Thread Brad Mettee

Gary Kline wrote:

On Wed, Oct 20, 2010 at 04:16:54PM -0400, Brad Mettee wrote:
  

Gary Kline wrote:


On Wed, Oct 20, 2010 at 01:14:27PM -0500, Ryan Coleman wrote:
  

That's if someone messed up the original CSR, IMO, or didn't get the ServerName 
directive just right.



--I don't know what the snag is, but even 5.2 fails.  php execs;
it just doesn't do anything.  I built the test.php with

? phpinfo(); ?

and zip.  Scrreen is blank.  Let me try konqueror; maybe I don't
have something turned on it firfox3.

gary
  

Try using ?php as your beginning tag.




Yeah, been doing that.  As a CLI guy, that's preferred:)
I'll cutpaste.  You tell me.  [[this is with 5.2... ]]


r...@ethic:/usr/local/www/apache22/data# ?
Invalid null command.
r...@ethic:/usr/local/www/apache22/data# ? echo hi ?
Missing name for redirect.
r...@ethic:/usr/local/www/apache22/data# php ./test.php
? phpinfo(); ?
r...@ethic:/usr/local/www/apache22/data# 



Hm.  php aimed at ./test.php just catenates the file.  Does
that tell you anything?
  
It tells us that PHP is working fine, and that nothing is wrong with the 
program itself.


I think it's down to a config problem now. Full tag usage ?php is 
required UNLESS you edit the php.ini. Here's the part you're looking for 
along with the comments:

-
; Allow the ? tag.  Otherwise, only ?php and script tags are recognized.
; NOTE: Using short tags should be avoided when developing applications or
; libraries that are meant for redistribution, or deployment on PHP
; servers which are not under your control, because short tags may not
; be supported on the target server. For portable, redistributable code,
; be sure not to use short tags.
short_open_tag = Off
-

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: need help with php.

2010-10-20 Thread Indexer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

 Try using ?php as your beginning tag.
 
 r...@ethic:/usr/local/www/apache22/data# php ./test.php
 ? phpinfo(); ?
 r...@ethic:/usr/local/www/apache22/data# 
 
 
   Hm.  php aimed at ./test.php just catenates the file.  Does
   that tell you anything?
 


Yes, it tells me that you cant read properly.

you need to make test.php 

?php phpinfo(); ? 

THEN you do your php ./test.php command

here ill make it easy for you

echo ?php phpinfo(); ?  test.php ; php test.php

forexample

[williambr...@mai ~]$ echo ?php phpinfo(); ?  test.php ; php test.php
phpinfo()
PHP Version = 5.3.2
.


most likely the default php config has short tags OFF and it has been this way 
for some time now. It is a good thing because it forces you NOT to be lazy, and 
it avoids issues with other languages that do use ? as their only syntax for 
embedding code (I think asp.net does it)

William Brown

pgp.mit.edu



-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)

iQIcBAEBAgAGBQJMv1W9AAoJEHF16AnLoz6Jlh0P/R71ueWi6ah6dD5lzuB8QX+x
97mHleEojPkFElrsYpH+FF6yAngPFa7AkxV3N7sVUS+o7CiQ+ER9m8KuyVPwaTKR
wsaT64pIyW/85221TFVTCryyU4MhQ1kfDc2Q2MF5gEXDfOe14NPnXT+O+gEBUz/g
WWlUr2m54YiQ3G2FaA0e9gyfaHaGLgda4IOC9zsVqGkuJPzDsKi7EiL9aBGDayE5
GHg+TxbUBvmkp6HrT0Amz0xjX7M8PBXi4kB9Jj1PmNQaHnjmStYMK8FPTeZ+R+RP
7Lp9iutqpI5gVfda8msCqFIvzEt7vJOlep0/ucFENoA6Se+mJNkAh8J+OCFXW7bJ
gpmEmVt5MhoEFevvS54GYaBPEUmK//1Oud36sqSLTAYKeLbLCzwJaMaoJQ/afGvM
gAFInwHWlqjbKfYMEJC0mf9+B2Au7zPiuh12dNiyJfxcqG+w5AfYsf3tqBiUBo+t
p8SmH1SFJnCPykF+QFVi9XnLlN6c+iiF3sP9jbBACGU+yny4VyPGtvpU56m7KJTo
WkKHrBMQH8FeuV2BONFxoz+AGzV0I2qOJ7CigJ9Q/1GI175J6KLx1tou9BF2vrsD
exdyUMJJrxUwZKnUSkpW/pAEQ6Pj5q6RkNKgiB2YzgZ6bpDU8fWrNn8ikh0QitD+
+DtSANLQxce32KZUf+9z
=0oHb
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: need help with php.

2010-10-20 Thread Gary Kline
On Wed, Oct 20, 2010 at 04:45:17PM -0400, Brad Mettee wrote:
 Gary Kline wrote:
 On Wed, Oct 20, 2010 at 04:16:54PM -0400, Brad Mettee wrote:
 Gary Kline wrote:
 On Wed, Oct 20, 2010 at 01:14:27PM -0500, Ryan Coleman wrote:
 That's if someone messed up the original CSR, IMO, or didn't get the 
 ServerName directive just right.
 
--I don't know what the snag is, but even 5.2 fails.  php execs;
it just doesn't do anything.  I built the test.php with
 
? phpinfo(); ?
 
and zip.  Scrreen is blank.  Let me try konqueror; maybe I don't
have something turned on it firfox3.
 
gary
 Try using ?php as your beginning tag.
 
 
  Yeah, been doing that.  As a CLI guy, that's preferred:)
  I'll cutpaste.  You tell me.  [[this is with 5.2... ]]
 
 
 r...@ethic:/usr/local/www/apache22/data# ?
 Invalid null command.
 r...@ethic:/usr/local/www/apache22/data# ? echo hi ?
 Missing name for redirect.
 r...@ethic:/usr/local/www/apache22/data# php ./test.php
 ? phpinfo(); ?
 r...@ethic:/usr/local/www/apache22/data#
 
 
  Hm.  php aimed at ./test.php just catenates the file.  Does
  that tell you anything?
 It tells us that PHP is working fine, and that nothing is wrong with
 the program itself.
 
 I think it's down to a config problem now. Full tag usage ?php is
 required UNLESS you edit the php.ini. Here's the part you're looking
 for along with the comments:
 -
 ; Allow the ? tag.  Otherwise, only ?php and script tags are recognized.
 ; NOTE: Using short tags should be avoided when developing applications or
 ; libraries that are meant for redistribution, or deployment on PHP
 ; servers which are not under your control, because short tags may not
 ; be supported on the target server. For portable, redistributable code,
 ; be sure not to use short tags.
 short_open_tag = Off
 -
 
What i found about ten minutes ago is just hard to believe.  But
php.ini and the cp I made of it [just because], PHP.ini was/is 
garbaged.  [???-bar]

I di a make extract in the php52 dir and looked into the
work/*/* directory to see what the src build stuff looked like.  
A `locate php.ini' tells me that, at least for FreeBSD, the init
file doesn't go into /usr/local/lib.

I'll copy the distribution init over the garbaged 
/usr/local/etc/php.int and start from there.  

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
The 7.90a release of Jottings: http://jottings.thought.org/index.php
   http://journey.thought.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: need help with php.

2010-10-20 Thread Gary Kline
On Wed, Oct 20, 2010 at 03:53:47PM -0700, Gary Kline wrote:

[ save the electrons]

WEll guys, methinks things are back after some months of
not-working.  Since Sunday night I've managed to pull thr few
remaining hair out of my head.  That's insignificant.  Thanks for
your help.  

time for a cookie!

gary



-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
The 7.90a release of Jottings: http://jottings.thought.org/index.php
   http://journey.thought.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: need help with php.

2010-10-19 Thread Gary Kline
On Mon, Oct 18, 2010 at 11:58:29PM -0400, Brad Mettee wrote:
 I do a lot with PHP.
 
 We can discuss on the list or in private.

How about we start onlist and if there are any complaints, we
can take it off-list?  I did keep it up and by now I feel like
I've been beat up by somebody with a club... .

 
 Does PHP fail to run, or are you seeing errors thrown by it?

Completely fail;  I find had minor errors before lang/php5
compiled correctly.  Then, still nothing.  Typing php at a
root prompt outputs these warnings.  What's strange is that I
_thought_ I had mysql set up correctly.  


r...@ethic:/usr/local/www/apache22/data# php
PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
PHP Warning:  Module 'session' already loaded in Unknown on line 0

Does this mean anything obvious to you?  I have my mysql notes
on two other computers and will dig into the matter in the
morning.  IIRC, the mysql stuff shouldn't have any effect on a
counter.

 
 What's the URL of the failing script?

www.thought.org/ or www.thought.org/index.php and the counter,
www.thought.org.counter.php.  I hacked the counter several years
ago.  I'll send you the script offlist, if you want.

Final thought is that this can't be _that_ big a deal... I hope.


 
 Gary Kline wrote:
 Ok, I've done everything I can think of and still my php5 fails.
 Several pages use a php counter [[that I wrote years ago.  That is
 the main thing that is busted.  Anybody up to helping me with this
 one?
 
 gary
 
 
 
 
 -- 
 Brad Mettee
 PC HotShots, Inc.
 Baltimore, MD
 (410) 426-7617
 - Let us bring out the **Power** of your PCs. -
 - Custom Business Software Solutions since 1991 -
 Visit us http://www.pchotshots.com for information about our company.

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
The 7.90a release of Jottings: http://jottings.thought.org/index.php
   http://journey.thought.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: need help with php.

2010-10-19 Thread Lars Eighner

On Mon, 18 Oct 2010, Gary Kline wrote:


r...@ethic:/usr/local/www/apache22/data# php
PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
PHP Warning:  Module 'session' already loaded in Unknown on line 0

Does this mean anything obvious to you?  I have my mysql notes
on two other computers and will dig into the matter in the
morning.  IIRC, the mysql stuff shouldn't have any effect on a
counter.


It means a module is listed twice in extensions.ini (usually in
/usr/local/etc/ )  Make the message go away by removing redundant entries
manually or with sort -u.  This warning should be harmless in execution and
usually is only a bother when running command-line one-liners.

Unfortunately, many of the php module ports add themselves to
extensions.ini without checking whether they are already there.  After a few
upgrades you may have many entries for some modules.

Whatever is really wrong with your php, this isn't it.  As I said, harmless,
and generally not noticed except at the command line.


--
Lars Eighner
http://www.larseighner.com/index.html
8800 N IH35 APT 1191 AUSTIN TX 78753-5266

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP version dependency problems, was need help with php.

2010-10-19 Thread John Levine
   compiled correctly.  Then, still nothing.  Typing php at a
   root prompt outputs these warnings.  What's strange is that I
   _thought_ I had mysql set up correctly.  

PHP has a bunch of version dependencies on other ports that the guy
who maintains the PHP port refuses to fix or even to document.  I sent
in two fixes for a pcre dependency, one of which was a one-line change
to the makefile to use the bundled pcre, the other of which was a
different one-line change to note the version depenency on the
separate pcre port.  He rejected them both, insisting that everyone
always keeps all their ports current.  That's absurd, but there's not
much to be done.

The failures were odd PHP bugs in packages like mediawiki that used
to work just fine.

So if you've built PHP on a system that's not freshly installed, I'd
suggest one of these to bring all the ports on which it depends up to
date.

# portupgrade -R php\*
# portmaster php\*

R's,
John
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: need help with php.

2010-10-19 Thread Alejandro Imass
On Mon, Oct 18, 2010 at 11:31 PM, Gary Kline kl...@thought.org wrote:

 Ok, I've done everything I can think of and still my php5 fails.
 Several pages use a php counter [[that I wrote years ago.  That is
 the main thing that is busted.  Anybody up to helping me with this
 one?


Did you happen to upgrade to 5.3? It breaks a lot of code that used to
run finr in 5.2. If you did upgrade, try downgrading to 5.2, it will
we a pain though, use portmaster if possible IMO.

Alejandro Imass

 gary



 --
  Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
    The 7.90a release of Jottings: http://jottings.thought.org/index.php
                           http://journey.thought.org

 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


need help with php.

2010-10-18 Thread Gary Kline

Ok, I've done everything I can think of and still my php5 fails.
Several pages use a php counter [[that I wrote years ago.  That is
the main thing that is busted.  Anybody up to helping me with this
one?

gary



-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
The 7.90a release of Jottings: http://jottings.thought.org/index.php
   http://journey.thought.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: need help with php.

2010-10-18 Thread Brad Mettee

I do a lot with PHP.

We can discuss on the list or in private.

Does PHP fail to run, or are you seeing errors thrown by it?

What's the URL of the failing script?

Gary Kline wrote:

Ok, I've done everything I can think of and still my php5 fails.
Several pages use a php counter [[that I wrote years ago.  That is
the main thing that is busted.  Anybody up to helping me with this
one?

gary



  


--
Brad Mettee
PC HotShots, Inc.
Baltimore, MD
(410) 426-7617
- Let us bring out the **Power** of your PCs. -
- Custom Business Software Solutions since 1991 -
Visit us http://www.pchotshots.com for information about our company.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org