Forum Replies Created
-
AuthorPosts
-
abugera
Participant[QUOTE][u]Quote by: visualinventor[/u]
I want to recompile the mac PHP binaries to include the GD and pdf lib libraries … I want all the standard paths (apple installed paths) to stay in place. Can anyone give me a tutorial on this or point me to one. I have searched and searched for an updated tutorial but I haven’t found anything even close.
I installed the entorpy.ch packages and that was only marginally successful (we had many mysql errors with it) …. I want everything to stay fairly stock as apple installed it but just recompile in the same place with the needed extensions. Anyone?
[/QUOTE]
I will assume that your installed PHP is 4.4.x if you are running OS X 10.4.7
You will need to install both libpng and libjpg in order to build PHP with it’s built in GD support. I would suggest getting these from “Darwin Ports”.
http://darwinports.opendarwin.org/
Read the instructions carefully on how to use the port command.
Then grab PHP 4.4.4 or better from
http://www.php.net/downloads.php
In terminal use the php -i command to outline your current install. For example:
php -i >~/Desktop/php-before-upgrade.txt
You should see some text to the effect of “./configure –mandir=/usr/share/man –infodir=/usr/share/info” it will have the options quoted out. You will have to run ./configure again and use all the same options adding –with-gd.
There are detailed instructions on the php.net site.
abugera
ParticipantYou have to place the information you require in the “php.ini” file in “/etc/”. This file may not exist on your server yet. The file “/etc/php.ini.defaults” is just a template file and is NOT, as far as I can tell, read by the system. The defaults/settings described “appear” to outline the compiled defaults of the php installation.
In order to get osCommerce working on my server my “/etc/php.ini” file contains only the following:
register_globals = on
upload_max_filesize = 4MHope that helps.
-
AuthorPosts
Recent Comments