[users@httpd] Lost a server ... was working fine
While I have moved many of the server setups to Apache2.4.x with PHP5.4.x, I'd left one with 2.2 and PHP5.3 as I did not have the time to check out all of the mapping display system. This machine has just stopped working and I don't think I updated anything before it happened. SUSE12.1, Apache and PHP from repo ( upgraded machines are all manually installed ) ... OK knew if I started writing then the solution would pop up :) The 'BT' ASDL router had apparently reset itself and lost all of the firewall settings. Now I THOUGH I had rulled that out of the equation when testing by accessing the machine in question via it's internal IP address but obviously not :( lsces.org.uk is back up again with everything working so all I need to work out now is how 10.0.0.1 is getting mapped to lsces.org.uk internally ... would have saved a lot of agro if it had accessed the machine direct as I was expecting it to do. So would 'Redirect' action that or am I looking for some DNS path problem ... localhost is getting 'redirected' as well ... so I think I suspect Apache here? -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk// Firebird - http://www.firebirdsql.org/index.php - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] Potential Bug in mod_file_cache.c
I observed a code clone in the following files. The second and third functions type cast the object after allocation using apr_palloc while the first function does not. I wonder if this is necessary in the function create_server_config. Hope it helps. function : create_server_config @ (file: httpd-2.4.2/modules/cache/mod_file_cache.c, line: 119)~122 a_server_config *sconf = apr_palloc(p, sizeof(*sconf)); sconf-fileht = apr_hash_make(p); return sconf; function : create_setenvif_config @ (file: httpd-2.4.2/modules/metadata/mod_setenvif.c, line: 135)~138 sei_cfg_rec *new = (sei_cfg_rec *) apr_palloc(p, sizeof(sei_cfg_rec)); new-conditionals = apr_array_make(p, 20, sizeof(sei_entry)); return (void *) new; function : lb_hb_create_config @ (file: httpd-2.4.2/modules/proxy/balancers/mod_lbmethod_heartbeat.c, line: 408)~412 lb_hb_ctx_t *ctx = (lb_hb_ctx_t *) apr_palloc(p, sizeof(lb_hb_ctx_t)); ctx-path = ap_server_root_relative(p, logs/hb.dat); return ctx;
[users@httpd] Potential Bug in mpm_common.c
I observed a code clone in the following files. In the function ap_mpm_set_max_mem_free the variable value has to be multiplied by 1024 before exit while ap_mpm_set_thread_stacksize does not perform this operation. I wonder if this is necessary. Hope it helps. function : ap_mpm_set_max_mem_free @ (file: httpd-2.4.2/server/mpm_common.c, line: 376)~388 const char *err = ap_check_cmd_context(cmd, GLOBAL_ONLY); if (err != NULL) { return err; } value = strtol(arg, NULL, 10); if (value 0 || errno == ERANGE) return apr_pstrcat(cmd-pool, Invalid MaxMemFree value: , arg, NULL); ap_max_mem_free = (apr_uint32_t)value * 1024; return NULL; function : ap_mpm_set_thread_stacksize @ (file: httpd-2.4.2/server/mpm_common.c, line: 395)~407 const char *err = ap_check_cmd_context(cmd, GLOBAL_ONLY); if (err != NULL) { return err; } value = strtol(arg, NULL, 10); if (value 0 || errno == ERANGE) return apr_pstrcat(cmd-pool, Invalid ThreadStackSize value: , arg, NULL); ap_thread_stacksize = (apr_size_t)value; return NULL;
Re: [users@httpd] Access rules in an intranet
Hi Anam, The config file has only two blocks: DirectoryMatch and IfModule, organised like this: DirectoryMatch /usr/share/phppgadmin/ ... IfModule mod_php4.c ... /IfModule ... /DirectoryMatch Where exactly should I put the Directory block? Thank you. On 13 June 2012 19:18, Anam Ali Khan anamalik...@yahoo.com wrote: Hi, Insert Directory block in virtual host container (configuration). It seems you have added in that area where Directory option is not allowed. -Anam
RE: [users@httpd] Compiling/Installing httpd 2.4.2 on AIX 6.1 with gcc/g++
Michael, Here is the configure that I used: ./configure --with-apxs2=/usr/local/apache2/bin/apxs \ --with-mysql=/usr/local/mysql \ --with-libxml-dir=/opt/freeware \ --with-zlib-dir=/opt/freeware Thanks. Brian From: Michael Felt [mailto:mamf...@gmail.com] Sent: Wednesday, June 13, 2012 3:58 PM To: users@httpd.apache.org Subject: Re: [users@httpd] Compiling/Installing httpd 2.4.2 on AIX 6.1 with gcc/g++ started with php build. 1st real error is a syntax error in the embedded sqlite. After building an external version of sqlite (3.6.22 was the last one I had downloaded, haven not looked for a new one) I am stopping for the night. Will keep posted. Question: what are the minimum modules (e.g. gd, jpeg, etc. that need to be included. By default most of these are not being found. my approach will be to get php tp compile with minimal arguments to ./configure and then add extra statements as needed. Michael On Wed, Jun 13, 2012 at 7:45 PM, Michael Felt mamf...@gmail.commailto:mamf...@gmail.com wrote: forgot to mention: no have not tried to compile php against 2.4.x yet. Will setup a test machine soon to try. On Wed, Jun 13, 2012 at 7:44 PM, Michael Felt mamf...@gmail.commailto:mamf...@gmail.com wrote: I had tested httpd with xlCv7 and xlCv11 and gcc 4.6.2. The important thing I noticed is that if you compile apr with gcc you must compile httpd with gcc as well, and v.v. Noone noticed when they were bundled I expect. I also have a buildaix.ksh for both apr and apr-util, but I do not know if those have made it into trunk yet. I can send them seperately if interested. With apr and apr-util separate the httpd config and build goes much faster. On Wed, Jun 13, 2012 at 3:16 PM, Brian Gaber brian.ga...@tpsgc-pwgsc.gc.camailto:brian.ga...@tpsgc-pwgsc.gc.ca wrote: Michael, I will try your buildaix.ksh script. I have been using IBM's compiler (xlc, cc_r, cc). On related question, Have you successfully compiled PHP against Apache 2.4.2? I have not. I have tried PHP 5.2, 5.3 and 5.4 and all fail at some point. Against Apache 2.2.x I have not problem compiling PHP. Cheers. Brian From: Michael Felt [mailto:mamf...@gmail.commailto:mamf...@gmail.com] Sent: Tuesday, June 12, 2012 5:17 PM To: users@httpd.apache.orgmailto:users@httpd.apache.org Subject: Re: [users@httpd] Compiling/Installing httpd 2.4.2 on AIX 6.1 with gcc/g++ There are some more recent gcc builds for AIX available via: http://www.perzl.org/aix/index.php?n=Main.Gcc Current versions: * AIX5L V5.1: v4.5.3-2 * AIX5L V5.2: v4.6.3-2 * AIX5L V5.3: v4.6.3-2 * AIX V6.1: v4.6.3-2 * AIX V7.1: v4.6.3-2 RPM's being what they are - there are several packages that need to be installed as mentioned above. And, I would be very interested in hearing what your experiences are if you use the buildaix.ksh script (in ./build/aix directory). The result is (is suppossed to be) an installp installable file in build/aix. Regards, Michael On Wed, May 30, 2012 at 7:57 PM, Eric Covener cove...@gmail.commailto:cove...@gmail.com wrote: On Wed, May 30, 2012 at 1:38 PM, Reimer, George george.rei...@fisglobal.commailto:george.rei...@fisglobal.com wrote: My browser tells me that It Works! but it took a couple days of banging my head against the wall. I encountered the following rough spots and eventually stumbled over their solutions as noted: can you share your gcc experience here in the wiki: http://wiki.apache.org/httpd/AIXPlatform - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.orgmailto:users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.orgmailto:users-h...@httpd.apache.org
Re: [users@httpd] Compiling/Installing httpd 2.4.2 on AIX 6.1 with gcc/g++
Now I need to see if I actually put everything needed in ./build/aix/README for httpd. Starting point for me is: use neither /usr(/local) nor /opt/freeware (as I am trying to be independent of old RPM's). A secondary goal is that the installp packages built are suitable for installation in WPAR (hosting) environments. Next - I started with a clean installation (AIX 5.3 TL7 first, working mainly with AIX 6.1 now) and added things as needed. For zlib - what is needed is to copy zlib.h, and I think there is another zlib related include file as well. -- copy to /usr/include, or /opt/include For apr and apr-util I added build/aix/* files - I'll send copies if you like. An independent tester who finds them sucessful may help get them accepted to apr and apr-util trunks. For the other packages that are needed - I wrote a buildaix package that you can download via http://sourceforge.net/projects/mkinstallp/files/buildaix-1.0.0/ If you add /opt/bin to your PATH the command /opt/bin/buildaix will run the ./configure command with some defaults - basically - prefix is /opt, mandir=/usr/share/man, and confdir is /etc (and another one is /var, I forget it's name atm). I choose /opt as, imho, a better generic prefix for AIX - where /usr/local just seems to create problems. (Idea: a symbolic link of /usr/local - /opt might fix a lot of things that break with ./configure commands that only look at /usr and /usr/local by default - but this is an aside. Summary: drop /usr/local as prefix, stop using old RPM (or any RPM if possible) - instead download and build fresh using buildaix -- /opt, /etc, /var and /usr/share/man as default destinations For httpd: customized version of build/aix/* for apr-util in any case (buildaix could be used for apr, but I have a seperate set of files for that package as well) So, e.g., coreutils I built and installed using buildaix, same for pcre and any other required external package. Thus, with php, I started with buildaix. libxml2 was missing so the basic step was: root@x104:[/data/prj/libxml2-2.7.7]buildaix installp -d . aixtools.libxml2.rte aixtools.libxml2.rte2.7.7.0 USR APPLY SUCCESS Added /opt to list of directories to search in configure to look for xml2-config LINE 21865 And configure completes. I also got an Syntax errors with embedded sqlite so I compiled an external version. However, php continues to try to compile that. Maybe you can help me beyond this point: michael@x054:[/data/prj/php-5.3.13]cat php_configure.ksh #!/usr/bin/ksh set -x ./configure \ --prefix=/opt \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --with-libdir=/opt/lib \ --with-sqlite3=/opt \ build/aix/configure.out Now that configure has finished (there is a makefile) I can use buildaix again (it skips the ./configure step if it sees a Makefile) root@x104:[/data/prj/php-5.3.13]buildaix NAME: php VERSION.RELEASE: 5.3.13.0 /usr/bin/buildaix: using existing Makefile /usr/bin/buildaix: run make distclean to get a standard AIX configure -rw-r--r-- 1 rootsystem 127516 Jun 14 00:44 ./Makefile -rw-r--r-- 1 rootsystem 17721 Jun 14 00:44 config.cache -rw--- 1 michael staff 44892 May 8 11:22 config.guess -rw-r--r-- 1 rootsystem 47234 Jun 14 00:45 config.log -rwxr-xr-x 1 rootsystem177 Jun 14 00:42 config.nice -rwxr-xr-x 1 rootsystem 91276 Jun 14 00:44 config.status -rw--- 1 michael staff 33387 May 8 11:22 config.sub + make build/aix/make.out /data/prj/php-5.3.13/ext/sqlite3/sqlite3.c, line 893.9: 1506-046 (S) Syntax error. /data/prj/php-5.3.13/ext/sqlite3/sqlite3.c, line 894.41: 1506-045 (S) Undeclared identifier i. /data/prj/php-5.3.13/ext/sqlite3/sqlite3.c, line 894.51: 1506-277 (S) Syntax error: possible missing ';' or ','? /data/prj/php-5.3.13/ext/sqlite3/sqlite3.c, line 894.65: 1506-045 (S) Undeclared identifier or. make: 1254-004 The error code from the last command is 1. Stop. I hope this is not too lengthy - but I am anxious/curious about what I am doing wrong - that make continues to try to compile the embedded sqlite when it has an external one. On Thu, Jun 14, 2012 at 3:03 PM, Brian Gaber brian.ga...@tpsgc-pwgsc.gc.cawrote: ** Michael, Here is the configure that I used: ./configure --with-apxs2=/usr/local/apache2/bin/apxs \ --with-mysql=/usr/local/mysql \ --with-libxml-dir=/opt/freeware \ --with-zlib-dir=/opt/freeware Thanks. Brian -- *From:* Michael Felt [mailto:mamf...@gmail.com] *Sent:* Wednesday, June 13, 2012 3:58 PM *To:* users@httpd.apache.org *Subject:* Re: [users@httpd] Compiling/Installing httpd 2.4.2 on AIX 6.1 with gcc/g++ started with php build. 1st real error is a syntax error in the embedded sqlite. After building an external version of sqlite (3.6.22 was the last one I had downloaded, haven not looked for a new one) I am stopping for the night. Will keep posted. Question: what
Re: [users@httpd] ProxyPass question
On Wed, 13 Jun 2012 17:20:59 -0500 Daniel Ruggeri drugg...@primary.net wrote: On 6/13/2012 3:52 PM, Janos Dohanics wrote: Thanks Anne, this was what I needed. However, I got a new problem: I also want to protect the / directory with .htaccess, and that works fine. I assumed that this will also protect /Camera - evidently, not. Is there a way to force authentication to access the proxied resource? You can accomplish this with a Location / block instead of a Directory / block. That may be the only change needed, depending on the rest of your configuration. Thank you both for your help, -- Janos Dohanics - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] Access rules in an intranet
I think you don't need to use DirectoryMatch option in your config file. Replace DirectoryMatch with Directory option and add following code in it. Order deny,allow deny from all allow from 10.215.1.0/Directory -Anam From: Luís de Sousa luis.a.de.so...@gmail.com To: users@httpd.apache.org; Anam Ali Khan anamalik...@yahoo.com Sent: Thursday, 14 June 2012, 12:19 Subject: Re: [users@httpd] Access rules in an intranet Hi Anam, The config file has only two blocks: DirectoryMatch and IfModule, organised like this: DirectoryMatch /usr/share/phppgadmin/ ... IfModule mod_php4.c ... /IfModule ... /DirectoryMatch Where exactly should I put the Directory block? Thank you. On 13 June 2012 19:18, Anam Ali Khan anamalik...@yahoo.com wrote: Hi, Insert Directory block in virtual host container (configuration). It seems you have added in that area where Directory option is not allowed. -Anam
RE: [users@httpd] Compiling/Installing httpd 2.4.2 on AIX 6.1 with gcc/g++
I was getting errors with sqlite also so I added these two configure directives: --without-pdo-sqlite --without-sqlite This got me past the sqlite problem. From: Michael Felt [mailto:mamf...@gmail.com] Sent: Thursday, June 14, 2012 11:52 AM To: users@httpd.apache.org Subject: Re: [users@httpd] Compiling/Installing httpd 2.4.2 on AIX 6.1 with gcc/g++ Now I need to see if I actually put everything needed in ./build/aix/README for httpd. Starting point for me is: use neither /usr(/local) nor /opt/freeware (as I am trying to be independent of old RPM's). A secondary goal is that the installp packages built are suitable for installation in WPAR (hosting) environments. Next - I started with a clean installation (AIX 5.3 TL7 first, working mainly with AIX 6.1 now) and added things as needed. For zlib - what is needed is to copy zlib.h, and I think there is another zlib related include file as well. -- copy to /usr/include, or /opt/include For apr and apr-util I added build/aix/* files - I'll send copies if you like. An independent tester who finds them sucessful may help get them accepted to apr and apr-util trunks. For the other packages that are needed - I wrote a buildaix package that you can download via http://sourceforge.net/projects/mkinstallp/files/buildaix-1.0.0/ If you add /opt/bin to your PATH the command /opt/bin/buildaix will run the ./configure command with some defaults - basically - prefix is /opt, mandir=/usr/share/man, and confdir is /etc (and another one is /var, I forget it's name atm). I choose /opt as, imho, a better generic prefix for AIX - where /usr/local just seems to create problems. (Idea: a symbolic link of /usr/local - /opt might fix a lot of things that break with ./configure commands that only look at /usr and /usr/local by default - but this is an aside. Summary: drop /usr/local as prefix, stop using old RPM (or any RPM if possible) - instead download and build fresh using buildaix -- /opt, /etc, /var and /usr/share/man as default destinations For httpd: customized version of build/aix/* for apr-util in any case (buildaix could be used for apr, but I have a seperate set of files for that package as well) So, e.g., coreutils I built and installed using buildaix, same for pcre and any other required external package. Thus, with php, I started with buildaix. libxml2 was missing so the basic step was: root@x104:[/data/prj/libxml2-2.7.7]buildaix installp -d . aixtools.libxml2.rte aixtools.libxml2.rte2.7.7.0 USR APPLY SUCCESS Added /opt to list of directories to search in configure to look for xml2-config LINE 21865 And configure completes. I also got an Syntax errors with embedded sqlite so I compiled an external version. However, php continues to try to compile that. Maybe you can help me beyond this point: michael@x054:[/data/prj/php-5.3.13]cat php_configure.ksh #!/usr/bin/ksh set -x ./configure \ --prefix=/opt \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --with-libdir=/opt/lib \ --with-sqlite3=/opt \ build/aix/configure.out Now that configure has finished (there is a makefile) I can use buildaix again (it skips the ./configure step if it sees a Makefile) root@x104:[/data/prj/php-5.3.13]buildaix NAME: php VERSION.RELEASE: 5.3.13.0 /usr/bin/buildaix: using existing Makefile /usr/bin/buildaix: run make distclean to get a standard AIX configure -rw-r--r-- 1 rootsystem 127516 Jun 14 00:44 ./Makefile -rw-r--r-- 1 rootsystem 17721 Jun 14 00:44 config.cache -rw--- 1 michael staff 44892 May 8 11:22 config.guess -rw-r--r-- 1 rootsystem 47234 Jun 14 00:45 config.log -rwxr-xr-x 1 rootsystem177 Jun 14 00:42 config.nice -rwxr-xr-x 1 rootsystem 91276 Jun 14 00:44 config.status -rw--- 1 michael staff 33387 May 8 11:22 config.sub + make build/aix/make.out /data/prj/php-5.3.13/ext/sqlite3/sqlite3.c, line 893.9: 1506-046 (S) Syntax error. /data/prj/php-5.3.13/ext/sqlite3/sqlite3.c, line 894.41: 1506-045 (S) Undeclared identifier i. /data/prj/php-5.3.13/ext/sqlite3/sqlite3.c, line 894.51: 1506-277 (S) Syntax error: possible missing ';' or ','? /data/prj/php-5.3.13/ext/sqlite3/sqlite3.c, line 894.65: 1506-045 (S) Undeclared identifier or. make: 1254-004 The error code from the last command is 1. Stop. I hope this is not too lengthy - but I am anxious/curious about what I am doing wrong - that make continues to try to compile the embedded sqlite when it has an external one. On Thu, Jun 14, 2012 at 3:03 PM, Brian Gaber brian.ga...@tpsgc-pwgsc.gc.camailto:brian.ga...@tpsgc-pwgsc.gc.ca wrote: Michael, Here is the configure that I used: ./configure --with-apxs2=/usr/local/apache2/bin/apxs \ --with-mysql=/usr/local/mysql \ --with-libxml-dir=/opt/freeware \ --with-zlib-dir=/opt/freeware Thanks. Brian From: Michael Felt
Re: [users@httpd] Compiling/Installing httpd 2.4.2 on AIX 6.1 with gcc/g++
I have gotten it to compile (5.3.14) - and what I needed to add for the IBM compiler was -qlangval=extc99 so that it would accept c++ like comments (starting with //) The other problem I have, and it is an old one, is that the AIX make (or maybe the ksh) does not execute the $(BUILD_CLI) argument to build sapi/cli/php. After editing Makefile, and making sure that #! . is not the first line of php.sym it completes building. Anyway, now I need to try a default to add everything and see what extras need to be built. And also try 5.4.4 On Thu, Jun 14, 2012 at 7:30 PM, Brian Gaber brian.ga...@tpsgc-pwgsc.gc.cawrote: ** I was getting errors with sqlite also so I added these two configure directives: --without-pdo-sqlite --without-sqlite This got me past the sqlite problem. -- *From:* Michael Felt [mailto:mamf...@gmail.com] *Sent:* Thursday, June 14, 2012 11:52 AM *To:* users@httpd.apache.org *Subject:* Re: [users@httpd] Compiling/Installing httpd 2.4.2 on AIX 6.1 with gcc/g++ Now I need to see if I actually put everything needed in ./build/aix/README for httpd. Starting point for me is: use neither /usr(/local) nor /opt/freeware (as I am trying to be independent of old RPM's). A secondary goal is that the installp packages built are suitable for installation in WPAR (hosting) environments. Next - I started with a clean installation (AIX 5.3 TL7 first, working mainly with AIX 6.1 now) and added things as needed. For zlib - what is needed is to copy zlib.h, and I think there is another zlib related include file as well. -- copy to /usr/include, or /opt/include For apr and apr-util I added build/aix/* files - I'll send copies if you like. An independent tester who finds them sucessful may help get them accepted to apr and apr-util trunks. For the other packages that are needed - I wrote a buildaix package that you can download via http://sourceforge.net/projects/mkinstallp/files/buildaix-1.0.0/ If you add /opt/bin to your PATH the command /opt/bin/buildaix will run the ./configure command with some defaults - basically - prefix is /opt, mandir=/usr/share/man, and confdir is /etc (and another one is /var, I forget it's name atm). I choose /opt as, imho, a better generic prefix for AIX - where /usr/local just seems to create problems. (Idea: a symbolic link of /usr/local - /opt might fix a lot of things that break with ./configure commands that only look at /usr and /usr/local by default - but this is an aside. Summary: drop /usr/local as prefix, stop using old RPM (or any RPM if possible) - instead download and build fresh using buildaix -- /opt, /etc, /var and /usr/share/man as default destinations For httpd: customized version of build/aix/* for apr-util in any case (buildaix could be used for apr, but I have a seperate set of files for that package as well) So, e.g., coreutils I built and installed using buildaix, same for pcre and any other required external package. Thus, with php, I started with buildaix. libxml2 was missing so the basic step was: root@x104:[/data/prj/libxml2-2.7.7]buildaix installp -d . aixtools.libxml2.rte aixtools.libxml2.rte2.7.7.0 USR APPLY SUCCESS Added /opt to list of directories to search in configure to look for xml2-config LINE 21865 And configure completes. I also got an Syntax errors with embedded sqlite so I compiled an external version. However, php continues to try to compile that. Maybe you can help me beyond this point: michael@x054:[/data/prj/php-5.3.13]cat php_configure.ksh #!/usr/bin/ksh set -x ./configure \ --prefix=/opt \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --with-libdir=/opt/lib \ --with-sqlite3=/opt \ build/aix/configure.out Now that configure has finished (there is a makefile) I can use buildaix again (it skips the ./configure step if it sees a Makefile) root@x104:[/data/prj/php-5.3.13]buildaix NAME: php VERSION.RELEASE: 5.3.13.0 /usr/bin/buildaix: using existing Makefile /usr/bin/buildaix: run make distclean to get a standard AIX configure -rw-r--r-- 1 rootsystem 127516 Jun 14 00:44 ./Makefile -rw-r--r-- 1 rootsystem 17721 Jun 14 00:44 config.cache -rw--- 1 michael staff 44892 May 8 11:22 config.guess -rw-r--r-- 1 rootsystem 47234 Jun 14 00:45 config.log -rwxr-xr-x 1 rootsystem177 Jun 14 00:42 config.nice -rwxr-xr-x 1 rootsystem 91276 Jun 14 00:44 config.status -rw--- 1 michael staff 33387 May 8 11:22 config.sub + make build/aix/make.out /data/prj/php-5.3.13/ext/sqlite3/sqlite3.c, line 893.9: 1506-046 (S) Syntax error. /data/prj/php-5.3.13/ext/sqlite3/sqlite3.c, line 894.41: 1506-045 (S) Undeclared identifier i. /data/prj/php-5.3.13/ext/sqlite3/sqlite3.c, line 894.51: 1506-277 (S) Syntax error: possible missing ';' or ','? /data/prj/php-5.3.13/ext/sqlite3/sqlite3.c, line
RE: [users@httpd] Compiling/Installing httpd 2.4.2 on AIX 6.1 with gcc/g++
RE: what I needed to add for the IBM compiler was -qlangval=extc99 so that it would accept c++ like comments You can give xlc this argument to allow C++ comments: -qcpluscmt From: Michael Felt [mailto:mamf...@gmail.com] Sent: Thursday, June 14, 2012 2:38 PM To: users@httpd.apache.org Subject: Re: [users@httpd] Compiling/Installing httpd 2.4.2 on AIX 6.1 with gcc/g++ I have gotten it to compile (5.3.14) - and what I needed to add for the IBM compiler was -qlangval=extc99 so that it would accept c++ like comments (starting with //) The other problem I have, and it is an old one, is that the AIX make (or maybe the ksh) does not execute the $(BUILD_CLI) argument to build sapi/cli/php. After editing Makefile, and making sure that #! . is not the first line of php.sym it completes building. Anyway, now I need to try a default to add everything and see what extras need to be built. And also try 5.4.4 On Thu, Jun 14, 2012 at 7:30 PM, Brian Gaber brian.ga...@tpsgc-pwgsc.gc.camailto:brian.ga...@tpsgc-pwgsc.gc.ca wrote: I was getting errors with sqlite also so I added these two configure directives: --without-pdo-sqlite --without-sqlite This got me past the sqlite problem. From: Michael Felt [mailto:mamf...@gmail.commailto:mamf...@gmail.com] Sent: Thursday, June 14, 2012 11:52 AM To: users@httpd.apache.orgmailto:users@httpd.apache.org Subject: Re: [users@httpd] Compiling/Installing httpd 2.4.2 on AIX 6.1 with gcc/g++ Now I need to see if I actually put everything needed in ./build/aix/README for httpd. Starting point for me is: use neither /usr(/local) nor /opt/freeware (as I am trying to be independent of old RPM's). A secondary goal is that the installp packages built are suitable for installation in WPAR (hosting) environments. Next - I started with a clean installation (AIX 5.3 TL7 first, working mainly with AIX 6.1 now) and added things as needed. For zlib - what is needed is to copy zlib.h, and I think there is another zlib related include file as well. -- copy to /usr/include, or /opt/include For apr and apr-util I added build/aix/* files - I'll send copies if you like. An independent tester who finds them sucessful may help get them accepted to apr and apr-util trunks. For the other packages that are needed - I wrote a buildaix package that you can download via http://sourceforge.net/projects/mkinstallp/files/buildaix-1.0.0/ If you add /opt/bin to your PATH the command /opt/bin/buildaix will run the ./configure command with some defaults - basically - prefix is /opt, mandir=/usr/share/man, and confdir is /etc (and another one is /var, I forget it's name atm). I choose /opt as, imho, a better generic prefix for AIX - where /usr/local just seems to create problems. (Idea: a symbolic link of /usr/local - /opt might fix a lot of things that break with ./configure commands that only look at /usr and /usr/local by default - but this is an aside. Summary: drop /usr/local as prefix, stop using old RPM (or any RPM if possible) - instead download and build fresh using buildaix -- /opt, /etc, /var and /usr/share/man as default destinations For httpd: customized version of build/aix/* for apr-util in any case (buildaix could be used for apr, but I have a seperate set of files for that package as well) So, e.g., coreutils I built and installed using buildaix, same for pcre and any other required external package. Thus, with php, I started with buildaix. libxml2 was missing so the basic step was: root@x104:[/data/prj/libxml2-2.7.7]buildaixmailto:root@x104:[/data/prj/libxml2-2.7.7%5dbuildaix installp -d . aixtools.libxml2.rte aixtools.libxml2.rte2.7.7.0 USR APPLY SUCCESS Added /opt to list of directories to search in configure to look for xml2-config LINE 21865 And configure completes. I also got an Syntax errors with embedded sqlite so I compiled an external version. However, php continues to try to compile that. Maybe you can help me beyond this point: michael@x054:[/data/prj/php-5.3.13]catmailto:michael@x054:[/data/prj/php-5.3.13%5dcat php_configure.ksh #!/usr/bin/ksh set -x ./configure \ --prefix=/opt \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --with-libdir=/opt/lib \ --with-sqlite3=/opt \ build/aix/configure.out Now that configure has finished (there is a makefile) I can use buildaix again (it skips the ./configure step if it sees a Makefile) root@x104:[/data/prj/php-5.3.13]buildaixmailto:root@x104:[/data/prj/php-5.3.13%5dbuildaix NAME: php VERSION.RELEASE: 5.3.13.0 /usr/bin/buildaix: using existing Makefile /usr/bin/buildaix: run make distclean to get a standard AIX configure -rw-r--r-- 1 rootsystem 127516 Jun 14 00:44 ./Makefile -rw-r--r-- 1 rootsystem 17721 Jun 14 00:44 config.cache -rw--- 1 michael staff 44892 May 8 11:22 config.guess -rw-r--r-- 1 rootsystem 47234 Jun 14 00:45
Re: [users@httpd] Access rules in an intranet
Wed, 13 Jun 2012 kirjutas Luís de Sousa luis.a.de.so...@gmail.com: For each access to the phppgadmin folder I'm getting this line at the error log: 158.64.4.14 - - [13/Jun/2012:08:51:21 +0200] GET /phppgadmin/ HTTP/1.1 403 510 - Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:13.0) Gecko/20100101 Firefox/13.0 Your configuration directives allow access from 10.215.xxx.xxx, but when you actually access the site, requests come from 158.64.4.14. Maybe your browser is using a proxy? -- Toomas Aas - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org