PDA

View Full Version : Tiger (10.4) and Apache (warning: a bit techy)


idfitter
06 May 2005, 03:56 PM
A warning to those of you who use Mac OS X to host your genealogy websites, especially those running under PHP.

When upgrading to Tiger, it overwrites your httpd.conf file (apache webserver config file) without warning.

This means that PHP stops working, and anyone accessing your php files will see the php code as well as html.

It also switches off '.htaccess' options, so any security you may have set will be missing.

I'm not sure what other 'damage' has been caused yet.

I recovered by reinstalling PHP (latest version) and modifying httpd.conf to re-enable .htaccess operation.

Note that while Tiger does make a backup of you old file, simply using this to restore your httpd.conf file will cause errors, because Apple has renamed Rendezvous to Bonjour and the references will be incorrect.

theKiwi
06 May 2005, 07:22 PM
I'd read the warning about this on Macintouch or MacFixit, and so was "ready". So far I've only updated my iBook to Tiger and the Apache/PHP/mySQL on that is only used for testing so far, so it wasn't a huge problem when it broke. I was able to fix it by reinstalling PHP as you note, and I hadn't done anything with .htaccess on the iBook.

But my G4 is a different story - the httpd.conf file is quite modified to handle 6 virtual hosts, as well as the PHP stuff, and .htaccess. Poring through that to find the changes isn't something I'm looking forward to.

The last few updates to httpd.conf that Apple have made have very nicely incorporated the Apple changes into the existing httpd.conf file - a pleasant change over earlier updates, but now they're back to their old ways of just renaming your file and writing a new default file.

No Cheers

Roger

Dreimiller
08 May 2005, 11:03 AM
But my G4 is a different story - the httpd.conf file is quite modified to handle 6 virtual hosts, as well as the PHP stuff, and .htaccess. Poring through that to find the changes isn't something I'm looking forward to.You should check out TextWrangler (http://www.barebones.com/products/textwrangler/index.shtml), a free text editor from BareBones which also makes BBEdit (http://www.barebones.com/products/bbedit/index.shtml) (not free). It has a nice Find Differences feature that will compare the new httpd.conf file with your modified Panther version.

If you commented the changes you made then it should be pretty easy to identify and add those changes to the new Tiger httpd.conf file. If you didn't comment them, you might want to first do a comparison with an unmodified copy of the Panther httpd.conf file.

Steve Folly
11 May 2005, 02:37 AM
Hi,

Just a suggestion but in future you might not want to modify your httpd.conf file directly. If you create a .conf file with just your extra stuff under /etc/httpd/users it automatically gets included as part of the main configuration (look at the end of httpd.conf).

I had a similar painful experience moving from Jaguar to Panther, but now all my config is separate I'm anticipating a smoother transition to Tiger.

I hope this is of some help.