Re: php.ini removed

2009-06-29 Thread Brandon Allbery

On Jun 28, 2009, at 16:38 , Ryan Schmidt wrote:
I could move the file and then put a symlink to it at the old  
location...



Copy, then rename the old to php.ini.old or similar.

--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allb...@kf8nh.com
system administrator [openafs,heimdal,too many hats] allb...@ece.cmu.edu
electrical and computer engineering, carnegie mellon universityKF8NH





PGP.sig
Description: This is a digitally signed message part
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: php.ini removed

2009-06-28 Thread Bradley Giesbrecht


On Jun 27, 2009, at 3:51 PM, Ryan Schmidt wrote:


On Jun 27, 2009, at 12:16, Chris Janton wrote:


hmmm - my brain has been hurting for quite some time.

On my G4 Panther system I upgraded php5 to 5.2.10

I ran a test that demonstrated that I could see a problem with date/ 
time, so go back to the older version


sudo port deactivate php5 @5.2.10_0+apache+darwin_7+macosx 
+mysql5+pear

sudo port activate php5 @5.2.6_2+apache+darwin_7+macosx+mysql5+pear

Things seemed OK from the command line.

I was notified on Friday evening that all of my Wordpress blogs  
were failing.
Chased my tail - mysql5 is fine, php seems to work fine, just no  
PHP - MySQL connections working


short answer

in /opt/local/etc/php.ini I had specified a different socket for  
the MySQL connection

/opt/local/etc/php.ini was gone

The only things I can pin it on are one of the port upgrade/port  
deactivate/port activate commands.


It's fixed now, just wondering who the culprit is.

My brain *really* hurts...


Sorry about the problem, but I'm not sure how it happened. As far as  
I can tell, php5 does not touch your php.ini, and never has. It only  
installs sample files named php.ini-dist and php.ini-recommended and  
prints a message advising you to copy one of these to the proper  
location.


I think the location of php.ini may have been moved to etc/php5 with  
php5 @5.2.10. I was paying that much attention when I upgraded.


Ryan, I see you are one of the maintainers of php5.

Would you consider adding:
variant ming description {Add library to create SWF (Flash) format  
movies} {

depends_lib-append \
port:ming
configure.args-append \
--with-ming \
}


// Brad
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: php.ini removed

2009-06-28 Thread Chris Janton

On 2009-06-28 , at 08:39 , Bradley Giesbrecht wrote:

Sorry about the problem, but I'm not sure how it happened. As far  
as I can tell, php5 does not touch your php.ini, and never has. It  
only installs sample files named php.ini-dist and php.ini- 
recommended and prints a message advising you to copy one of these  
to the proper location.


I think the location of php.ini may have been moved to etc/php5 with  
php5 @5.2.10. I was paying that much attention when I upgraded.



ahhh, the mystery is solved.

the upgrade to php5 @5.2.10 moved the php.ini file to /opt/local/etc/ 
php5/php.ini

the deactivate didn't touch anything
the activate php5 @5.2.6 didn't do anything to php.ini either, since  
there now is no php.ini in /opt/local/etc


hmmm, maybe the right thing for php5 @5.2.10 to do is copy the  
php.ini file as opposed to moving it?


my brain hurts less now.

8)
--
Chris Janton  - face at CentosPrime dot COM
Netminder for Opus1.COM


___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: php.ini removed

2009-06-28 Thread Scott Haneda
Why did moving it break things is I think what first needs to be  
learned.


Why was ini put in a php5 directory? As far as I know php wants to  
look in some standard locations. /etc is one if them so that would  
translate to /opt/local/etc/php.ini.


Of cource there are a few other locations but I believe etc is pretty  
normal. I think it should have just kep working. Any idea why it did  
not work for you? What did you have to change to get it to work?


You can also run 'port contents portname' to see where all the files  
registered to that port are.


--
Scott
Iphone says hello.

On Jun 28, 2009, at 9:08 AM, Chris Janton f...@centosprime.com wrote:


On 2009-06-28 , at 08:39 , Bradley Giesbrecht wrote:

Sorry about the problem, but I'm not sure how it happened. As far  
as I can tell, php5 does not touch your php.ini, and never has. It  
only installs sample files named php.ini-dist and php.ini- 
recommended and prints a message advising you to copy one of these  
to the proper location.


I think the location of php.ini may have been moved to etc/php5  
with php5 @5.2.10. I was paying that much attention when I upgraded.



ahhh, the mystery is solved.

the upgrade to php5 @5.2.10 moved the php.ini file to /opt/local/etc/ 
php5/php.ini

the deactivate didn't touch anything
the activate php5 @5.2.6 didn't do anything to php.ini either, since  
there now is no php.ini in /opt/local/etc


