liip / php-osx

DEPRECATED: See https://php-osx.liip.ch/ for details. The uploader and website for the PHP 5 package for OS X 10.6 built with https://github.com/liip/build-entropy-php
http://php-osx.liip.ch
Other
327 stars 30 forks source link

Mavericks Support #95

Closed Nokardron closed 10 years ago

Nokardron commented 11 years ago

Any PHP scripts don't work on Mavericks 10.9. Could you fix it please? Greetings from Poland.

pjezek commented 11 years ago

Do you have more info on that? Do you mean the one line installer?

romainbessugesmeusy commented 11 years ago

@Nokardron, I would greatly appreciate more details on that before getting mavericks a go, your issue scares me :-)

kevinpapst commented 11 years ago

@romainbessugesmeusy It does not affect everyone, I cannot confirm that problem. I upgraded to Mavericks and today installed PHP 5.5 with the one-line installer. My PHP apps (tested phpmyadmin, a CMS and a time tracking software) until now work without a problem - including mysql access and using several php extensions. But: I did a first time install and used the built-in php version of Mountain Lion before, so it might be an upgrade issue? My httpd.conf had only a minor change (additional lines at the end).

dfeyer commented 11 years ago

Updating to Mavericks, except some minor Apache config change, everything work fine for PHP. But I don't try to compile it with the last Xcode from Mavericks

ASirik commented 11 years ago

hi, how can i disable native php ??

mbadolato commented 11 years ago

I've had no issues with 5.5 on Mavericks, on either my home or work machines. After upgrading the OS though, you do need to disable the native php or you could possibly run into some issue. I simply did:

cd /usr/bin
sudo mv php php.orig
sudo ln -s /usr/local/php5/bin/php
baraboka commented 11 years ago

I could not make PHP work in Maveriks using the curl-command. It did install just fine but apache did not use it, even when I changed the config-file where it normally is located and used.

So I found out that Apple uses a different config when starting Apache, it uses this file: /Library/Server/Web/Config/apache2/httpd_server_app.conf

(By looking in the /System/Library/LaunchDaemons/org.apache.httpd.plist)

So, once you have installed PHP 5.5 you can edit that file and locate the line that says:

LoadModule php5_module libexec/apache2/libphp5.so

Edit it to be:

LoadModule php5_module libexec/apache2/libphp5.so

LoadModule php5_module /usr/local/php5/libphp5.so

Using: sudo pico /Library/Server/Web/Config/apache2/httpd_server_app.conf

Then save it (CTR + O, enter) and restart apache: sudo apachectl graceful

Done!

Remember, if you change the config settings using "Server" app you may need to do the steps once more, if Apple rewrites the config file. But I think as long as you leave the "Use PHP" option alone in the "Server" app, you will be just fine.

Hope it can help some of you who are in need of some help with this.