|
#1
| ||||
| ||||
| PHP didn't update Hi, I went to the PHP site, and they say you should update PHP to be the latest: 4.3.8. So, I downloaded it, untarred it, did ./configure, make, make install, it seemed to work, but the version that phpinfo tells me, and php -i is still 4.3.2. Any ideas? Regards, Mark |
|
#2
| ||||
| ||||
| Quote:
sudo /System/Library/Startup\ Items/Apache/Apache restart Next: most likely the default installation settings for PHP don't jibe with the places that OS X's pre-installed PHP lives, and so Apache can't see the new PHP module. For more on this topic, read Marc Liyanage's pages: http://www.entropy.ch/software/macosx/php/ You can also bypass this entire problem by using his installers, which tend to work flawlessly.
__________________ Matt (billbaloney) 1.67GHz "October 2005" G4 Aluminum 1.5 GB RAM, OS 10.5.2 Lots of other things around Helen Marie Holford Industries |
|
#3
| ||||
| ||||
| Quote:
Quote:
Thanks, Mark |
|
#4
| ||||
| ||||
| Try `which php` that will tell you where the binary is. Mine is in /usr/bin/php You can try to force that location with flags for `configure`. PS keep in ind that /usr/bin is owned by...root. So if you want it to install there you'll need to `sudo make install`.
__________________ michaelsanford.com Blog Twitter Tumblr LinkedIn iMac Aluminum 24" | MacOS X 10.5-current | 3.06 GHz Intel Core Duo | 4 GB RAM | 1 TB HDD iBook G4 1.42 GHz | MacOS X 10.5-current | 1 GB RAM, 100 GB HDD AMD Athlon64 3500+ | Slackware 12 (2.6.21.5-smp) | 2 GB RAM, 2120 GB RAID 1, 2500 GB RAID 0 |
|
#5
| ||||
| ||||
| Thanks for trying to help Quote:
Quote:
Quote:
But php -v still gives me Code: Pattersons-eMac:~/Downloads/php-4.3.8 root# php -v PHP 4.3.2 (cli) (built: Feb 16 2004 19:54:11) |
|
#6
| ||||
| ||||
| I installed PHP 5.0.0 on my machine without problems. I looked at /usr/local/bin/ and found php there. I did a './php -v' and it showed the right php version. try that, just replace 5.0.0 with 4.3.8
__________________ mkwan UNIX was created in the late 1960s, in an effort to provide a multiuser, multitasking system for use by programmers. The philosophy behind the design of UNIX was to provide simple, yet powerful utilities that could be pieced together in a flexible manner to perform a wide variety of tasks. |
|
#7
| ||||
| ||||
| Well, I just gave myself a surpise. php-v says 4.3.2, but my phpinfo page says 4.3.8. So, I'm happier that I was a few minutes ago. Your mention of the location is what the problem was: Pattersons-eMac:/usr/local/bin root# ./php -v PHP 4.3.8 (cli) (built: Aug 2 2004 20:28:15) Copyright (c) 1997-2004 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies Pattersons-eMac:/usr/local/bin root# which php /usr/bin/php Was I supposed to uninstall the old one first? What is the correct BSD way to do that? I might try version 5 soon as well. What do you think of it? === Mark Last edited by markpatterson; August 11th, 2004 at 11:14 PM. |
|
#8
| ||||
| ||||
| That's why I wanted to check your path, because /usr/bin is not a symlink to /usr/local/bin, as say /etc is a link to /private/etc. You have two copies of PHP installed.
__________________ michaelsanford.com Blog Twitter Tumblr LinkedIn iMac Aluminum 24" | MacOS X 10.5-current | 3.06 GHz Intel Core Duo | 4 GB RAM | 1 TB HDD iBook G4 1.42 GHz | MacOS X 10.5-current | 1 GB RAM, 100 GB HDD AMD Athlon64 3500+ | Slackware 12 (2.6.21.5-smp) | 2 GB RAM, 2120 GB RAID 1, 2500 GB RAID 0 |
![]() |
| Thread Tools | |
|
|