Install Custom PHP on Mac Pro (10.9 Mavericks)

Installing your own version of PHP may be necessary because Apple provides 5.4 and does not have modules you may need, in my case iODBC.

I went with MacpPorts because I had the fewer issues.

Lets begin:

  1. Install OSX Server($20) and XCode from the app store or developer site for free. (Be sure you agree to terms too otherwise the compiler wont work. Use the Launcher to start XCode once and you will be prompted)
    I could have probably avoided spending 19.95 on the server but I wanted to use other services not from MacPorts. I also Installed/configured MySQL with this single line I found here

    bash <(curl -Ls http://git.io/eUx7rg)

  2. Download and Install MacPorts for OS X 10.9 Mavericks (find other versions, more details on installing here)
  3. In terminal, run: 

    sudo port -d selfupdate

  4. I decided to go with current release of PHP: 5.5 sudo port install php55 php55-curl php55-imagick php55-intl php55-mbstring php55-mcrypt php55-iconv php55-ming php55-mysql php55-soap php55-sockets php55-sqlite php55-xdebug php55-zip php55-apache2handler php55-solr php55-pdflib php55-gd php55-ftp php55-excel php55-pear php55-posix php55-pspell php55-ssh2 php55-timezonedb php55-xsl php55-odbc +iodbc I also added php55-oracle to see if it works, it did after I signed up for an account to download instaclient 64bit from here and placed the zip archives (instantclient-basic-macos.x64-11.2.0.4.0.zip,instantclient-sdk-macos.x64-11.2.0.4.0.zip) in /opt/local/var/macports/distfiles/oracle-instantclient/ (You may need a different version depending updates of MacPorts so wait and you will be prompted with exact instructions when you do this.)
  5. If all goes well without errors, great time to enable the new PHP in Apache. In config file: /Library/Server/Web/Config/apache2/httpd_server_app.conf Comment line so it looks like this : #LoadModule php5_module libexec/apache2/libphp5.so Below it add : LoadModule php5_module /opt/local/apache2/modules/mod_php55.so
  6. If you received errors try to look at log files, correct probles or exclude php module that reported an issue and go back to step for after you run: sudo port uninstall php*

Allow access to eBay only?

If you have a controlled environment but would like to allow your users to access Ebay, you need to allow the following domains:

  • ebay.com
  • ebayimg.com
  • ebaystatic.com
  • ebayrtm.com
  • ebaydesc.com

XServe Bug CPU bug!

A bug discovered in the Mac OS X 10.6.8 Server update is causing the hardware monitoring daemon, hwmond, to consume up to 95 percent of CPU power on a variety of Xserves, according to an Apple forum thread. Member Arminhempel reports a CPU load up to 70 percent after every reboot on several Xserves he manages; Jean-Serge Remy has an Xserve Xeon showing an 84 percent hit, while InfraredAD is experiencing a 95 percent load on a 2008 quad-core Xserve, essentially wiping out an entire core. Both the combo and delta versions of the update have generated errors and, so far...

Read full article here

Test drive Ubuntu in the Cloud

Interested in Cloud computing? Try out Ubuntu! Takes about 5 minutes to deploy, you will have another 55 to play.  http://www.ubuntu.com/business/cloud/deploy-anywhere

 

"Device Not Managed" after upgrade

Oddly, the upgrade broke Wireless Networking. Had to fix the old fashion way... managed=false needed to be true.

/etc/NetworkManager/nm-system-settings.conf
-----------------------------------------------------------------------------------------------------------------------------
[main]
plugins=ifupdown,keyfile

[ifupdown]
managed=true
-----------------------------------------------------------------------------------------------------------------------------

After a reboot, works again!

Abandon Unity, Please!

Unity, turns out adds many clicks to what I was used to doing with 1. After a little searching found a way to go back to Gnome form the login menu choose "Ubuntu classic". There is an elplanation here. I hope Unity will just go away, more on this here.

Installed Ubuntu 11.04 today

Some new things are introduced, here is an overview. I do not like Unity so far, takes some getting used to not having the top panel and the menu not work the same as it used to. The Ubuntu menu now pulls up an app search instead of software categories. There os no more panel on the bottom, instead its on the left and has active apps as weel as bookmarked ones. I was hoping this upgrade would not break my php5.2 install from karmic repos and it did not. yeey!

Anyways, logged out and went back to Ubuntu Classic so I dont have to get used to the Mac-Like interface.

Syndicate content