how do I recompile PHP to include cURL?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mr Pheer
    So Fucking Banned
    • Dec 2002
    • 22082

    #1

    how do I recompile PHP to include cURL?

    I've already installed cURL on my freebsd server, but now i need to recompile php to include it... fuck

    how do I do that?
  • WiredGuy
    Pounding Googlebot
    • Aug 2002
    • 34516

    #2
    Taken a look at this yet?
    http://curl.haxx.se/libcurl/php/
    WG
    I play with Google.

    Comment

    • Mr Pheer
      So Fucking Banned
      • Dec 2002
      • 22082

      #3
      yes I've looked at that... its only semi-informative

      Comment

      • AntiChrist
        Registered User
        • Nov 2005
        • 83

        #4
        Originally posted by Mr Pheer
        I've already installed cURL on my freebsd server, but now i need to recompile php to include it... fuck

        how do I do that?

        in the php-sourcedir type: ./configure --help

        should be something like ./configure --enable-curl

        then if no errors occur: make
        then : make install (as root)


        This is on linux, not sure about freebsd
        Last edited by AntiChrist; 01-21-2007, 03:46 AM.

        Comment

        • Mr Pheer
          So Fucking Banned
          • Dec 2002
          • 22082

          #5
          Originally posted by AntiChrist
          in the php-sourcedir type: ./configure --help

          should be something like ./configure --enable-curl

          then if no errors occur: make
          then : make install (as root)


          This is on linux, not sure about freebsd
          but do i have to also type the other stuff when i first compiled it? like include apache, gd, ssl, mysql, all that crap?

          Comment

          • borked
            Totally Borked
            • Feb 2005
            • 6284

            #6
            it's --with-curl
            everything all on one line - you can break the lines up with a backslash. eg

            Code:
            ./configure --enable-dom \
            --enable-versioning \
            --with-cli \
            --disable-cgi \
            --with-layout=GNU \
            --with-config-file-scan-dir=/usr/local/etc/php \
            --disable-all \
            --enable-libxml \
            --with-libxml-dir=/usr/local \
            --enable-reflection \
            --enable-spl \
            --program-prefix="" \
            --with-apxs2=/usr/local/sbin/apxs \
            --prefix=/usr \
            --with-xml \
            --enable-bcmath \
            --enable-calendar \
            --with-curl \
            --enable-exif \
            --enable-ftp \
            --with-gd \
            --with-jpeg-dir=/usr/local \
            --with-xpm-dir=/usr/X11R6 \
            --with-gettext \
            --with-imap \
            --with-imap-ssl \
            --with-mcrypt \
            --with-mhash \
            --enable-magic-quotes \
            --with-mysqli=/usr/local/bin/mysql_config \
            --with-mysql=/usr/local \
            --with-openssl \
            --enable-discard-path \
            --with-png-dir=/usr/local \
            --with-pear \
            --enable-sockets \
            --enable-track-vars \
            --with-ttf \
            --with-freetype-dir=/usr/local \
            --enable-gd-native-ttf \
            --with-xmlrpc \
            --with-zip \
            --with-zlib \
            --with-pcre-regex \
            --enable-xml \
            --with-regex=php \
            --with-zend-vm=CALL \
            --prefix=/usr/local

            For coding work - hit me up on andy // borkedcoder // com
            (consider figuring out the email as test #1)



            All models are wrong, but some are useful. George E.P. Box. p202

            Comment

            • edgeprod
              Permanently Gone
              • Mar 2004
              • 10019

              #7
              Hey, I saw that you accidentally submitted an Autoblogger Pro support ticket with this question, too. I think you meant to submit it to your hosting provider.

              Have them hit me up if they have any questions, but I doubt they will. Good luck to you, man, and let me know if I can help in any way.

              Comment

              • Mr Pheer
                So Fucking Banned
                • Dec 2002
                • 22082

                #8
                Originally posted by edgeprod
                Hey, I saw that you accidentally submitted an Autoblogger Pro support ticket with this question, too. I think you meant to submit it to your hosting provider.

                Have them hit me up if they have any questions, but I doubt they will. Good luck to you, man, and let me know if I can help in any way.
                It was no accident. I dont really get hosting support with this server. I cant install ABP without this, which is the reason I'm trying to do it in the first place.

                Comment

                • edgeprod
                  Permanently Gone
                  • Mar 2004
                  • 10019

                  #9
                  Originally posted by Mr Pheer
                  It was no accident. I dont really get hosting support with this server. I cant install ABP without this, which is the reason I'm trying to do it in the first place.
                  Ah, okay, my mistake! I couldn't image why someone would be contacting us about support for their server. Sorry to hear that your host doesn't support your server configuration, that must be frustrating.

                  We'll help you for free as much as we possibly can, just because we're slick like that, but it will be outside of the actual support for Autoblogger itself, as server upgrades and software configuration obviously isn't part of that.

                  How are things coming along, with getting PHP to see that cURL is installed? Did you follow the suggestions in this thread so far?

                  Comment

                  • Mr Pheer
                    So Fucking Banned
                    • Dec 2002
                    • 22082

                    #10
                    looks like i got lucky and actually found a server tech on sunday

                    disregard, got the guy fixing it

                    Comment

                    • edgeprod
                      Permanently Gone
                      • Mar 2004
                      • 10019

                      #11
                      Originally posted by Mr Pheer
                      looks like i got lucky and actually found a server tech on sunday

                      disregard, got the guy fixing it
                      Okay, I just replied to your ticket anyway.

                      If he can't get it solved, let's try getting on the phone to see what we can find. I'll give you as much of my personal time as you need, with the understanding that it's not an "Autoblogger/Relink" thing -- as we'd ask that customer's servers comply with at least the minimum requirements ... but my PERSONAL time, I'm more than happy to give you whenever any of our customers need it!

                      Let me know what happens .. I have dinner with the girlfriend's parents, but I can stay home to help if you need me to.

                      Comment

                      • candyflip
                        Carpe Visio
                        • Jul 2002
                        • 43073

                        #12
                        I didn't even have to open the thread to know what you needed it for.

                        I had to do the same thing a few weeks back. My girlfriend figured it out.

                        Spend you some brain.
                        Email Me

                        Comment

                        • Mr Pheer
                          So Fucking Banned
                          • Dec 2002
                          • 22082

                          #13
                          I moved it to a differnt server, one of my gotwebhost machines

                          I have 5 servers
                          1 with Hosting Company A
                          2 with Hosting Company B
                          2 with Got Web Host

                          the gotwebhost machines are pretty much setup with everything I needed from the start, I should have checked them first.

                          Comment

                          • Mr Pheer
                            So Fucking Banned
                            • Dec 2002
                            • 22082

                            #14
                            god damn... that shit was easy to setup on a machine with everything working

                            Comment

                            • edgeprod
                              Permanently Gone
                              • Mar 2004
                              • 10019

                              #15
                              Originally posted by candyflip
                              I didn't even have to open the thread to know what you needed it for.

                              I had to do the same thing a few weeks back. My girlfriend figured it out.
                              LOL!!!! I remember that!!!

                              Originally posted by Mr Pheer
                              god damn... that shit was easy to setup on a machine with everything working
                              Thanks -- I wrote the installer to work very easily on machines that are either pre-vetted to work (i.e., comply with all requirements) or are simply installed/configured well. It's a fairly slick process, I think you'll find, throughout not only the install, but also the actual functionality. I would definitely recommend the README and INSTALL documents, which we'll likely be updating soon to pack them with more information.

                              Comment

                              • hostcentrex
                                Confirmed User
                                • Aug 2005
                                • 482

                                #16
                                Originally posted by borked
                                it's --with-curl
                                everything all on one line - you can break the lines up with a backslash. eg

                                Code:
                                ./configure --enable-dom \
                                --enable-versioning \
                                --with-cli \
                                --disable-cgi \
                                --with-layout=GNU \
                                --with-config-file-scan-dir=/usr/local/etc/php \
                                --disable-all \
                                --enable-libxml \
                                --with-libxml-dir=/usr/local \
                                --enable-reflection \
                                --enable-spl \
                                --program-prefix="" \
                                --with-apxs2=/usr/local/sbin/apxs \
                                --prefix=/usr \
                                --with-xml \
                                --enable-bcmath \
                                --enable-calendar \
                                --with-curl \
                                --enable-exif \
                                --enable-ftp \
                                --with-gd \
                                --with-jpeg-dir=/usr/local \
                                --with-xpm-dir=/usr/X11R6 \
                                --with-gettext \
                                --with-imap \
                                --with-imap-ssl \
                                --with-mcrypt \
                                --with-mhash \
                                --enable-magic-quotes \
                                --with-mysqli=/usr/local/bin/mysql_config \
                                --with-mysql=/usr/local \
                                --with-openssl \
                                --enable-discard-path \
                                --with-png-dir=/usr/local \
                                --with-pear \
                                --enable-sockets \
                                --enable-track-vars \
                                --with-ttf \
                                --with-freetype-dir=/usr/local \
                                --enable-gd-native-ttf \
                                --with-xmlrpc \
                                --with-zip \
                                --with-zlib \
                                --with-pcre-regex \
                                --enable-xml \
                                --with-regex=php \
                                --with-zend-vm=CALL \
                                --prefix=/usr/local
                                When I do my PHP installation to make it easier I do everything in a little shell script. If you want, hit me up on ICQ I will help you out. Not looking for anything in return. Just helping a brother out!
                                RackEngine LTD -- www.rackengine.com
                                [email protected]
                                Colocation Starting at just $79.00/monthly with your first 2 months free!
                                ICQ: 612250276

                                Comment

                                • SmokeyTheBear
                                  ►SouthOfHeaven
                                  • Jun 2004
                                  • 28609

                                  #17
                                  Originally posted by Mr Pheer
                                  god damn... that shit was easy to setup on a machine with everything working
                                  hatisblack at yahoo.com

                                  Comment

                                  • Sambo
                                    So Fucking Banned
                                    • Mar 2004
                                    • 1187

                                    #18
                                    This is why I HAVE TO have CPanel WHM - it makes stuff like this ez.....

                                    Comment

                                    • edgeprod
                                      Permanently Gone
                                      • Mar 2004
                                      • 10019

                                      #19
                                      Originally posted by Sambo
                                      This is why I HAVE TO have CPanel WHM - it makes stuff like this ez.....
                                      Weird. For me, it's usually CPanel and things like it that fuck shit like this up in the first place.

                                      Comment

                                      • Sambo
                                        So Fucking Banned
                                        • Mar 2004
                                        • 1187

                                        #20
                                        Originally posted by edgeprod
                                        Weird. For me, it's usually CPanel and things like it that fuck shit like this up in the first place.
                                        Ok - lets just say it take me longer to kill a server with WHM than it does with SSH -

                                        Comment

                                        • borked
                                          Totally Borked
                                          • Feb 2005
                                          • 6284

                                          #21
                                          Originally posted by hostcentrex
                                          When I do my PHP installation to make it easier I do everything in a little shell script. If you want, hit me up on ICQ I will help you out. Not looking for anything in return. Just helping a brother out!
                                          Great stuff, but I install from FreeBSD ports - so I keep all my options in a flatfile. Only ever needed it to go from php4->5.

                                          Great idea though because it's oh so easy to forget an option and have to recompile and install again if it's not available as an extension

                                          For coding work - hit me up on andy // borkedcoder // com
                                          (consider figuring out the email as test #1)



                                          All models are wrong, but some are useful. George E.P. Box. p202

                                          Comment

                                          Working...