note 69143 added to install.macosx.client
| From: | php dot developement at ipscripted dot com | Date: | Thu, 24 Aug 2006 16:08:58 +0000 |
| Subject: | note 69143 added to install.macosx.client | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-116270@lists.php.net to get a copy of this message | ||
You can aslo compile php 5 from source for use with the Apache 2 and MySQL packge from server
logistics:
Download the latest source (at time of writing, 5.1.5) from php.net, unpack it to any directory you
have write access to (your home directory, for example). Make sure that Apache 2 is stopped. Then
open a terminal.
1)If you are running as a limited user (which you should generally do), you need to log in as a
administrator by typing
login admin
and then entering your password
if you are running as an administrator, skip step 1
2)change to the directory in which you have php unpacked to:
cd /directory/in/which/is/php-1.5.1
3) configure:
./configure --prefix=/Library/PHP5 --with-mysql=/Library/MySQL
--with-apxs2=/Library/Apache2/bin/apxs
you can also append any other configuration options you want
4) type:
make
this will compile php. You need to have GCC installed, you can get it for free with Apple's
xcode Developement environment.
5) when make finnished, type:
make install
if you are running as a administrator (but not root), type
sudo make install
it will ask you for your password and then install php into the specified directory
You might have to add the following lines to your httpd.conf, if you hadn't had Server
Logistics php 4 installed.
6) Start Apache and test php by creating a new file test.php and saving the following line to it:
<?php phpinfo(); ?>
when you browse to that file, you should see the php info page
----
Server IP: 66.163.161.117
Probable Submitter: 84.157.149.99
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/install.macosx.client.php
Edit -- https://master.php.net/note/edit/69143
Del: integrated -- https://master.php.net/note/delete/69143/integrated
Del: useless -- https://master.php.net/note/delete/69143/useless
Del: bad code -- https://master.php.net/note/delete/69143/bad+code
Del: spam -- https://master.php.net/note/delete/69143/spam
Del: non-english -- https://master.php.net/note/delete/69143/non-english
Del: in docs -- https://master.php.net/note/delete/69143/in+docs
Del: other reasons-- https://master.php.net/note/delete/69143
Reject -- https://master.php.net/note/reject/69143
Search -- https://master.php.net/manage/user-notes.php