hmmm, maybe the right thing for php5 @5.2.10 to do is copy the  
php.ini file as opposed to moving it?


my brain hurts less now.

8)
--
Chris Janton  - face at CentosPrime dot COM
Netminder for Opus1.COM


___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: php.ini removed

2009-06-28 Thread Bradley Giesbrecht


On Jun 28, 2009, at 10:05 AM, Scott Haneda wrote:

Why did moving it break things is I think what first needs to be  
learned.


Why was ini put in a php5 directory? As far as I know php wants to  
look in some standard locations. /etc is one if them so that would  
translate to /opt/local/etc/php.ini.


I don't think it's a bad idea to subdir php.ini into version. When  
people upgrade to php6 down the road they may need to revert back.  
Leaving php5/php.ini untouched gives the possibility to quickly revert  
back to php5 if php6 breaks your scripts.


// Brad

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: php.ini removed

2009-06-28 Thread Chris Janton

On 2009-06-28 , at 10:05 , Scott Haneda wrote:

Why did moving it break things is I think what first needs to be  
learned.


Because it didn't move back when I switched back to an older version  
of php5



Why was ini put in a php5 directory? As far as I know php wants to  
look in some standard locations. /etc is one if them so that would  
translate to /opt/local/etc/php.ini.


That would be as standard location - especially if there is an  
expectation that a php6 (or php7) might also be made available on the  
system.


Of cource there are a few other locations but I believe etc is  
pretty normal. I think it should have just kep working. Any idea why  
it did not work for you? What did you have to change to get it to  
work?


I don't use the standard socket location for MySQL5 as provided in  
MacPorts - I set the socket values for PHP to use in the .ini file  
like this...


; Default socket name for local MySQL connects.  If empty, uses the  
built-in

mysql.default_socket = /tmp/mysql.sock
; Default socket name for local MySQL connects.  If empty, uses the  
built-in

mysqli.default_socket = /tmp/mysql.sock

You can also run 'port contents portname' to see where all the files  
registered to that port are.



The answer to the change is here

 http://trac.macports.org/changeset/50173/trunk/dports/lang/php5/Portfile

When I did the port upgrade php5 I didn't see the message that was  
output


 ui_msg Your ${prefix}/etc/php.ini has been moved to ${phpinidir}/ 
php.ini


I guess for me that something like this

 COPY ${prefix}/etc/php.ini ${phpinidir}

as opposed to

 move ${prefix}/etc/php.ini ${phpinidir}

would have made it transparent (assuming that there is a copy function  
like move in the port language)


It's my bad, since I didn't read the message when I did the upgrade.

8)
--
Chris Janton  - face at CentosPrime dot COM
Netminder for Opus1.COM


___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: php.ini removed

2009-06-28 Thread Ryan Schmidt

On Jun 28, 2009, at 10:39, Bradley Giesbrecht wrote:


Ryan, I see you are one of the maintainers of php5.

Would you consider adding:
variant ming description {Add library to create SWF (Flash)  
format movies} {

depends_lib-append \
port:ming
configure.args-append \
--with-ming \
}


I have filed a ticket for your request:

http://trac.macports.org/ticket/20093


___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: php.ini removed

2009-06-28 Thread Ryan Schmidt


On Jun 28, 2009, at 11:08, Chris Janton wrote:


On 2009-06-28 , at 08:39 , Bradley Giesbrecht wrote:

Sorry about the problem, but I'm not sure how it happened. As far  
as I can tell, php5 does not touch your php.ini, and never has.  
It only installs sample files named php.ini-dist and php.ini- 
recommended and prints a message advising you to copy one of  
these to the proper location.


I think the location of php.ini may have been moved to etc/php5  
with php5 @5.2.10. I was paying that much attention when I upgraded.


ahhh, the mystery is solved.

the upgrade to php5 @5.2.10 moved the php.ini file to /opt/local/ 
etc/php5/php.ini

the deactivate didn't touch anything
the activate php5 @5.2.6 didn't do anything to php.ini either,  
since there now is no php.ini in /opt/local/etc


Oooh, yes, that was it. Sorry, I forgot about that change; it  
happened 2 months ago with 5.2.9_2.



hmmm, maybe the right thing for php5 @5.2.10 to do is copy the  
php.ini file as opposed to moving it?


I don't know... if you didn't see the message about the php.ini  
having been moved (or now copied), wouldn't it be more confusing to  
still have the php.ini at the old location? You'd be making changes  
to the file and scratching your head why those changes weren't having  
any effect.


I could move the file and then put a symlink to it at the old  
location...



___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: php.ini removed

2009-06-28 Thread Ryan Schmidt


On Jun 28, 2009, at 12:27, Bradley Giesbrecht wrote:


On Jun 28, 2009, at 10:05 AM, Scott Haneda wrote:

