Friday 15 July 2011

osx - OS X Yosemite Webdav -



osx - OS X Yosemite Webdav -

i want setup webdav preinstalled apache/2.4.9 (unix) under macos x yosemite. if seek load dav modules, apachectl configtest results in errors

httpd: syntax error on line 158 of /private/etc/apache2/httpd.conf: cannot load libexec/apache2/mod_dav_fs.so server: dlopen(/usr/libexec/apache2/mod_dav_fs.so, 10): symbol not found: _dav_add_response\n referenced from: /usr/libexec/apache2/mod_dav_fs.so\n expected in: flat namespace\n in /usr/libexec/apache2/mod_dav_fs.so

how can prepare this.

this httpd.conf

serverroot "/usr" #listen 12.34.56.78:80 hear 80 # # dynamic shared object (dso) back upwards # # able utilize functionality of module built dso # have place corresponding `loadmodule' lines @ location # directives contained in available _before_ used. # statically compiled modules (those listed `httpd -l') not need # loaded here. # # example: # loadmodule foo_module modules/mod_foo.so # loadmodule authn_file_module libexec/apache2/mod_authn_file.so #loadmodule authn_dbm_module libexec/apache2/mod_authn_dbm.so #loadmodule authn_anon_module libexec/apache2/mod_authn_anon.so #loadmodule authn_dbd_module libexec/apache2/mod_authn_dbd.so #loadmodule authn_socache_module libexec/apache2/mod_authn_socache.so loadmodule authn_core_module libexec/apache2/mod_authn_core.so loadmodule authz_host_module libexec/apache2/mod_authz_host.so loadmodule authz_groupfile_module libexec/apache2/mod_authz_groupfile.so loadmodule authz_user_module libexec/apache2/mod_authz_user.so #loadmodule authz_dbm_module libexec/apache2/mod_authz_dbm.so #loadmodule authz_owner_module libexec/apache2/mod_authz_owner.so #loadmodule authz_dbd_module libexec/apache2/mod_authz_dbd.so loadmodule authz_core_module libexec/apache2/mod_authz_core.so #loadmodule authnz_ldap_module libexec/apache2/mod_authnz_ldap.so loadmodule access_compat_module libexec/apache2/mod_access_compat.so loadmodule auth_basic_module libexec/apache2/mod_auth_basic.so #loadmodule auth_form_module libexec/apache2/mod_auth_form.so #loadmodule auth_digest_module libexec/apache2/mod_auth_digest.so #loadmodule allowmethods_module libexec/apache2/mod_allowmethods.so #loadmodule file_cache_module libexec/apache2/mod_file_cache.so #loadmodule cache_module libexec/apache2/mod_cache.so #loadmodule cache_disk_module libexec/apache2/mod_cache_disk.so #loadmodule cache_socache_module libexec/apache2/mod_cache_socache.so #loadmodule socache_shmcb_module libexec/apache2/mod_socache_shmcb.so #loadmodule socache_dbm_module libexec/apache2/mod_socache_dbm.so #loadmodule socache_memcache_module libexec/apache2/mod_socache_memcache.so #loadmodule watchdog_module libexec/apache2/mod_watchdog.so #loadmodule macro_module libexec/apache2/mod_macro.so #loadmodule dbd_module libexec/apache2/mod_dbd.so #loadmodule dumpio_module libexec/apache2/mod_dumpio.so #loadmodule echo_module libexec/apache2/mod_echo.so #loadmodule buffer_module libexec/apache2/mod_buffer.so #loadmodule data_module libexec/apache2/mod_data.so #loadmodule ratelimit_module libexec/apache2/mod_ratelimit.so loadmodule reqtimeout_module libexec/apache2/mod_reqtimeout.so #loadmodule ext_filter_module libexec/apache2/mod_ext_filter.so #loadmodule request_module libexec/apache2/mod_request.so #loadmodule include_module libexec/apache2/mod_include.so loadmodule filter_module libexec/apache2/mod_filter.so #loadmodule reflector_module libexec/apache2/mod_reflector.so #loadmodule substitute_module libexec/apache2/mod_substitute.so #loadmodule sed_module libexec/apache2/mod_sed.so #loadmodule charset_lite_module libexec/apache2/mod_charset_lite.so #loadmodule deflate_module libexec/apache2/mod_deflate.so #loadmodule xml2enc_module libexec/apache2/mod_xml2enc.so #loadmodule proxy_html_module libexec/apache2/mod_proxy_html.so loadmodule mime_module libexec/apache2/mod_mime.so #loadmodule ldap_module libexec/apache2/mod_ldap.so loadmodule log_config_module libexec/apache2/mod_log_config.so #loadmodule log_debug_module libexec/apache2/mod_log_debug.so #loadmodule log_forensic_module libexec/apache2/mod_log_forensic.so #loadmodule logio_module libexec/apache2/mod_logio.so loadmodule env_module libexec/apache2/mod_env.so #loadmodule mime_magic_module libexec/apache2/mod_mime_magic.so #loadmodule expires_module libexec/apache2/mod_expires.so loadmodule headers_module libexec/apache2/mod_headers.so #loadmodule usertrack_module libexec/apache2/mod_usertrack.so #loadmodule unique_id_module libexec/apache2/mod_unique_id.so loadmodule setenvif_module libexec/apache2/mod_setenvif.so loadmodule version_module libexec/apache2/mod_version.so #loadmodule remoteip_module libexec/apache2/mod_remoteip.so loadmodule proxy_module libexec/apache2/mod_proxy.so loadmodule proxy_connect_module libexec/apache2/mod_proxy_connect.so loadmodule proxy_ftp_module libexec/apache2/mod_proxy_ftp.so loadmodule proxy_http_module libexec/apache2/mod_proxy_http.so loadmodule proxy_fcgi_module libexec/apache2/mod_proxy_fcgi.so loadmodule proxy_scgi_module libexec/apache2/mod_proxy_scgi.so #loadmodule proxy_fdpass_module libexec/apache2/mod_proxy_fdpass.so loadmodule proxy_wstunnel_module libexec/apache2/mod_proxy_wstunnel.so loadmodule proxy_ajp_module libexec/apache2/mod_proxy_ajp.so loadmodule proxy_balancer_module libexec/apache2/mod_proxy_balancer.so loadmodule proxy_express_module libexec/apache2/mod_proxy_express.so #loadmodule session_module libexec/apache2/mod_session.so #loadmodule session_cookie_module libexec/apache2/mod_session_cookie.so #loadmodule session_dbd_module libexec/apache2/mod_session_dbd.so loadmodule slotmem_shm_module libexec/apache2/mod_slotmem_shm.so #loadmodule slotmem_plain_module libexec/apache2/mod_slotmem_plain.so #loadmodule ssl_module libexec/apache2/mod_ssl.so #loadmodule dialup_module libexec/apache2/mod_dialup.so loadmodule lbmethod_byrequests_module libexec/apache2/mod_lbmethod_byrequests.so loadmodule lbmethod_bytraffic_module libexec/apache2/mod_lbmethod_bytraffic.so loadmodule lbmethod_bybusyness_module libexec/apache2/mod_lbmethod_bybusyness.so #loadmodule lbmethod_heartbeat_module libexec/apache2/mod_lbmethod_heartbeat.so loadmodule unixd_module libexec/apache2/mod_unixd.so #loadmodule heartbeat_module libexec/apache2/mod_heartbeat.so #loadmodule heartmonitor_module libexec/apache2/mod_heartmonitor.so #loadmodule dav_module libexec/apache2/mod_dav.so loadmodule status_module libexec/apache2/mod_status.so loadmodule autoindex_module libexec/apache2/mod_autoindex.so #loadmodule asis_module libexec/apache2/mod_asis.so #loadmodule info_module libexec/apache2/mod_info.so #loadmodule cgi_module libexec/apache2/mod_cgi.so loadmodule dav_fs_module libexec/apache2/mod_dav_fs.so loadmodule dav_lock_module libexec/apache2/mod_dav_lock.so loadmodule vhost_alias_module libexec/apache2/mod_vhost_alias.so loadmodule negotiation_module libexec/apache2/mod_negotiation.so loadmodule dir_module libexec/apache2/mod_dir.so #loadmodule imagemap_module libexec/apache2/mod_imagemap.so #loadmodule actions_module libexec/apache2/mod_actions.so #loadmodule speling_module libexec/apache2/mod_speling.so #loadmodule userdir_module libexec/apache2/mod_userdir.so loadmodule alias_module libexec/apache2/mod_alias.so #loadmodule rewrite_module libexec/apache2/mod_rewrite.so loadmodule php5_module libexec/apache2/libphp5.so #loadmodule hfs_apple_module libexec/apache2/mod_hfs_apple.so <ifmodule unixd_module> user _www grouping _www </ifmodule> serveradmin you@example.com # # servername gives name , port server uses identify itself. # can determined automatically, recommend specify # explicitly prevent problems during startup. # # if host doesn't have registered dns name, come in ip address here. # #servername www.example.com:80 # # deny access entirety of server's filesystem. must # explicitly permit access web content directories in other # <directory> blocks below. # <directory /> allowoverride none require denied </directory> # # note point forwards must allow # particular features enabled - if something's not working # might expect, create sure have enabled # below. # # # documentroot: directory out of serve # documents. default, requests taken directory, # symbolic links , aliases may used point other locations. # documentroot "/library/webserver/documents" <directory "/library/webserver/documents"> # # possible values options directive "none", "all", # or combination of: # indexes includes followsymlinks symlinksifownermatch execcgi multiviews # # note "multiviews" must named *explicitly* --- "options all" # doesn't give you. # # options directive both complicated , important. please see # http://httpd.apache.org/docs/2.4/mod/core.html#options # more information. # options followsymlinks multiviews multiviewsmatch # # allowoverride controls directives may placed in .htaccess files. # can "all", "none", or combination of keywords: # allowoverride fileinfo authconfig limit # allowoverride none # # controls can stuff server. # require granted </directory> # # directoryindex: sets file apache serve if directory # requested. # <ifmodule dir_module> directoryindex index.html </ifmodule> # # next lines prevent .htaccess , .htpasswd files beingness # viewed web clients. # <filesmatch "^\.([hh][tt]|[dd][ss]_[ss])"> require denied </filesmatch> # # apple specific filesystem protection. # <files "rsrc"> require denied </files> <directorymatch ".*\.\.namedfork"> require denied </directorymatch> # # errorlog: location of error log file. # if not specify errorlog directive within <virtualhost> # container, error messages relating virtual host # logged here. if *do* define error logfile <virtualhost> # container, host's errors logged there , not here. # errorlog "/private/var/log/apache2/error_log" # # loglevel: command number of messages logged error_log. # possible values include: debug, info, notice, warn, error, crit, # alert, emerg. # loglevel warn <ifmodule log_config_module> # # next directives define format nicknames utilize # customlog directive (see below). # logformat "%h %l %u %t \"%r\" %>s %b \"%{referer}i\" \"%{user-agent}i\"" combined logformat "%h %l %u %t \"%r\" %>s %b" mutual <ifmodule logio_module> # need enable mod_logio.c utilize %i , %o logformat "%h %l %u %t \"%r\" %>s %b \"%{referer}i\" \"%{user-agent}i\" %i %o" combinedio </ifmodule> # # location , format of access logfile (common logfile format). # if not define access logfiles within <virtualhost> # container, logged here. contrariwise, if *do* # define per-<virtualhost> access logfiles, transactions # logged therein , *not* in file. # customlog "/private/var/log/apache2/access_log" mutual # # if prefer logfile access, agent, , referer info # (combined logfile format) can utilize next directive. # #customlog "/private/var/log/apache2/access_log" combined </ifmodule> <ifmodule alias_module> # # redirect: allows tell clients documents used # exist in server's namespace, not anymore. client # create new request document @ new location. # example: # redirect permanent /foo http://www.example.com/bar # # alias: maps web paths filesystem paths , used # access content not live under documentroot. # example: # alias /webpath /full/filesystem/path # # if include trailing / on /webpath server # require nowadays in url. # need provide <directory> section allow access # filesystem path. # # scriptalias: controls directories contain server scripts. # scriptaliases same aliases, except # documents in target directory treated applications , # run server when requested rather documents sent # client. same rules trailing "/" apply scriptalias # directives alias. # scriptaliasmatch ^/cgi-bin/((?!(?i:webobjects)).*$) "/library/webserver/cgi-executables/$1" </ifmodule> <ifmodule cgid_module> # # scriptsock: on threaded servers, designate path unix # socket used communicate cgi daemon of mod_cgid. # #scriptsock cgisock </ifmodule> # # "/library/webserver/cgi-executables" should changed whatever scriptaliased # cgi directory exists, if have configured. # <directory "/library/webserver/cgi-executables"> allowoverride none options none require granted </directory> <ifmodule mime_module> # # typesconfig points file containing list of mappings # filename extension mime-type. # typesconfig /private/etc/apache2/mime.types # # addtype allows add together or override mime configuration # file specified in typesconfig specific file types. # #addtype application/x-gzip .tgz # # addencoding allows have browsers uncompress # info on fly. note: not browsers back upwards this. # #addencoding x-compress .z #addencoding x-gzip .gz .tgz # # if addencoding directives above commented-out, # should define extensions indicate media types: # addtype application/x-compress .z addtype application/x-gzip .gz .tgz # # addhandler allows map file extensions "handlers": # actions unrelated filetype. these can either built server # or added action directive (see below) # # utilize cgi scripts outside of scriptaliased directories: # (you need add together "execcgi" "options" directive.) # #addhandler cgi-script .cgi # type maps (negotiated resources): #addhandler type-map var # # filters allow process content before sent client. # # parse .shtml files server-side includes (ssi): # (you need add together "includes" "options" directive.) # #addtype text/html .shtml #addoutputfilter includes .shtml </ifmodule> # # mod_mime_magic module allows server utilize various hints # contents of file determine type. mimemagicfile # directive tells module hint definitions located. # #mimemagicfile /private/etc/apache2/magic # # customizable error responses come in 3 flavors: # 1) plain text 2) local redirects 3) external redirects # # examples: #errordocument 500 "the server made boo boo." #errordocument 404 /missing.html #errordocument 404 "/cgi-bin/missing_handler.pl" #errordocument 402 http://www.example.com/subscription_info.html # # # maxranges: maximum number of ranges in request before # returning entire resource, or 1 of special # values 'default', 'none' or 'unlimited'. # default setting take 200 ranges. #maxranges unlimited # # enablemmap , enablesendfile: on systems back upwards it, # memory-mapping or sendfile syscall may used deliver # files. improves server performance, must # turned off when serving networked-mounted # filesystems or if back upwards these functions otherwise # broken on system. # defaults: enablemmap on, enablesendfile off # #enablemmap off #enablesendfile on traceenable off # supplemental configuration # # configuration files in /private/etc/apache2/extra/ directory can # included add together features or modify default configuration of # server, or may re-create contents here , alter # necessary. # server-pool management (mpm specific) include /private/etc/apache2/extra/httpd-mpm.conf # multi-language error messages #include /private/etc/apache2/extra/httpd-multilang-errordoc.conf # fancy directory listings include /private/etc/apache2/extra/httpd-autoindex.conf # language settings #include /private/etc/apache2/extra/httpd-languages.conf # user home directories #include /private/etc/apache2/extra/httpd-userdir.conf # real-time info on requests , configuration #include /private/etc/apache2/extra/httpd-info.conf # virtual hosts include /private/etc/apache2/extra/httpd-vhosts.conf # local access apache http server manual #include /private/etc/apache2/extra/httpd-manual.conf # distributed authoring , versioning (webdav) include /private/etc/apache2/extra/httpd-dav.conf # various default settings #include /private/etc/apache2/extra/httpd-default.conf # configure mod_proxy_html understand html4/xhtml1 <ifmodule proxy_html_module> include /private/etc/apache2/extra/proxy-html.conf </ifmodule> # secure (ssl/tls) connections #include /private/etc/apache2/extra/httpd-ssl.conf # # note: next must must nowadays back upwards # starting without ssl on platforms no /dev/random equivalent # statically compiled-in mod_ssl. # <ifmodule ssl_module> sslrandomseed startup builtin sslrandomseed connect builtin </ifmodule> include /private/etc/apache2/other/*.conf # # uncomment out below deal user agents deliberately # violate open standards misusing dnt (dnt *must* specific # end-user choice) # #<ifmodule setenvif_module> #browsermatch "msie 10.0;" bad_dnt #</ifmodule> #<ifmodule headers_module> #requestheader unset dnt env=bad_dnt #</ifmodule>

thank best regards

uncomment next line:

#loadmodule dav_module libexec/apache2/mod_dav.so

osx apache webdav osx-yosemite

No comments:

Post a Comment