View Full Version : php configure file not present in current LAMP configuration - cURL implementation
lcarter163
12-05-2005, 09:03 PM
Greetings,
I run a few websites, and feel fairly confident about my PHP skills, but not so much with my Linux skills. We are running PHP 4.3.6, and I need to configure it to utilize cURL. I got cURL installed and configured on the server, but now I need to reconfigure PHP with the command:
./configure --with-mysql --with-apache=../apache_1.3.31 --with-curl=/usr/local/lib
The only problem is that my confgure file is not present in the PHP directory. I'm not sure where to go with this. I'm trying to get the site set up to be able to connect to Authorize.net, and I can't get past this cURL problem.
Does anyone have any idea what I need to do to get PHP configured to recognize the cURL functionality?
I appreciate any help you can offer!
Leonard Carter
firepages
12-06-2005, 12:46 AM
You can only build/rebuild if you have the php and apache source.
How was php installed originally? if it was an .rpm or .deb etc then there may be an rpm for your platform providing cURL for php.
without knowing what platform its hard to advise ... do you have yum or apt-get ? if so & if there is a php-curl rpm available then it may be as simple as..
yum install php-curl
or
apt-get install php-curl
etc, so which linux you got ?
<edit>if you do actually have the source already and for some reaon conficure is missing try
./buildconf
to rebuild configure</edit>
lcarter163
12-06-2005, 03:26 PM
I'm not entirely sure how it was installed orginally. I'm a Windows guy, so I understand the whole process of installing on a PC, but I'm still learning how to work with the Linux stuff. I have root access to the server, and have been working in the command line environment for a few weeks now. It was fully configured ahead of time by some other party.
I can post my phpinfo contents if it helps at all, but I think that it's more complicated than that.
I'm not sure (and not sure how to find out), but I think it's Red Hat Linux. There are several websites tied to the server, so taking them down for more than a few minutes is not going to work. I was hoping to find a quick and easy way to do this.
From my research online, it seems that I need cURL support to communicate with Authorize.net. Is there any way around that?
Also, is there some way to get the information you are describing below from the server? Finding the person who originally set this thing up isn't going to be possible.
firepages
12-07-2005, 01:56 AM
cat /proc/version
should let you know what distro you have, if is redhat/fedora ...
rpm -qa | grep php | more
will show you the current installed php related rpms
if you have yum (type yum version to find out) (its my preffered update tool) , its much easier ..
yum info php-curl
if that finds a package....
yum install php-curl
if that does not work or you cant find a php-curl rpm for your php version then you may have to recompile php/apache from source, if you are not used to linux I would not make the first attempt on a live server~
..............................
I dont know how the Authorize.net API works so I dont know if cURL is a requirement though I assume if you have mod_ssl in apache then you could use php's fopen or fsockopen to replace curl ?????
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.