Solved

Panther (10.3.5) Server php.ini

Posted on 2004-09-14
5
480 Views
Last Modified: 2010-04-29
Hi all,
I have the Web Service (Apache) running with the php module (enabled via Server Admin).  Things work OK, but i need to enable a few other librairies in PHP for my app work fully (the GD Libraries to be exact).  Where can I find Apple's php.ini file so I can enable these other options?

I found a php.ini.default file (in /etc), but I don't think that's what I'm looking for.

Thanks.
0
Comment
Question by:Schandor
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 2

Expert Comment

by:whitefael
ID: 12056631
An easy way to find it is to create file called info.php with the following text:

<? phpinfo ?>


Save it in your Library/WebServer/Documents directory.

Then open 127.0.0.1/~username/info.php in Safari or whatever browser you choose. There is a table cell that lists the location of your php.ini file. Mine is in /usr/local/php/lib/php.ini

Brian
0
 
LVL 2

Expert Comment

by:whitefael
ID: 12056656
Sorry, I put the wrong path. When viewing info.php type:
127.0.0.1/info.php

NOT

127.0.0.1/~username/info.php

Sorry about that.
0
 
LVL 1

Author Comment

by:Schandor
ID: 12058225
Thanks, I forgot about that command.  I got it to work with some slight modification:
<?php

phpinfo();

?>

The script mentions that the config file is /etc/php.ini.  However when I look in that directory php.ini does not exist.  I made a copy of the php.ini.default file and modified that to allow the gd2.dll extension, then changed the name to php.ini.  I then stopped and restarted the web service, and reran the info script.  Suddenly my config file changed to /private/etc/php.info.  When I checked the file, I found that it was an exact copy of the php.ini that I created.  Unfortunately the gd libraries still don't seem to be working, I'm fairly certain that Apple did not include those files in their default install.

Does anyone have anything else to add?  Any detail as to why my php.ini file didn't really exist until i created it would be helpful.  If not, I'll ask about the GD Libraries in another question.  Though I'd like to simply add it to this one so we're not reinventing the wheel.

Thanks
0
 
LVL 2

Accepted Solution

by:
whitefael earned 125 total points
ID: 12058650
I just can't get my head together today... Sorry about forgetting to put (); after phpinfo.

From what I understand php.ini doesn't actually exist, although the template /etc/php.ini.default is provided for you to edit and create your own php.ini, which you did.

However, GD isn't part of the OS X installation of PHP. You can get PHP 5 or PHP 4 for OS X 10.3.5 at:
http://www.entropy.ch/software/macosx/php/

Since PHP is already installed on your Mac, you'll want to do the upgrade. The owner of the site has compiled various libraries into his PHP install, including GD.

Hope this helps,
Brian
0
 
LVL 1

Author Comment

by:Schandor
ID: 12066379
I went in and simply installed the PHP4 module because the software I'm trying to run required it.  Everything seems to be working fine.  Thanks for the help.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A common question or need, when setting-up a new Mac for someone would be to make all of the applications, installed, available from the dock. Many people often do not realize an application is installed unless it is in the dock. Creating a custo…
iCloud Drive was introduced after iOS 8 was launched last year. This drive is Apple’s online storage device that lets users sync their files and access them from all their Apple devices.   There is a lot of data that is not automatically backed up…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question