|
#1
| |||
| |||
| Apache 1.3.20, garbled apple_hfs_module
I just followed the instructions on Devshed about installing Apache w/ PHP & MySQL on Mac OS X. I'm running 10.0.4 (I think the article was written for 10.0.3), and the Apache, PHP, and MySQL packages are all higher version than they were at the time of the article writing. I thought everything went off without a hitch, but upon trying to start up the httpd daemon, I get the following error: API module structure `apple_hfs_module' in file /usr/libexec/httpd/mod_hfs_apple.so is garbled - perhaps this is not an Apache module DSO? I tried disabling this module, which I assume is to allow Apache to read Macintosh disks. Unfortunately, although I installed on separate partitions, I formatted my Mac OS X partition as HFS+ rather than UFS. Can I recompile this module somehow, or what advice would anyone have to go about fixing this? |
|
#2
| |||
| |||
|
I believe that Scott Anguish has posted the correct instructions for making this transition to 1.3.20 on 10.04. The problem is certainly that you have to recompile the hfs_mod.so; however you need the source!!! it is available at stepwise. http://www.stepwise.com/ they have a search. here, I searched for you.... http://www.stepwise.com/Articles/Wor...-03-24.01.html the name of the html and the actual title of the article is a little misleading.... but this is the real thiing.... the hfs_mod is only for correcting a possible security issue with case recognition on HFS+. HFS+ sees, for example, APACHE as equal to apache or even ApAchE. So if you have a folder which is protected by .htaccess, an intruder may easily discover that they may enter the folder without a password by changing the letter case. the hfs_mod.so is supposed to fix that issue only in this instance. throughout the rest of your environment, ABC will equal abc or Abc. the Apache server can "read" HFS+ just fine, whether you install that module or not. There are several othe rinstances where HFS's ability to remember Case but not distinguish it is problematic. head a binary file for seeing the head(top several lines) will be replaced by a perl script "HEAD" which reads/processes html headers. Makefile may be confused or overwritten with makefile ... etc. <hr> You could change to UFS but UFS formatted disks may not be viewed by MacOS9.2 and some applications will just refuse to operate in that environment ...for now. Last edited by jimr; September 18th, 2001 at 03:48 AM. |
|
#3
| |||
| |||
|
no no after updating from 1.3.19 to 1.3.20 (of the apache) you just have to recompile the module_hfs_ new! :-) then it works again! :-)...... |
|
#4
| ||||
| ||||
|
Speaking on apache 1.3.20 - did anyone have to do anything special to compile it? I always get a sanity check error when running the configure script - tells me my c preprocesor can't handle something or other (okay, not exactly what it says, but it's been about a week since I last tried it). Tells me I should use a GCC-compatible one. I've installed lots of stuff, but I know I haven't uninstalled anything.If I remember correctly, it was barfing over opening libdl (I guess ... -ldl in the compiler messages). This is what is used to make the .so modules. I'm pretty sure I still have it around in some form or other, since 1.3.19 has the loadable modules and still works. Anyone have any idea what's going on? |
|
#5
| |||
| |||
|
you should have the latest version of the dev tools installed. apples cc compiler is gcc compatible with a couple of tricks up it's sleeve. libdl as shipped is compiled into the main system library and there should be a symbolic link placed in the /usr/lib directory to leflect this. without any intervention on your part. there is a separate "improved" libdl compatiblity library at Fink.sourceforge.org however read any of the numerous postings on this topic ant follow the Stepwise link above. Nothing special to be done really....until you start trying to do some fancy stuff, discussion of which will be omitted in favor of not giving anyone any bright ideas about how to screw up their system. ./configure \ --enable-module=most \ --enable-shared=max dirt simple.... |
|
#6
| |||
| |||
|
no no, you don't have to recompile the whole Apache, you just have to compile the apple_hfs_module new!!!! probably it's still halv compiled, and you just have to "> make" in the specific directory! :-) but, i have apache 1.3.19, and have the same problem, when i want to compile 1.3.20 as you wrote….... i'm also interested in a functioning supervision, how to update apache 1.3.19 to 1.3.20 on OS X! (remark: after the Apple-Automatical-Software-Update is done) and the problem is, i have updated to the new DEV-Tools!!!! i thougt, that it didn't worked because of them and after that, i removed them and installed again the older DEV-Tools from the 10.0.1 Distribution... but it does not work on both DEV-Tools... he means, there should be more librarys, while a sanity-check-error.... |
|
#7
| |||
| |||
|
Let's have a look a selected pieces of your compiler output. some bits of the configure output would also be helpful. I have compiled so many things with few problems that I didn't cause by trying to be "clever". apache, php, mysql, postgres, perl 5.6.1, Tomcat, cocoon, mod_jk all work seamlessly. ssh, and tcpwrappers been working since public beta. Fink is installed and has helped out with Xfree86-rootless and a bunch of X-windows stuff. there are a couple of tricks I have pulled but mostly just to get a few small things working. this system is fantastic so many packages intall easily. OK so here is my actual configuration ./configure \ --enable-module=most" \ --enable-shared=max" \ --enable-module=so" \ --with-layout=Darwin" \ --prefix=/usr" \ from config.status in the apache_source directory that layout darwin and prefix=/usr will lay it right over the existing install for the brave-hearted. I find several alias files called libdyn**** |
|
#8
| |||
| |||
|
[localhost:WebServer/build-apache-1.3.20/apache_1.3.20] root# ./configure --enable-module=most --enable-shared=max --with-layout=Darwin --prefix=/usr Configuring for Apache, Version 1.3.20 + using installation path layout: Darwin (config.layout) Creating Makefile Creating Configuration.apaci in src + enabling mod_so for DSO support Creating Makefile in src + configured for Darwin platform + setting C compiler to cc + setting C pre-processor to cc -E -traditional-cpp + checking for system header files + adding selected modules o rewrite_module uses ConfigStart/End disabling DBM support for mod_rewrite (perhaps you need to add -ldbm, -lndbm or -lgdbm to EXTRA_LIBS) o dbm_auth_module uses ConfigStart/End + checking sizeof various data types + doing sanity check on compiler and options ** A test compilation with your Makefile configuration ** failed. The below error output from the compilation ** test will give you an idea what is failing. Note that ** Apache requires an ANSI C Compiler, such as gcc. cd ..; cc -DDARWIN -DNO_DBM_REWRITEMAP -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite `./apaci` -o helpers/dummy helpers/dummy.c ======== Error Output for sanity check ======== ============= End of Error Report ============= Aborting! [localhost:WebServer/build-apache-1.3.20/apache_1.3.20] root# and... (I'm not sure, if i should post it, because it's very large)... but, my /usr/libs folder contains as following: total 34680 drwxr-xr-x 104 root wheel 3492 Sep 17 02:26 . drwxr-xr-x 10 root wheel 296 Apr 27 05:36 .. -r-xr-xr-x 1 root wheel 42496 Sep 17 02:26 BuildFilter -r-xr-xr-x 1 root wheel 9292 Sep 17 02:26 arch_tool -r--r--r-- 1 root wheel 812 Feb 16 2001 bundle1.o -r-xr-xr-x 1 root wheel 9512 Sep 17 02:26 changes -r-xr-xr-x 1 root wheel 9600 Sep 17 02:26 clonehdrs -r--r--r-- 1 root wheel 4232 Feb 16 2001 crt1.o -r-xr-xr-x 1 root wheel 327528 Feb 24 2001 dyld -r--r--r-- 1 root wheel 1564 Feb 16 2001 dylib1.o -r-xr-xr-x 1 root wheel 18648 Sep 17 02:26 fastcp -r-xr-xr-x 1 root wheel 9224 Sep 17 02:26 frameworkFlags drwxr-xr-x 3 root wheel 264 Feb 24 2001 gcc -r--r--r-- 1 root wheel 4640 Feb 16 2001 gcrt1.o -r-xr-xr-x 1 root wheel 18788 Sep 17 02:26 genclasspath -r-xr-xr-x 1 root wheel 18396 Sep 17 02:26 genforceload drwxr-xr-x 18 root wheel 568 Aug 17 20:14 java -r-xr-xr-x 1 root wheel 14996 Aug 17 20:12 libDHCPServer.A.dylib lrwxr-xr-x 1 root wheel 21 Sep 17 02:26 libDHCPServer.dylib -> libDHCPServer.A.dylib lrwxr-xr-x 1 root wheel 59 Sep 17 02:26 libIOKit.A.dylib -> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit lrwxr-xr-x 1 root wheel 16 Sep 17 02:26 libIOKit.dylib -> libIOKit.A.dylib -r-xr-xr-x 1 root wheel 50420 Feb 18 2001 libMallocDebug.A.dylib -r--r--r-- 1 root wheel 76768 Feb 18 2001 libMallocDebug.a -r-xr-xr-x 1 root wheel 1260752 Jun 8 10:35 libSystem.B.dylib -r-xr-xr-x 1 root wheel 5770252 Feb 24 2001 libSystem.B_debug.dylib -r-xr-xr-x 1 root wheel 5527136 Feb 24 2001 libSystem.B_profile.dylib lrwxr-xr-x 1 root wheel 17 Sep 17 02:26 libSystem.dylib -> libSystem.B.dylib lrwxr-xr-x 1 root wheel 23 Sep 17 02:26 libSystem_debug.dylib -> libSystem.B_debug.dylib lrwxr-xr-x 1 root wheel 25 Sep 17 02:26 libSystem_profile.dylib -> libSystem.B_profile.dylib -r-xr-xr-x 1 root wheel 45500 Aug 17 20:11 libalias.A.dylib lrwxr-xr-x 1 root wheel 16 Sep 17 02:26 libalias.dylib -> libalias.A.dylib lrwxr-xr-x 1 root wheel 15 Sep 17 02:26 libc.dylib -> libSystem.dylib lrwxr-xr-x 1 root wheel 34 Sep 17 02:26 libcc_dynamic.a -> gcc/darwin/default/libcc_dynamic.a lrwxr-xr-x 1 root wheel 31 Sep 17 02:26 libcc_kext.a -> gcc/darwin/default/libcc_kext.a -rw-r--r-- 1 root wheel 9784 Aug 17 20:10 libcom_err.3.0.dylib lrwxr-xr-x 1 root wheel 20 Sep 17 02:26 libcom_err.3.dylib -> libcom_err.3.0.dylib lrwxr-xr-x 1 root wheel 20 Sep 17 02:26 libcom_err.dylib -> libcom_err.3.0.dylib -rwxr-xr-x 1 root wheel 939708 Aug 17 20:10 libcrypto.0.9.dylib lrwxr-xr-x 1 root wheel 19 Sep 17 02:26 libcrypto.dylib -> libcrypto.0.9.dylib lrwxr-xr-x 1 root wheel 15 Sep 17 02:26 libcurses.dylib -> libSystem.dylib -rw-r--r-- 1 root wheel 20404 Aug 17 20:10 libdes425.3.0.dylib lrwxr-xr-x 1 root wheel 19 Sep 17 02:26 libdes425.3.dylib -> libdes425.3.0.dylib lrwxr-xr-x 1 root wheel 19 Sep 17 02:26 libdes425.dylib -> libdes425.3.0.dylib -rw-r--r-- 1 root wheel 14580 Aug 17 20:10 libdyn.1.0.dylib lrwxr-xr-x 1 root wheel 16 Sep 17 02:26 libdyn.1.dylib -> libdyn.1.0.dylib lrwxr-xr-x 1 root wheel 16 Sep 17 02:26 libdyn.dylib -> libdyn.1.0.dylib lrwxr-xr-x 1 root wheel 15 Sep 17 02:26 libedit.dylib -> libSystem.dylib -rw-r--r-- 1 root wheel 83872 Aug 17 20:10 libgssapi_krb5.2.2.dylib lrwxr-xr-x 1 root wheel 24 Sep 17 02:26 libgssapi_krb5.2.dylib -> libgssapi_krb5.2.2.dylib lrwxr-xr-x 1 root wheel 24 Sep 17 02:26 libgssapi_krb5.dylib -> libgssapi_krb5.2.2.dylib -rw-r--r-- 1 root wheel 90044 Aug 17 20:10 libgssrpc.3.0.dylib lrwxr-xr-x 1 root wheel 19 Sep 17 02:26 libgssrpc.3.dylib -> libgssrpc.3.0.dylib lrwxr-xr-x 1 root wheel 19 Sep 17 02:26 libgssrpc.dylib -> libgssrpc.3.0.dylib lrwxr-xr-x 1 root wheel 15 Sep 17 02:26 libinfo.dylib -> libSystem.dylib -rw-r--r-- 1 root wheel 75568 Aug 17 20:10 libk5crypto.3.0.dylib lrwxr-xr-x 1 root wheel 21 Sep 17 02:26 libk5crypto.3.dylib -> libk5crypto.3.0.dylib lrwxr-xr-x 1 root wheel 21 Sep 17 02:26 libk5crypto.dylib -> libk5crypto.3.0.dylib -rw-r--r-- 1 root wheel 74188 Feb 17 2001 libkadm5clnt.4.0.dylib lrwxr-xr-x 1 root wheel 22 Sep 17 02:26 libkadm5clnt.4.dylib -> libkadm5clnt.4.0.dylib lrwxr-xr-x 1 root wheel 22 Sep 17 02:26 libkadm5clnt.dylib -> libkadm5clnt.4.0.dylib -rw-r--r-- 1 root wheel 100280 Feb 17 2001 libkadm5srv.4.0.dylib lrwxr-xr-x 1 root wheel 21 Sep 17 02:26 libkadm5srv.4.dylib -> libkadm5srv.4.0.dylib lrwxr-xr-x 1 root wheel 21 Sep 17 02:26 libkadm5srv.dylib -> libkadm5srv.4.0.dylib -rw-r--r-- 1 root wheel 35852 Feb 17 2001 libkdb5.3.0.dylib lrwxr-xr-x 1 root wheel 17 Sep 17 02:26 libkdb5.3.dylib -> libkdb5.3.0.dylib lrwxr-xr-x 1 root wheel 17 Sep 17 02:26 libkdb5.dylib -> libkdb5.3.0.dylib -r--r--r-- 1 root wheel 892 Mar 1 2001 libkmod.a -r--r--r-- 1 root wheel 1268 Mar 1 2001 libkmodc++.a -rw-r--r-- 1 root wheel 72652 Aug 17 20:10 libkrb4.2.0.dylib lrwxr-xr-x 1 root wheel 17 Sep 17 02:26 libkrb4.2.dylib -> libkrb4.2.0.dylib lrwxr-xr-x 1 root wheel 17 Sep 17 02:26 libkrb4.dylib -> libkrb4.2.0.dylib -rw-r--r-- 1 root wheel 383840 Aug 17 20:10 libkrb5.3.0.dylib lrwxr-xr-x 1 root wheel 17 Sep 17 02:26 libkrb5.3.dylib -> libkrb5.3.0.dylib lrwxr-xr-x 1 root wheel 17 Sep 17 02:26 libkrb5.dylib -> libkrb5.3.0.dylib -rw-r--r-- 1 root wheel 15872 Feb 17 2001 libkrb524.a lrwxr-xr-x 1 root wheel 15 Sep 17 02:26 libkvm.dylib -> libSystem.dylib -rw-r--r-- 1 root wheel 1228 Feb 17 2001 libl.a lrwxr-xr-x 1 root wheel 15 Sep 17 02:26 libm.dylib -> libSystem.dylib -r-xr-xr-x 1 root wheel 593296 Aug 17 20:09 libobjc.A.dylib lrwxr-xr-x 1 root wheel 23 Sep 17 02:26 libobjc.A_profile.dylib -> libobjc_profile.A.dylib lrwxr-xr-x 1 root wheel 15 Sep 17 02:26 libobjc.dylib -> libobjc.A.dylib -r-xr-xr-x 1 root wheel 613860 Feb 24 2001 libobjc_profile.A.dylib lrwxr-xr-x 1 root wheel 23 Sep 17 02:26 libobjc_profile.dylib -> libobjc_profile.A.dylib -r-xr-xr-x 1 root wheel 77716 Aug 17 20:13 libpcap.A.dylib lrwxr-xr-x 1 root wheel 15 Sep 17 02:26 libpcap.dylib -> libpcap.A.dylib lrwxr-xr-x 1 root wheel 15 Sep 17 02:26 libpthread.dylib -> libSystem.dylib -rw-r--r-- 1 root wheel 16040 Aug 17 20:15 libpty.1.1.dylib lrwxr-xr-x 1 root wheel 16 Sep 17 02:26 libpty.1.dylib -> libpty.1.1.dylib lrwxr-xr-x 1 root wheel 16 Sep 17 02:26 libpty.dylib -> libpty.1.1.dylib -rw-r--r-- 1 root wheel 33656 Feb 17 2001 libss.a -rwxr-xr-x 1 root wheel 267512 Aug 17 20:10 libssl.0.9.dylib lrwxr-xr-x 1 root wheel 16 Sep 17 02:26 libssl.dylib -> libssl.0.9.dylib lrwxr-xr-x 1 root wheel 30 Sep 17 02:26 libstdc++.a -> gcc/darwin/default/libstdc++.a lrwxr-xr-x 1 root wheel 15 Sep 17 02:26 libtcl.dylib -> libtcl8.3.dylib -r-xr-xr-x 1 root wheel 593388 Aug 17 20:11 libtcl8.3.dylib -rw-r--r-- 1 root wheel 1912 Feb 17 2001 libtclstub8.3.a -r--r--r-- 1 root wheel 2608 Feb 17 2001 liby.a -rwxr-xr-x 1 root wheel 60380 Aug 17 20:10 libz.1.1.3.dylib lrwxr-xr-x 1 root wheel 16 Sep 17 02:26 libz.1.dylib -> libz.1.1.3.dylib lrwxr-xr-x 1 root wheel 16 Sep 17 02:26 libz.dylib -> libz.1.1.3.dylib -r-xr-xr-x 1 root wheel 22808 Sep 17 02:26 mergeInfo -r-xr-xr-x 1 root wheel 13680 Sep 17 02:26 ofileListTool dr-xr-xr-x 3 root wheel 264 Jun 27 20:18 php -r-xr-xr-x 1 root wheel 17888 Sep 17 02:26 plistread EOF Last edited by tazmandevil; September 18th, 2001 at 06:11 PM. |
![]() |
| Bookmarks |
| Thread Tools | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Overriding Apache test/plain MIME Type | TommyWillB | Design & Media | 6 | July 21st, 2003 09:27 PM |
| Where is Apache index.html??? | paradoxchild | Mac OS X System & Mac Software | 1 | February 12th, 2002 11:20 PM |
| How To Integrate Fink's Apache with MacOS X | slur | Mac OS X System & Mac Software | 1 | October 5th, 2001 09:50 PM |