Re: php4 Mac OSX
| From: | Matt T. Galvin | Date: | Fri, 01 Nov 2002 16:41:38 +0000 |
| Subject: | Re: php4 Mac OSX | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-122434@lists.php.net to get a copy of this message | ||
uncompress eXtremePHP. It may get have a weird directory name. Change the directory name to xpl.
copy xpl to /Users/pierreva/Sites/xpl either from the CLI or just drag the xpl dir into your Site dir
cd /usr/local/lib
sudo vi php.ini
while in vi type <ESC> /auto_prepend
(this is to search to the auto_prepend line in the php.ini file)
move to the end of the auto_prepend line then type:
"a" to append to the file then <space> "/Users/pierreva/Sites/xpl/common/common.inc.php"then type <ESC>:wq<ENTER> to save the changes then type sudo apachectl graceful to restart apache, just in case ;) That should be all that you have to do. Now try using the libraries and other xpl stuff. Good Luck, Matt At 05:00 PM 11/1/2002 +0100, you wrote:
Did you install from the source code or a pre-compiled bin? (from Marc Liyanage.?)I installed PHP from Marc Liyanage pre-compiled binIf so there is usually no php.ini file with it. If you are using Marc's binary package then create a blank php.ini file:Done !sudo mkdir -p /usr/local/lib sudo touch /usr/local/lib/php.iniThen you will have to add the appropriate configuration options to it. You can find an example php.ini file in the php source code file php4.2.3.tar.gz or whatever it is called. There will be a file called php.ini-recommended, you can copy the options in this file and use it, or the php.ini-dist file.I would like to install eXtremePHP - Installation document says : 1. Uncompress the contents of the archive to the document root of yourweb server.2. You will have to auto prepend the xpl/common/common.inc.php file. Thiscan be done of one of two ways.a) In the PHP.INI, find the field that says "auto_prepend_file" and change it to look like below on Unixauto_prepend_file = "/www/xpl/common/common.inc.php"where "www" is the document root of the webserver.b) If you are running Apache, create an .htaccess file under your document root directory and enter the following line and save the file.php_value auto_prepend_file /www/xpl/common/common.inc.phpMy document root is : /Users/pierreva/Sites Could you tell me what I have to change in php.ini-recommmended ? Thanks for your help. Pierre Vaudrey email pierre.vaudrey@wanadoo.fr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php