From c0ba529712fe45569caa2c7325a399a2d6d57051 Mon Sep 17 00:00:00 2001 From: Damien Seguy Date: Fri, 20 Apr 2001 06:50:19 +0000 Subject: [PATCH] Added macos client's section. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@45585 c90b9560-bf6c-de11-be94-00142212c4b1 --- chapters/install.xml | 65 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 63 insertions(+), 2 deletions(-) diff --git a/chapters/install.xml b/chapters/install.xml index ebdbcfcf8b..43f08d8944 100644 --- a/chapters/install.xml +++ b/chapters/install.xml @@ -376,7 +376,7 @@ $ php4-enable Unix/Mac OS X installs This section contains notes and hints specific to installing - PHP on Mac OS X. + PHP on Mac OS X Server. Using Packages @@ -470,7 +470,6 @@ $ php4-enable cp php.ini-dist /usr/bin/php.ini - Other examples for Mac OS X client @@ -479,6 +478,68 @@ $ php4-enable are available at Stepwise. + + Compiling for MacOS X client + + Those tips are graciously provided by Marc Liyanage : + future site + (old site). + + + The PHP module for the Apache web server included in Mac OS X. + This version includes support for the MySQL and PostgreSQL databases. + + + NOTE: Be careful when you do this, you could screw up your Apache web server! + + + Do this to install: + + + + 1. Open a terminal window + + + + + 2. type "wget http://www.access.ch/ml/software/macosx/libphp4.so.gz", + wait for download to finish + + + + + 3. type "gunzip libphp4.so.gz" + + + + + 4. type "sudo apxs -i -a -n php4 libphp4.so" + + + + + Now type "sudo open -a TextEdit /etc/httpd/httpd.conf" + TextEdit will open with the web server configuration file. Locate these + two lines towards the end of the file: (Use the Find command) + + * #AddType application/x-httpd-php .php + * #AddType application/x-httpd-php-source .phps + + Remove the two hash marks (#), then save the file and quit TextEdit. + + + Finally, type "sudo apachectl graceful" to restart the web server. + + + PHP should now be up and running. You can test it by dropping a file into + your "Sites" folder which is called "test.php". Into that file, write this + line: "". + + + Now open up 127.0.0.1/~your_username/test.php in your web browser. + You should see a status table with information about the PHP module. + +