Re: Compiling mod_perl as a DSO?
After much fighting - 2/3 success :/ Better than nothing :] Server Version: Apache/1.3.12-dev (Unix) mod_perl/1.21_01-dev Server Built: Jan 31 2000 10:55:04 API Version: 19990320:6 Run Mode: standalone User/Group: sneex(69)/69 Hostname/port: insecurity.org:80 Daemons: start: 5 min idle: 5 max idle: 10 max: 150 Max Requests: per child: 0 keep alive: on max per connection: 100 Threads: per child: 0 Excess requests: per child: 0 Timeouts: connection: 300 keep-alive: 15 Server Root: /usr/local/apache Config File: conf/httpd.conf PID File: /usr/local/apache/logs/httpd.pid Scoreboard File: /usr/local/apache/logs/httpd.scoreboard Integrating PHP4 is my next battle - wish me luck... Thanks to all who helped! -Sneex- :] Bill Jones * Systems Programmer * http://www.fccj.org/cgi/mail?sneex (' Running - //\ Perl, Apache, MySQL, PHP3, v_/_ Ultra 10, LinuxPPC, BeOS... From: Bill Jones [EMAIL PROTECTED] Date: Mon, 31 Jan 2000 09:42:16 -0500 To: [EMAIL PROTECTED] Subject: Re: Compiling mod_perl as a DSO? Is it possible to compile/install mod_perl as a DSO, on an existing pre-compiled copy of apache (with mod_so enabled), yet? If so, how? I couldnt find it in the docs... and I'm tired of having to statically compile the module in... so any help would be appreciated. I read on the list at one time that the DSO verson has a memory leak. Don't know if this is still true or not. The static version apparently did not have that problem. If someone knows the answer to this I'd like to know myself as the DSO version is considerably easier to put together with other modules. Plus my studies this weekend indicate that other conflicting issues come up... Better to go hybrid - static mod_perl, and DSO whatever you are able to DSO... Bill Jones * Systems Programmer * http://www.fccj.org/cgi/mail?sneex (' Running - //\ Perl, Apache, MySQL, PHP3, v_/_ Ultra 10, LinuxPPC, BeOS...
Re: Compiling mod_perl as a DSO?
I'm not sure why people are struggling with this so much this week. Here's what to do in a nutshell: download and untar apache download and untar modperl - at the same directory level. cd modperl perl Makefile.PL \ EVERYTHING=1 \ APACHE_PREFIX=/usr/apache \ ADD_MODULE=log_referer,rewrite,proxy,so,vhost_alias,mime_magic,expires \ DYNAMIC=1 USE_APACI=1 make su make install To build DSO libraries just make sure you now use apxs from /usr/apache/bin. On Mon, 31 Jan 2000, Bill Jones wrote: After much fighting - 2/3 success :/ Better than nothing :] Server Version: Apache/1.3.12-dev (Unix) mod_perl/1.21_01-dev Server Built: Jan 31 2000 10:55:04 API Version: 19990320:6 Run Mode: standalone User/Group: sneex(69)/69 Hostname/port: insecurity.org:80 Daemons: start: 5 min idle: 5 max idle: 10 max: 150 Max Requests: per child: 0 keep alive: on max per connection: 100 Threads: per child: 0 Excess requests: per child: 0 Timeouts: connection: 300 keep-alive: 15 Server Root: /usr/local/apache Config File: conf/httpd.conf PID File: /usr/local/apache/logs/httpd.pid Scoreboard File: /usr/local/apache/logs/httpd.scoreboard Integrating PHP4 is my next battle - wish me luck... Thanks to all who helped! -Sneex- :] Bill Jones * Systems Programmer * http://www.fccj.org/cgi/mail?sneex (' Running - //\ Perl, Apache, MySQL, PHP3, v_/_ Ultra 10, LinuxPPC, BeOS... From: Bill Jones [EMAIL PROTECTED] Date: Mon, 31 Jan 2000 09:42:16 -0500 To: [EMAIL PROTECTED] Subject: Re: Compiling mod_perl as a DSO? Is it possible to compile/install mod_perl as a DSO, on an existing pre-compiled copy of apache (with mod_so enabled), yet? If so, how? I couldnt find it in the docs... and I'm tired of having to statically compile the module in... so any help would be appreciated. I read on the list at one time that the DSO verson has a memory leak. Don't know if this is still true or not. The static version apparently did not have that problem. If someone knows the answer to this I'd like to know myself as the DSO version is considerably easier to put together with other modules. Plus my studies this weekend indicate that other conflicting issues come up... Better to go hybrid - static mod_perl, and DSO whatever you are able to DSO... Bill Jones * Systems Programmer * http://www.fccj.org/cgi/mail?sneex (' Running - //\ Perl, Apache, MySQL, PHP3, v_/_ Ultra 10, LinuxPPC, BeOS... -- Matt/ Details: FastNet Software Ltd - XML, Perl, Databases. Tagline: High Performance Web Solutions Web Sites: http://come.to/fastnet http://sergeant.org Available for Consultancy, Contracts and Training.
Re: Compiling mod_perl as a DSO?
Thanks for responding :) Question: ADD_MODULE=log_referer,rewrite,proxy,so,vhost_alias,mime_magic,expires Is this required? Why can't I just use APACI_ARGS to get 'all' ? Bill Jones * Systems Programmer * http://www.fccj.org/cgi/mail?sneex (' Running - //\ Perl, Apache, MySQL, PHP3, v_/_ Ultra 10, LinuxPPC, BeOS... From: Matt Sergeant [EMAIL PROTECTED] Date: Mon, 31 Jan 2000 17:19:55 + To: Bill Jones [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: Compiling mod_perl as a DSO? I'm not sure why people are struggling with this so much this week. Here's what to do in a nutshell: download and untar apache download and untar modperl - at the same directory level. cd modperl perl Makefile.PL \ EVERYTHING=1 \ APACHE_PREFIX=/usr/apache \ ADD_MODULE=log_referer,rewrite,proxy,so,vhost_alias,mime_magic,expires \ DYNAMIC=1 USE_APACI=1 make su make install To build DSO libraries just make sure you now use apxs from /usr/apache/bin.
Re: Compiling mod_perl as a DSO?
Question: ADD_MODULE=log_referer,rewrite,proxy,so,vhost_alias,mime_magic,expires Is this required? Why can't I just use APACI_ARGS to get 'all' ? While I don't build apache very often, I don't see what configure option that corresponds to. You'd have to have: APACI_ARGS='--enable-module="log_referer" --enable-module="rewrite" --enable-module="proxy" ...' for each and every module. There's no configure option "all" that I can see. Am I missing something? Yes. :) Not to worry, it's hidden in the section just before List of Available Modules in the INSTALL file. Re - Use the --enable-module=NAME and --disable-module=NAME options to enable or disable a particular already distributed module from the Apache src/Configuration.tmpl file. The correct module names (no `mod_' prefix!) and defaults (yes=enabled, no=disabled) can be seen when running `./configure --help'. There are two special NAME variants: `all' for enabling or disabling all modules and `most' for enabling or disabling only these modules which are useable on all platforms (currently this is `all' minus the modules `auth_db', `log_agent', `log_referer', `example', `so' and `mmap_static'). For a compact overview of available modules see the following list (remove the `mod_' prefix to get the NAME). HTH, -Sneex- :] Bill Jones * Systems Programmer * http://www.fccj.org/cgi/mail?sneex (' Running - //\ Perl, Apache, MySQL, PHP3, v_/_ Ultra 10, LinuxPPC, BeOS...
Compiling mod_perl as a DSO?
Is it possible to compile/install mod_perl as a DSO, on an existing pre-compiled copy of apache (with mod_so enabled), yet? If so, how? I couldnt find it in the docs... and I'm tired of having to statically compile the module in... so any help would be appreciated. Thanks. Bill -- +---+--+--+ |Bill Bradford | [EMAIL PROTECTED] | [EMAIL PROTECTED]| |http://www.sunhelp.org | http://www.pdp11.org | http://www.mrbill.net| +---+--+--+
Re: Compiling mod_perl as a DSO? (fwd)
On Sun, 30 Jan 2000, Bill Bradford wrote: Is it possible to compile/install mod_perl as a DSO, on an existing pre-compiled copy of apache (with mod_so enabled), yet? If so, how? I couldnt find it in the docs... and I'm tired of having to statically compile the module in... so any help would be appreciated. I read on the list at one time that the DSO verson has a memory leak. Don't know if this is still true or not. The static version apparently did not have that problem. If someone knows the answer to this I'd like to know myself as the DSO version is considerably easier to put together with other modules. Michael
Re: Compiling mod_perl as a DSO? (fwd)
On Sun, Jan 30, 2000 at 10:37:24PM -0800, Michael Robinton wrote: I read on the list at one time that the DSO verson has a memory leak. Don't know if this is still true or not. The static version apparently did not have that problem. If someone knows the answer to this I'd like to know myself as the DSO version is considerably easier to put together with other modules. Exactly - right now, there's no easy way to compile a static apache + mod_perl + php3. Heck, I cant even get apache + mod_perl to work (I need to do --enable-module=so during apache configuration, but the modperl setup/build re-configures apache and leaves it out). I'd be happy with being able to do apache + static mod_perl + DSO'ed PHP3, if anybody can point out how to do apache + static mod_perl + "--enable-module=so". Thanks. Bill -- +---+--+--+ |Bill Bradford | [EMAIL PROTECTED] | [EMAIL PROTECTED]| |http://www.sunhelp.org | http://www.pdp11.org | http://www.mrbill.net| +---+--+--+