########## COMPILING AND INSTALLING APACHE [root@vpn /]# mkdir /usr/mysrc [root@vpn /]# cd /usr/mysrc [root@vpn /usr/mysrc]# wget http://apache.dnepr.net/httpd/httpd-2.2.3.tar.bz2 [root@vpn /usr/mysrc]# tar -jxf httpd-2.2.3.tar.bz2 [root@vpn /usr/mysrc]# cd httpd-2.2.3 [root@vpn /usr/mysrc/httpd-2.2.3]# ./configure --enable-mods-shared=most --enable-so [root@vpn /usr/mysrc/httpd-2.2.3]# make ########## COMPILING AND INSTALLING PHP [root@vpn /usr/mysrc/httpd-2.2.3]# cd /usr/mysrc [root@vpn /usr/mysrc]# wget http://ua2.php.net/distributions/php-5.2.0.tar.bz2 [root@vpn /usr/mysrc]# tar -jxf php-5.2.0.tar.bz2 [root@vpn /usr/mysrc]# cd php-5.2.0 [root@vpn /usr/mysrc/php-5.2.0]# ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql [root@vpn /usr/mysrc/php-5.2.0]# make [root@vpn /usr/mysrc/php-5.2.0]# make install ######### ADDING apr_dbd_mysql Driver [root@vpn /usr/mysrc/php-5.2.0] cd /usr/mysrc/httpd-2.2.3/srclib/apr-util/dbd [root@vpn /usr/mysrc/httpd-2.2.3/srclib/apr-util/dbd] wget http://apache.webthing.com/svn/apache/apr/apr_dbd_mysql.c [root@vpn /usr/mysrc/httpd-2.2.3/srclib/apr-util/dbd] cd .. [root@vpn /usr/mysrc/httpd-2.2.3/srclib/apr-util] ./buildconf [root@vpn /usr/mysrc/httpd-2.2.3/srclib/apr-util] make [root@vpn /usr/mysrc/httpd-2.2.3]# make install ######################################################## i get errors /usr/local/bin/bash /usr/local/apache2/build/libtool --silent --mode=compile gcc -g -O2 -DHAVE_CONFIG_H -I/usr/mysrc/httpd-2.2.3/srclib/apr-util/include -I/usr/mysrc/httpd-2.2.3/srclib/apr-util/include/private -I/usr/local/apache2/include -I/usr/local/include -o dbd/apr_dbd_mysql.lo -c dbd/apr_dbd_mysql.c && touch dbd/apr_dbd_mysql.lo dbd/apr_dbd_mysql.c:64: error: syntax error before "MYSQL_STMT" dbd/apr_dbd_mysql.c:76: error: syntax error before "MYSQL" dbd/apr_dbd_mysql.c:83: error: syntax error before "MYSQL_RES" dbd/apr_dbd_mysql.c:88: error: syntax error before "MYSQL_ROW" dbd/apr_dbd_mysql.c: In function `dbd_mysql_select': dbd/apr_dbd_mysql.c:107: error: structure has no member named `conn' dbd/apr_dbd_mysql.c:109: error: structure has no member named `conn' dbd/apr_dbd_mysql.c:114: error: structure has no member named `statement' dbd/apr_dbd_mysql.c:116: error: structure has no member named `res' dbd/apr_dbd_mysql.c:116: error: structure has no member named `conn' dbd/apr_dbd_mysql.c:119: error: structure has no member named `res' dbd/apr_dbd_mysql.c:119: error: structure has no member named `conn' dbd/apr_dbd_mysql.c:121: error: structure has no member named `res' dbd/apr_dbd_mysql.c:125: error: structure has no member named `conn' dbd/apr_dbd_mysql.c: In function `dbd_mysql_get_row': dbd/apr_dbd_mysql.c:151: error: syntax error before "r" dbd/apr_dbd_mysql.c:154: error: structure has no member named `statement' dbd/apr_dbd_mysql.c:157: error: structure has no member named `statement' dbd/apr_dbd_mysql.c:157: error: `my_ulonglong' undeclared (first use in this function) dbd/apr_dbd_mysql.c:157: error: (Each undeclared identifier is reported only once dbd/apr_dbd_mysql.c:157: error: for each function it appears in.) dbd/apr_dbd_mysql.c:157: error: syntax error before "rownum" dbd/apr_dbd_mysql.c:160: error: structure has no member named `statement' dbd/apr_dbd_mysql.c:163: error: structure has no member named `statement' dbd/apr_dbd_mysql.c:165: error: `MYSQL_NO_DATA' undeclared (first use in this function) dbd/apr_dbd_mysql.c:176: error: structure has no member named `res' dbd/apr_dbd_mysql.c:176: error: syntax error before "rownum" dbd/apr_dbd_mysql.c:179: error: `r' undeclared (first use in this function) dbd/apr_dbd_mysql.c:179: error: structure has no member named `res' dbd/apr_dbd_mysql.c:188: error: structure has no member named `row' dbd/apr_dbd_mysql.c:192: error: structure has no member named `res' dbd/apr_dbd_mysql.c: In function `dbd_mysql_get_entry': dbd/apr_dbd_mysql.c:226: error: `MYSQL_BIND' undeclared (first use in this function) dbd/apr_dbd_mysql.c:227: error: structure has no member named `statement' dbd/apr_dbd_mysql.c:228: error: structure has no member named `bind' dbd/apr_dbd_mysql.c:229: error: structure has no member named `statement' dbd/apr_dbd_mysql.c:232: error: request for member `is_null' in something not a structure or union dbd/apr_dbd_mysql.c:236: error: request for member `buffer' in something not a structure or union dbd/apr_dbd_mysql.c:240: error: structure has no member named `row' dbd/apr_dbd_mysql.c: In function `dbd_mysql_error': dbd/apr_dbd_mysql.c:247: error: structure has no member named `conn' dbd/apr_dbd_mysql.c:247: warning: return makes pointer from integer without a cast dbd/apr_dbd_mysql.c: In function `dbd_mysql_query': dbd/apr_dbd_mysql.c:255: error: structure has no member named `conn' dbd/apr_dbd_mysql.c:257: error: structure has no member named `conn' dbd/apr_dbd_mysql.c:259: error: structure has no member named `conn' dbd/apr_dbd_mysql.c: In function `dbd_mysql_escape': dbd/apr_dbd_mysql.c:274: error: structure has no member named `conn' dbd/apr_dbd_mysql.c: In function `dbd_mysql_prepare': dbd/apr_dbd_mysql.c:313: error: structure has no member named `stmt' dbd/apr_dbd_mysql.c:313: error: structure has no member named `conn' dbd/apr_dbd_mysql.c:315: error: structure has no member named `stmt' dbd/apr_dbd_mysql.c:316: error: structure has no member named `stmt' dbd/apr_dbd_mysql.c:318: error: structure has no member named `stmt' dbd/apr_dbd_mysql.c:321: error: structure has no member named `stmt' dbd/apr_dbd_mysql.c:327: error: `CR_OUT_OF_MEMORY' undeclared (first use in this function) dbd/apr_dbd_mysql.c: In function `dbd_mysql_pquery': dbd/apr_dbd_mysql.c:333: error: `MYSQL_BIND' undeclared (first use in this function) dbd/apr_dbd_mysql.c:337: error: syntax error before "is_null" dbd/apr_dbd_mysql.c:342: error: structure has no member named `stmt' dbd/apr_dbd_mysql.c:344: error: invalid lvalue in assignment dbd/apr_dbd_mysql.c:347: error: subscripted value is neither array nor pointer dbd/apr_dbd_mysql.c:347: error: `MYSQL_TYPE_VAR_STRING' undeclared (first use in this function) dbd/apr_dbd_mysql.c:348: error: subscripted value is neither array nor pointer dbd/apr_dbd_mysql.c:349: error: subscripted value is neither array nor pointer dbd/apr_dbd_mysql.c:350: error: subscripted value is neither array nor pointer dbd/apr_dbd_mysql.c:350: error: subscripted value is neither array nor pointer dbd/apr_dbd_mysql.c:351: error: subscripted value is neither array nor pointer dbd/apr_dbd_mysql.c:351: error: `is_null' undeclared (first use in this function) dbd/apr_dbd_mysql.c:352: error: subscripted value is neither array nor pointer dbd/apr_dbd_mysql.c:355: error: structure has no member named `stmt' dbd/apr_dbd_mysql.c:358: error: structure has no member named `stmt' dbd/apr_dbd_mysql.c:361: error: structure has no member named `stmt' dbd/apr_dbd_mysql.c:363: error: structure has no member named `stmt' dbd/apr_dbd_mysql.c:365: error: structure has no member named `stmt' dbd/apr_dbd_mysql.c: In function `dbd_mysql_pvquery': dbd/apr_dbd_mysql.c:379: error: `MYSQL_BIND' undeclared (first use in this function) dbd/apr_dbd_mysql.c:384: error: syntax error before "is_null" dbd/apr_dbd_mysql.c:389: error: structure has no member named `stmt' dbd/apr_dbd_mysql.c:391: error: invalid lvalue in assignment dbd/apr_dbd_mysql.c:394: error: subscripted value is neither array nor pointer dbd/apr_dbd_mysql.c:394: error: `MYSQL_TYPE_VAR_STRING' undeclared (first use in this function) dbd/apr_dbd_mysql.c:395: error: subscripted value is neither array nor pointer dbd/apr_dbd_mysql.c:396: error: subscripted value is neither array nor pointer dbd/apr_dbd_mysql.c:397: error: subscripted value is neither array nor pointer dbd/apr_dbd_mysql.c:397: error: subscripted value is neither array nor pointer dbd/apr_dbd_mysql.c:398: error: subscripted value is neither array nor pointer dbd/apr_dbd_mysql.c:398: error: `is_null' undeclared (first use in this function) dbd/apr_dbd_mysql.c:399: error: subscripted value is neither array nor pointer dbd/apr_dbd_mysql.c:402: error: structure has no member named `stmt' dbd/apr_dbd_mysql.c:405: error: structure has no member named `stmt' dbd/apr_dbd_mysql.c:408: error: structure has no member named `stmt' dbd/apr_dbd_mysql.c:410: error: structure has no member named `stmt' dbd/apr_dbd_mysql.c:412: error: structure has no member named `stmt' dbd/apr_dbd_mysql.c: In function `dbd_mysql_pselect': dbd/apr_dbd_mysql.c:431: error: syntax error before "is_null" dbd/apr_dbd_mysql.c:432: error: `my_bool' undeclared (first use in this function) dbd/apr_dbd_mysql.c:432: error: `is_nullr' undeclared (first use in this function) dbd/apr_dbd_mysql.c:438: error: `MYSQL_BIND' undeclared (first use in this function) dbd/apr_dbd_mysql.c:444: error: structure has no member named `stmt' dbd/apr_dbd_mysql.c:445: error: invalid lvalue in assignment dbd/apr_dbd_mysql.c:449: error: subscripted value is neither array nor pointer dbd/apr_dbd_mysql.c:449: error: `MYSQL_TYPE_VAR_STRING' undeclared (first use in this function) dbd/apr_dbd_mysql.c:450: error: subscripted value is neither array nor pointer dbd/apr_dbd_mysql.c:451: error: subscripted value is neither array nor pointer dbd/apr_dbd_mysql.c:452: error: subscripted value is neither array nor pointer dbd/apr_dbd_mysql.c:452: error: subscripted value is neither array nor pointer dbd/apr_dbd_mysql.c:453: error: subscripted value is neither array nor pointer dbd/apr_dbd_mysql.c:453: error: `is_null' undeclared (first use in this function) dbd/apr_dbd_mysql.c:454: error: subscripted value is neither array nor pointer dbd/apr_dbd_mysql.c:457: error: structure has no member named `stmt' dbd/apr_dbd_mysql.c:459: error: structure has no member named `stmt' dbd/apr_dbd_mysql.c:465: error: structure has no member named `statement' dbd/apr_dbd_mysql.c:465: error: structure has no member named `stmt' dbd/apr_dbd_mysql.c:466: error: structure has no member named `res' dbd/apr_dbd_mysql.c:466: error: structure has no member named `stmt' dbd/apr_dbd_mysql.c:467: error: structure has no member named `res' dbd/apr_dbd_mysql.c:469: error: structure has no member named `res' dbd/apr_dbd_mysql.c:470: error: structure has no member named `bind' dbd/apr_dbd_mysql.c:471: error: structure has no member named `bind' dbd/apr_dbd_mysql.c:478: error: structure has no member named `res' dbd/apr_dbd_mysql.c:479: error: structure has no member named `res' dbd/apr_dbd_mysql.c:480: error: structure has no member named `bind' dbd/apr_dbd_mysql.c:481: error: structure has no member named `bind' dbd/apr_dbd_mysql.c:482: error: structure has no member named `bind' dbd/apr_dbd_mysql.c:483: error: structure has no member named `bind' dbd/apr_dbd_mysql.c:484: error: structure has no member named `bind' dbd/apr_dbd_mysql.c:490: error: structure has no member named `stmt' dbd/apr_dbd_mysql.c:490: error: structure has no member named `bind' dbd/apr_dbd_mysql.c:492: error: structure has no member named `stmt' dbd/apr_dbd_mysql.c:497: error: structure has no member named `stmt' dbd/apr_dbd_mysql.c: In function `dbd_mysql_pvselect': dbd/apr_dbd_mysql.c:516: error: syntax error before "is_null" dbd/apr_dbd_mysql.c:517: error: `my_bool' undeclared (first use in this function) dbd/apr_dbd_mysql.c:517: error: `is_nullr' undeclared (first use in this function) dbd/apr_dbd_mysql.c:524: error: `MYSQL_BIND' undeclared (first use in this function) dbd/apr_dbd_mysql.c:530: error: structure has no member named `stmt' dbd/apr_dbd_mysql.c:531: error: invalid lvalue in assignment dbd/apr_dbd_mysql.c:535: error: subscripted value is neither array nor pointer dbd/apr_dbd_mysql.c:535: error: `MYSQL_TYPE_VAR_STRING' undeclared (first use in this function) dbd/apr_dbd_mysql.c:536: error: subscripted value is neither array nor pointer dbd/apr_dbd_mysql.c:537: error: subscripted value is neither array nor pointer dbd/apr_dbd_mysql.c:538: error: subscripted value is neither array nor pointer dbd/apr_dbd_mysql.c:538: error: subscripted value is neither array nor pointer dbd/apr_dbd_mysql.c:539: error: subscripted value is neither array nor pointer dbd/apr_dbd_mysql.c:539: error: `is_null' undeclared (first use in this function) dbd/apr_dbd_mysql.c:540: error: subscripted value is neither array nor pointer dbd/apr_dbd_mysql.c:543: error: structure has no member named `stmt' dbd/apr_dbd_mysql.c:545: error: structure has no member named `stmt' dbd/apr_dbd_mysql.c:551: error: structure has no member named `statement' dbd/apr_dbd_mysql.c:551: error: structure has no member named `stmt' dbd/apr_dbd_mysql.c:552: error: structure has no member named `res' dbd/apr_dbd_mysql.c:552: error: structure has no member named `stmt' dbd/apr_dbd_mysql.c:553: error: structure has no member named `res' dbd/apr_dbd_mysql.c:555: error: structure has no member named `res' dbd/apr_dbd_mysql.c:556: error: structure has no member named `bind' dbd/apr_dbd_mysql.c:557: error: structure has no member named `bind' dbd/apr_dbd_mysql.c:564: error: structure has no member named `res' dbd/apr_dbd_mysql.c:565: error: structure has no member named `res' dbd/apr_dbd_mysql.c:566: error: structure has no member named `bind' dbd/apr_dbd_mysql.c:567: error: structure has no member named `bind' dbd/apr_dbd_mysql.c:568: error: structure has no member named `bind' dbd/apr_dbd_mysql.c:569: error: structure has no member named `bind' dbd/apr_dbd_mysql.c:570: error: structure has no member named `bind' dbd/apr_dbd_mysql.c:576: error: structure has no member named `stmt' dbd/apr_dbd_mysql.c:576: error: structure has no member named `bind' dbd/apr_dbd_mysql.c:578: error: structure has no member named `stmt' dbd/apr_dbd_mysql.c:583: error: structure has no member named `stmt' dbd/apr_dbd_mysql.c: In function `dbd_mysql_end_transaction': dbd/apr_dbd_mysql.c:605: error: structure has no member named `conn' dbd/apr_dbd_mysql.c:608: error: structure has no member named `conn' dbd/apr_dbd_mysql.c:611: error: structure has no member named `conn' dbd/apr_dbd_mysql.c: In function `dbd_mysql_transaction': dbd/apr_dbd_mysql.c:629: error: structure has no member named `conn' dbd/apr_dbd_mysql.c: In function `dbd_mysql_open': dbd/apr_dbd_mysql.c:664: error: `MYSQL' undeclared (first use in this function) dbd/apr_dbd_mysql.c:664: error: `real_conn' undeclared (first use in this function) dbd/apr_dbd_mysql.c:684: error: structure has no member named `conn' dbd/apr_dbd_mysql.c:684: error: structure has no member named `conn' dbd/apr_dbd_mysql.c:685: error: structure has no member named `conn' dbd/apr_dbd_mysql.c:717: error: `CLIENT_FOUND_ROWS' undeclared (first use in this function) dbd/apr_dbd_mysql.c:728: error: structure has no member named `conn' dbd/apr_dbd_mysql.c:734: error: structure has no member named `conn' dbd/apr_dbd_mysql.c: In function `dbd_mysql_close': dbd/apr_dbd_mysql.c:747: error: structure has no member named `conn' dbd/apr_dbd_mysql.c: In function `dbd_mysql_check_conn': dbd/apr_dbd_mysql.c:753: error: structure has no member named `conn' dbd/apr_dbd_mysql.c: In function `dbd_mysql_select_db': dbd/apr_dbd_mysql.c:758: error: structure has no member named `conn' dbd/apr_dbd_mysql.c: In function `dbd_mysql_native': dbd/apr_dbd_mysql.c:762: error: structure has no member named `conn' dbd/apr_dbd_mysql.c: In function `dbd_mysql_num_cols': dbd/apr_dbd_mysql.c:766: error: structure has no member named `statement' dbd/apr_dbd_mysql.c:767: error: structure has no member named `statement' dbd/apr_dbd_mysql.c:770: error: structure has no member named `res' dbd/apr_dbd_mysql.c: In function `dbd_mysql_num_tuples': dbd/apr_dbd_mysql.c:776: error: structure has no member named `statement' dbd/apr_dbd_mysql.c:777: error: structure has no member named `statement' dbd/apr_dbd_mysql.c:780: error: structure has no member named `res' *** Error code 1 Stop in /usr/mysrc/httpd-2.2.3/srclib/apr-util. *** Error code 1 Stop in /usr/mysrc/httpd-2.2.3/srclib/apr-util.