configuring php

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

configuring php

Post by s.dot »

I don't really know where this goes, so I'll just put it here.

I need to configure my server's PHP to support curl. Do I have to reinstall the whole PHP again? Will I lose all my current settings?

How do I configure support for curl? PHP.net says --with-curl[=DIR] , but I don't know where to run that.
Help, please =]

Server is FreeBSD 5.3
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
sheila
Forum Commoner
Posts: 98
Joined: Mon Sep 05, 2005 9:52 pm
Location: Texas

Post by sheila »

Yes you need to compile and install PHP again.
The --with-curl[=DIR] is a compile option.
Look at the output from phpinfo(). At the top of the page you'll see all the compile options that your current version is using. You'll want to duplicate those settings and add curl.

If it's not already installed you need to install libcurl first.

If you're running PHP as an Apache module you'll need the source for Apache so you can built the module. Follow the directions at php.net. I think they are clear but if you've never compiled anything from source then it might be a bit intimidating. Just take it a step at a time.

To preserve your PHP settings just make a copy of your php.ini file so you can replace whatever is installed for you.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

thank you, that helps me a lot.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Post Reply