Virtual Hosts in MySQL speichern

Alles, was den Apache betrifft, kann hier besprochen werden.

Virtual Hosts in MySQL speichern

Postby flattman » 27. January 2005 12:44

Hallo,
habe vor meine virtual hosts in einer DB zu speicher. Habe auch ein Modul gefunden welches dieses ermöglicht. Nur leider kann ich dies nicht installieren. Habe schon gegoogled aber kann nix finden. Das Modul heißt: mod_shapvh und ich nutze Apache 2. Der Mysql Server läuft auf der selben Maschine wie der Apache.

Habe das Modul dieser Seite [url=hier]http://www.pookey.co.uk/shapvh-apache.xml[/url]versucht zu installieren. Bei mir treten aber folgende Fehlermeldungen auf.



Code: Select all
hamburg137:~/mod_shapvh # make -f makefile
/usr/sbin/apxs2 -i -c -l mysqlclient ./mod_shapvh.c
/usr/share/apache2/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -fPIC -Wall -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DAP_DEBUG -g -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -pthread -I/usr/include/apache2  -I/usr/include/apache2   -I/usr/include/apache2   -c -o ./mod_shapvh.lo ./mod_shapvh.c && touch ./mod_shapvh.slo
mod_shapvh.c:97: error: parse error before "shapvh_module"
mod_shapvh.c:97: warning: type defaults to `int' in declaration of `shapvh_module'
mod_shapvh.c:97: warning: data definition has no type or storage class
mod_shapvh.c: In function `shapvh_setup':
mod_shapvh.c:101: warning: passing arg 2 of `ap_get_module_config' from incompatible pointer type
mod_shapvh.c:105: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast
mod_shapvh.c:105: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
mod_shapvh.c:106: warning: `return' with no value, in function returning non-void
mod_shapvh.c:112: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast
mod_shapvh.c:112: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
mod_shapvh.c:112: error: too few arguments to function `ap_log_error'
mod_shapvh.c:119: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast
mod_shapvh.c:119: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
mod_shapvh.c:124: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast
mod_shapvh.c:124: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
mod_shapvh.c:124: error: too few arguments to function `ap_log_error'
mod_shapvh.c: At top level:
mod_shapvh.c:130: error: parse error before '*' token
mod_shapvh.c:131: warning: function declaration isn't a prototype
mod_shapvh.c: In function `shapvh_create_server_config':
mod_shapvh.c:132: warning: implicit declaration of function `ap_pcalloc'
mod_shapvh.c:132: error: `p' undeclared (first use in this function)
mod_shapvh.c:132: error: (Each undeclared identifier is reported only once
mod_shapvh.c:132: error: for each function it appears in.)
mod_shapvh.c:134: warning: implicit declaration of function `ap_palloc'
mod_shapvh.c:134: warning: assignment makes pointer from integer without a cast
mod_shapvh.c: At top level:
mod_shapvh.c:139: error: parse error before '*' token
mod_shapvh.c:140: warning: function declaration isn't a prototype
mod_shapvh.c: In function `shapvh_merge_server_config':
mod_shapvh.c:141: error: `p' undeclared (first use in this function)
mod_shapvh.c:142: error: `basev' undeclared (first use in this function)
mod_shapvh.c:143: error: `overridesv' undeclared (first use in this function)
mod_shapvh.c:145: warning: assignment makes pointer from integer without a cast
mod_shapvh.c: In function `shapvh_translate':
mod_shapvh.c:166: warning: passing arg 2 of `ap_get_module_config' from incompatible pointer type
mod_shapvh.c:174: warning: implicit declaration of function `ap_table_setn'
mod_shapvh.c:177: warning: passing arg 1 of `ap_strstr' discards qualifiers from pointer target type
mod_shapvh.c:177: warning: passing arg 1 of `ap_strstr' discards qualifiers from pointer target type
mod_shapvh.c:179: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast
mod_shapvh.c:179: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
mod_shapvh.c:180: warning: implicit declaration of function `ap_pstrdup'
mod_shapvh.c:180: warning: assignment makes pointer from integer without a cast
mod_shapvh.c:181: error: structure has no member named `server_uid'
mod_shapvh.c:182: warning: assignment makes pointer from integer without a cast
mod_shapvh.c:190: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast
mod_shapvh.c:190: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
mod_shapvh.c:190: error: too few arguments to function `ap_log_error'
mod_shapvh.c:215: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast
mod_shapvh.c:215: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
mod_shapvh.c:216: warning: assignment makes pointer from integer without a cast
mod_shapvh.c:217: error: structure has no member named `server_uid'
mod_shapvh.c:218: warning: assignment makes pointer from integer without a cast
mod_shapvh.c:224: warning: implicit declaration of function `isalpha'
mod_shapvh.c:224: warning: implicit declaration of function `isdigit'
mod_shapvh.c:234: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast
mod_shapvh.c:234: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
mod_shapvh.c:235: warning: assignment makes pointer from integer without a cast
mod_shapvh.c:236: error: structure has no member named `server_uid'
mod_shapvh.c:237: warning: assignment makes pointer from integer without a cast
mod_shapvh.c:245: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast
mod_shapvh.c:245: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
mod_shapvh.c:248: warning: implicit declaration of function `ap_psprintf'
mod_shapvh.c:248: warning: assignment makes pointer from integer without a cast
mod_shapvh.c:249: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast
mod_shapvh.c:249: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
mod_shapvh.c:254: warning: assignment makes pointer from integer without a cast
mod_shapvh.c:261: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast
mod_shapvh.c:261: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
mod_shapvh.c:262: warning: assignment makes pointer from integer without a cast
mod_shapvh.c:263: error: structure has no member named `server_uid'
mod_shapvh.c:264: warning: assignment makes pointer from integer without a cast
mod_shapvh.c:280: warning: assignment makes pointer from integer without a cast
mod_shapvh.c:281: error: structure has no member named `server_uid'
mod_shapvh.c:282: error: structure has no member named `server_gid'
mod_shapvh.c:284: warning: assignment makes pointer from integer without a cast
mod_shapvh.c:288: error: structure has no member named `server_uid'
mod_shapvh.c:288: error: structure has no member named `server_gid'
mod_shapvh.c:290: error: structure has no member named `server_uid'
mod_shapvh.c:290: error: structure has no member named `server_gid'
mod_shapvh.c:290: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast
mod_shapvh.c:290: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
mod_shapvh.c:291: warning: assignment makes pointer from integer without a cast
mod_shapvh.c:292: warning: assignment makes pointer from integer without a cast
mod_shapvh.c:293: error: structure has no member named `server_uid'
mod_shapvh.c:294: error: structure has no member named `server_gid'
mod_shapvh.c:302: warning: assignment makes pointer from integer without a cast
mod_shapvh.c:303: error: structure has no member named `server_uid'
mod_shapvh.c:304: warning: assignment makes pointer from integer without a cast
mod_shapvh.c:305: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast
mod_shapvh.c:305: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
mod_shapvh.c: In function `set_host':
mod_shapvh.c:321: warning: passing arg 2 of `ap_get_module_config' from incompatible pointer type
mod_shapvh.c: In function `set_user':
mod_shapvh.c:327: warning: passing arg 2 of `ap_get_module_config' from incompatible pointer type
mod_shapvh.c: In function `set_pass':
mod_shapvh.c:333: warning: passing arg 2 of `ap_get_module_config' from incompatible pointer type
mod_shapvh.c: In function `set_dbname':
mod_shapvh.c:339: warning: passing arg 2 of `ap_get_module_config' from incompatible pointer type
mod_shapvh.c: In function `set_defaultroot':
mod_shapvh.c:346: warning: passing arg 2 of `ap_get_module_config' from incompatible pointer type
mod_shapvh.c: In function `set_defaultadmin':
mod_shapvh.c:352: warning: passing arg 2 of `ap_get_module_config' from incompatible pointer type
mod_shapvh.c: In function `set_shquery':
mod_shapvh.c:359: warning: passing arg 2 of `ap_get_module_config' from incompatible pointer type
mod_shapvh.c: In function `set_onoff':
mod_shapvh.c:366: warning: passing arg 2 of `ap_get_module_config' from incompatible pointer type
mod_shapvh.c: In function `set_shvisp':
mod_shapvh.c:373: warning: passing arg 2 of `ap_get_module_config' from incompatible pointer type
mod_shapvh.c: At top level:
mod_shapvh.c:379: warning: missing braces around initializer
mod_shapvh.c:379: warning: (near initialization for `shapvh_cmds[0].func')
mod_shapvh.c:379: warning: initialization from incompatible pointer type
mod_shapvh.c:380: warning: initialization from incompatible pointer type
mod_shapvh.c:381: warning: initialization from incompatible pointer type
mod_shapvh.c:382: warning: initialization from incompatible pointer type
mod_shapvh.c:383: warning: initialization from incompatible pointer type
mod_shapvh.c:384: warning: initialization from incompatible pointer type
mod_shapvh.c:385: warning: initialization from incompatible pointer type
mod_shapvh.c:386: warning: initialization from incompatible pointer type
mod_shapvh.c:387: warning: initialization from incompatible pointer type
mod_shapvh.c:391: error: parse error before "shapvh_module"
mod_shapvh.c:391: warning: type defaults to `int' in declaration of `shapvh_module'
mod_shapvh.c:393: error: `this_module_needs_to_be_ported_to_apache_2_0' undeclared here (not in a function)
mod_shapvh.c:393: error: initializer element is not constant
mod_shapvh.c:393: error: (near initialization for `shapvh_module')
mod_shapvh.c:394: warning: excess elements in scalar initializer
mod_shapvh.c:394: warning: (near initialization for `shapvh_module')
mod_shapvh.c:395: warning: excess elements in scalar initializer
mod_shapvh.c:395: warning: (near initialization for `shapvh_module')
mod_shapvh.c:396: warning: excess elements in scalar initializer
mod_shapvh.c:396: warning: (near initialization for `shapvh_module')
mod_shapvh.c:397: warning: excess elements in scalar initializer
mod_shapvh.c:397: warning: (near initialization for `shapvh_module')
mod_shapvh.c:398: warning: excess elements in scalar initializer
mod_shapvh.c:398: warning: (near initialization for `shapvh_module')
mod_shapvh.c:399: warning: excess elements in scalar initializer
mod_shapvh.c:399: warning: (near initialization for `shapvh_module')
mod_shapvh.c:400: warning: excess elements in scalar initializer
mod_shapvh.c:400: warning: (near initialization for `shapvh_module')
mod_shapvh.c:401: warning: excess elements in scalar initializer
mod_shapvh.c:401: warning: (near initialization for `shapvh_module')
mod_shapvh.c:402: warning: excess elements in scalar initializer
mod_shapvh.c:402: warning: (near initialization for `shapvh_module')
mod_shapvh.c:403: warning: excess elements in scalar initializer
mod_shapvh.c:403: warning: (near initialization for `shapvh_module')
mod_shapvh.c:404: warning: excess elements in scalar initializer
mod_shapvh.c:404: warning: (near initialization for `shapvh_module')
mod_shapvh.c:405: warning: excess elements in scalar initializer
mod_shapvh.c:405: warning: (near initialization for `shapvh_module')
mod_shapvh.c:406: warning: excess elements in scalar initializer
mod_shapvh.c:406: warning: (near initialization for `shapvh_module')
mod_shapvh.c:407: warning: excess elements in scalar initializer
mod_shapvh.c:407: warning: (near initialization for `shapvh_module')
mod_shapvh.c:408: warning: excess elements in scalar initializer
mod_shapvh.c:408: warning: (near initialization for `shapvh_module')
mod_shapvh.c:409: warning: excess elements in scalar initializer
mod_shapvh.c:409: warning: (near initialization for `shapvh_module')
mod_shapvh.c:410: warning: excess elements in scalar initializer
mod_shapvh.c:410: warning: (near initialization for `shapvh_module')
mod_shapvh.c:412: warning: excess elements in scalar initializer
mod_shapvh.c:412: warning: (near initialization for `shapvh_module')
mod_shapvh.c:412: warning: data definition has no type or storage class
apxs:Error: Command failed with rc=65536
.
make: *** [all] Error 1


hat irgendwer es schonmal hinbekomme diese Modul mit Apache2 zum laufen zu bekommen?
flattman
 
Posts: 1
Joined: 27. January 2005 12:34

Postby bcit6k » 06. March 2005 10:38

hallo,

ich habe das selbe problem,nur habe ich ein anderes modul, hast du apache mt apxs2 installiert?
bcit6k
 
Posts: 16
Joined: 21. October 2004 19:54

Postby bcit6k » 23. March 2005 21:44

hi, ich habemir das genauer durchgelesen undhabe bemerkt das man apache 2 und dieses modul nicht nutzen kann. man kann dieses modulnur mit apache 1.3 nutzen
bcit6k
 
Posts: 16
Joined: 21. October 2004 19:54


Return to Apache

Who is online

Users browsing this forum: No registered users and 3 guests