Why did moving it break things is I think what first needs to be  
learned.


Why was ini put in a php5 directory? As far as I know php wants to  
look in some standard locations. /etc is one if them so that would  
translate to /opt/local/etc/php.ini.


I don't think it's a bad idea to subdir php.ini into version. When  
people upgrade to php6 down the road they may need to revert back.  
Leaving php5/php.ini untouched gives the possibility to quickly  
revert back to php5 if php6 breaks your scripts.


Yes, but it's not just a matter of switching back; it's a matter of  
being able to install simultaneously. Due to this change, it is now  
possible to install and activate php4 and php5 at the same time,  
which I intend to carry forward to php6 when that becomes available.


___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: php.ini removed

2009-06-28 Thread Chris Janton

On 2009-06-28 , at 13:38 , Ryan Schmidt wrote:

hmmm, maybe the right thing for php5 @5.2.10 to do is copy the  
php.ini file as opposed to moving it?


I don't know... if you didn't see the message about the php.ini  
having been moved (or now copied), wouldn't it be more confusing to  
still have the php.ini at the old location? You'd be making changes  
to the file and scratching your head why those changes weren't  
having any effect.


I could move the file and then put a symlink to it at the old  
location...



A symlink should solve the problem nicely. That and a new pair of  
reading glasses for me ;-)


8)
--
Chris Janton  - face at CentosPrime dot COM
Netminder for Opus1.COM


___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


php.ini removed

2009-06-27 Thread Chris Janton

hmmm - my brain has been hurting for quite some time.

On my G4 Panther system I upgraded php5 to 5.2.10

I ran a test that demonstrated that I could see a problem with date/ 
time, so go back to the older version


sudo port deactivate php5 @5.2.10_0+apache+darwin_7+macosx+mysql5+pear
sudo port activate php5 @5.2.6_2+apache+darwin_7+macosx+mysql5+pear

Things seemed OK from the command line.

I was notified on Friday evening that all of my Wordpress blogs were  
failing.
Chased my tail - mysql5 is fine, php seems to work fine, just no PHP -  
MySQL connections working


short answer

in /opt/local/etc/php.ini I had specified a different socket for the  
MySQL connection

/opt/local/etc/php.ini was gone

The only things I can pin it on are one of the port upgrade/port  
deactivate/port activate commands.


It's fixed now, just wondering who the culprit is.

My brain *really* hurts...

8)
--
Chris Janton  - face at CentosPrime dot COM
Netminder for Opus1.COM


___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: php.ini removed

2009-06-27 Thread Ryan Schmidt

On Jun 27, 2009, at 12:16, Chris Janton wrote:


hmmm - my brain has been hurting for quite some time.

On my G4 Panther system I upgraded php5 to 5.2.10

I ran a test that demonstrated that I could see a problem with date/ 
time, so go back to the older version


sudo port deactivate php5 @5.2.10_0+apache+darwin_7+macosx+mysql5+pear
sudo port activate php5 @5.2.6_2+apache+darwin_7+macosx+mysql5+pear

Things seemed OK from the command line.

I was notified on Friday evening that all of my Wordpress blogs  
were failing.
Chased my tail - mysql5 is fine, php seems to work fine, just no  
PHP - MySQL connections working


short answer

in /opt/local/etc/php.ini I had specified a different socket for  
the MySQL connection

/opt/local/etc/php.ini was gone

The only things I can pin it on are one of the port upgrade/port  
deactivate/port activate commands.


It's fixed now, just wondering who the culprit is.

My brain *really* hurts...


Sorry about the problem, but I'm not sure how it happened. As far as  
I can tell, php5 does not touch your php.ini, and never has. It only  
installs sample files named php.ini-dist and php.ini-recommended and  
prints a message advising you to copy one of these to the proper  
location.


___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: php.ini removed

2009-06-27 Thread Chris Janton

On 2009-06-27 , at 15:51 , Ryan Schmidt wrote:

Sorry about the problem, but I'm not sure how it happened. As far as  
I can tell, php5 does not touch your php.ini, and never has. It only  
installs sample files named php.ini-dist and php.ini-recommended and  
prints a message advising you to copy one of these to the proper  
location.



thanks.

I *know* nothing is supposed to touch the php.ini file

I had a copy lurking somewhere - it just took me an hour to test  
everything, and to figure out that just because phpMyAdmin works from  
one server doesn't necessarily mean it works from all servers -  
localhost goes to the socket, everyone else uses port 3306.


Mostly this is a heads-up

Hey there Bunky! PHP/MySQL connections not workin' on yer website?  
Check php.ini ;-) sockets vs. ports.


8)
--
Chris Janton  - face at CentosPrime dot COM
Netminder for Opus1.COM


___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users