Error Port Php5 Not Found
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Enabling curl in php5 up vote 3 down vote favorite I am using macports on my machine and I realized that curl is not enabled. Is there anyway to enable it without completely reconfiguring php? Thanks! php unix curl macports share|improve this question asked Apr 15 '10 at 21:11 Danny 1,52932751 add a comment| 2 Answers 2 active oldest votes up vote 8 down vote accepted First, make sure you have the most recent version of macports by running this: sudo port -v selfupdate port upgrade outdated According to the macports documentation here, the php5 port should include the curl extension by default. You should be able to install it by doing this from terminal: sudo port install php56 To install just the curl extension, you can do this: sudo port install php56-curl share|improve this answer edited May 13 '15 at 17:47 answered Oct 22 '10 at 23:32 plowman 7,49842940 1 note php5-curl has been made obsolete by the port php53-curl. Use sudo port install php53-curl instead –paul at stepupsoftware May 12 '15 at 8:46 Thanks, @paulatstepupsoftware. Fixed! –plowman May 13 '15 at 17:47 add a comment| Did you find this question interesting? Try our newsletter Sign up for our newsletter and get our top new questions delivered to your inbox (see an example). Subscribed! Success! Please c
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign http://stackoverflow.com/questions/2649002/enabling-curl-in-php5 up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top php5-mysql install, error 404 Not Found up vote 3 down vote favorite I get this message when I try to install php5-mysql http://ports.ubuntu.com/ubuntu-ports/pool/main/p/php5/php5-mysql_5.3.3-1ubuntu9.7_powerpc.deb 404 Not Found It's the same when I try both the Ubuntu http://askubuntu.com/questions/105580/php5-mysql-install-error-404-not-found software center and apt-get install So it seams like the .deb file doesn't exist. Any idea on how I can install the php5-mysql package? I'm using a powerPC. (btw, I have the same problem with phpmyadmin, the package doesn't exist) apt package-management powerpc share|improve this question edited Feb 19 '12 at 14:53 Bruno Pereira 48.7k18149183 asked Feb 19 '12 at 13:09 user1105047 242512 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote accepted The file is there, only it is another version. It is also present on the release index -rw-r--r-- 1 lp_publish lp_publish 70366 Aug 26 01:03 php5-mysql_5.3.6-13ubuntu3.1_powerpc.deb This is probably old apt indexes, you need to download them again, open a terminal and type sudo apt-get update && sudo apt-get install php5-mysql Make sure that your package list is updated before trying to install software. share|improve this answer answered Feb 19 '12 at 14:52 Bruno Pereira 48.7k18149183 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up
Scott PHP 5.4.7 is the latest stable release of PHP. WordPress has a minimum required version of 5.2.6. Most developers aren't using the PHP 5.4 branch. Actually, most aren't even rocking http://scotty-t.com/2012/09/19/installing-php-5-4-like-a-boss-with-macports/ PHP 5.3. This disgusts me. PHP 5.3 added support for closures. If you http://archive.robwilkerson.org/2010/06/07/install-technicalmemcached-on-osx-via-macports/ come from the world of JavaScript, you know how useful they can be. If you have used PHP 5.3 and closures in classes, you will be happy to know that PHP 5.4 allows you to use $this in closures in class methods. If you haven't messed around with PHP 5.3, you can install these error port MacPorts to get started: php5 +apache2+fastcgi+pear php5-apc php5-curl php5-gd php5-http php5-iconv php5-imagick php5-mbstring php5-mcrypt php5-memcached php5-mysql +mysqlnd php5-openssl php5-tidy If you already have PHP 5.3 and want to upgrade to PHP 5.4, these are some tricks to get you on the right path: sudo -s // use sudo mode throughout port uninstall php5 // won't work if you have extensions installed, // so uninstall everything that has error port php5 PHP5 as a dependency first port install php54 cd /opt/local/etc/php54 && sudo cp php.ini-development php.ini Install a bunch of PHP extensions: port install php54-apc php54-curl php54-gd php54-http php54-iconv php54-imagick php54-mbstring php54-mcrypt php54-memcached php54-mysql php54-openssl php54-tidy To use mysqlnd with a local MySQL server, edit /opt/local/etc/php54/php.iniĀ and set mysql.default_socket, mysqli.default_socket and pdo_mysql.default_socket to /opt/local/var/run/mysql5/mysqld.sock Make sure PHP 5.4.6 is the default PHP binary: which php If it's something like /usr/bin/php: cd /usr/bin && sudo rm -rf php sudo ln -s /opt/local/bin/php54 php You now have PHP 5.4.6 and your extensions, but you no longer have the apache variant. port install php54-apache2handler cd /opt/local/apache2/modules sudo /opt/local/apache2/bin/apxs -a -e -n php5 mod_php54.so vi /opt/local/apache2/conf/httpd.conf (remove the old php5.so) You now have PHP 5.4 and the apache handler, but you no longer have the PEAR variant. You can try to make this work: port install pear-PEAR Or you can do the following: cd # curl http://pear.php.net/go-pear.phar -o go-pear.phar sudo php go-pear.phar You will prompted to specify config vars, we want to change #1 and #4. Press 1 - Installation base ($prefix) - and enter: /opt/local/lib/php54 Press 4 - Binaries directory - and enter: /opt/local/bin More checks for PEAR: pear info pear && rm go-pear
by Rob Wilkerson Evidently I've become too accustomed to MacPorts installs being just a little too easy to get working. With virtually every install I've done, it's as simple as typing port install port-name (plus variants as desired). Today it wasn't and took me far longer than it should have to track down the problem. Having exactly zero experience with memcached, I set out to get it installed for use as a lightning quick quasi-message repository. I was a little surprised at how few instructions I found for installing the necessary components on OS X via MacPorts, but I managed to cobble together what I needed from various Linux instructions and configuration bits. I will now share the fruits of my labor with you: # Install the executable $ sudo port install memcached
# Install the bindings for PHP5 $ sudo port install php5-memcached # Verify that the executable exists in your path $ which memcached /opt/local/bin/memcached # Configure memcached to execute on startup, if desired sudo launchctl load -w /Library/LaunchDaemons/org.macports.memcached.plist # Start memcached for the current session memcached -d -m 24 -p 11211 That's the "easy" part that I managed to get through pretty quickly. Unfortunately, it didn't work. I wrote a simple, stupid PHP script to test and got a messaged that Class ‘Memcache' not found. It seems that MacPorts installs all of the necessary files and even creates an Ubuntu-like, separate ini file that is included by php.ini to load the memcached extension. That file, appropriately named memcached.ini, loads the memcached extension: extension=memcached.so This is exactly the way I'd seen it written in each of the tutorials I'd found online, so I spent some time investigating other possibilities before I came back to it. The problem, as it turns out, is that MacPorts doesn't install the shared object file in its extensions/ directory. Instead, it stores it in a cryptically named subdirectory. To get memcached fully operational I suppose you could move/copy the shared object to /opt/local/lib/php/extensions/, but I chose to edit the memcached.ini file to include the full path to the shared object: extension=/opt/local/lib/php/extensions/no-debug-non-zts-20060613/memcached.so I should add that I did try creating a symlink, but that did