Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Our Archives > General Archives > Servers > Is PHP Included

 
Is PHP Included
Thread Tools
Addicted to MacNN
Join Date: Jan 2000
Location: Stoneham, MA, USA
Status: Offline
Aug 31, 2002, 02:09 PM
 
Is PHP Included in OS X Server 10.1?
How can I check?
If its not, how can I install it?
I found some directions on the internet, but they were about 2 pages long and simply, I don't get it.
     
Mac Elite
Join Date: May 1999
Location: San Jose, CA
Status: Offline
Sep 1, 2002, 04:49 PM
 
I don't recall if Mac OS X Server 10.1 included PHP or not. it is in 10.2, but that probably doesn't help you.

The easiest way to test is to run:

/usr/bin/php-config --version

and see what you get.

However, even if it is installed, you might want to download a new copy anyway. Even Jaguar comes with PHP 4.1.2, which is a little behind the current 4.2.2 release.

The page http://www.php.net/manual/en/install.macosx.php includes step-by-step instructions on installing it on Mac OS X.
     
sra
Forum Regular
Join Date: May 2001
Location: New Haven, CT, USA
Status: Offline
Sep 1, 2002, 08:45 PM
 
Here's what I get on my Xserve running 10.1.5 (since Apple hasn't seen fit to send me 10.2 yet :-)

[bloch:~] sra% /usr/bin/php-config --version
4.1.2
     
l008com  (op)
Addicted to MacNN
Join Date: Jan 2000
Location: Stoneham, MA, USA
Status: Offline
Sep 2, 2002, 03:58 PM
 
Well this is what I get????

[localhost:~] johnm% /usr/bin/php-config --version
Usage: /usr/bin/php-config [--prefix|--includes|--extension-dir]
     
l008com  (op)
Addicted to MacNN
Join Date: Jan 2000
Location: Stoneham, MA, USA
Status: Offline
Sep 2, 2002, 03:59 PM
 
but in ls of /usr/bin/ would tend to suggest that i have both php and mysql already installed out of the box?
     
Admin Emeritus
Join Date: Nov 2000
Location: New Yawk
Status: Offline
Sep 2, 2002, 08:30 PM
 
PHP is installed on X Client and X Server. MySQL is only installed (by default) on X Server.

To enable PHP, uncomment the AddModule and LoadModule lines in /etc/httpd/httpd.conf that refer to the php4_module.
"Do not be too positive about things. You may be in error." (C. F. Lawlor, The Mixicologist)
     
l008com  (op)
Addicted to MacNN
Join Date: Jan 2000
Location: Stoneham, MA, USA
Status: Offline
Sep 2, 2002, 08:59 PM
 
sweet
     
 
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:49 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2