mod_perl PHP installation problem
Hi! I've got some problems compiling mod_perl together with PHP. I'm using Apache 1.3.27, mod_perl 1.27 and PHP 4.3.0 on RedHat-Linux (7.2). I'm following http://perl.apache.org/docs/1.0/guide/install.html#mod_perl_and_mod_php The problem arises at the step Build Apache ./configure --prefix=/usr/local/etc/httpd \ --activate-module=src/modules/perl/libperl.a \ --activate-module=src/modules/php4/libphp4.a There is neither libperl.a nor libphp4.a in the corresponding dirs. In modules/perl there is a file called libperl.module In modules/php there are two likely files, libphp4.module and libmodphp4.a I tried to use the *.module files, but make dies with gcc: modules/perl/libperl.a: file not found gcc: modules/php4/libphp4.a: file not found Any ideas what might cause the problem? Or a pointer to the proper FM? -- #!/usr/bin/perl http://domm.zsi.at for(ref bless{},just'another'perl'hacker){s-:+-$-gprint$_.$/}
Re: mod_perl PHP installation problem
Hi! On Mon, Jan 27, 2003 at 02:03:12PM +0100, [EMAIL PROTECTED] wrote: I've got some problems compiling mod_perl together with PHP. So, after reading some docs, I solved them myself. For the archives: ./configure --prefix=/usr/local/etc/httpd \ --activate-module=src/modules/perl/libperl.a \ --activate-module=src/modules/php4/libphp4.a There is neither libperl.a nor libphp4.a in the corresponding dirs. Those files are not expected to be there. They are generated during compilation. I found this tip in some PHP instalation guide. (When I initially tried to install PHP mod_perl, I did some other mistake. I started investigating, noticed the missing files, and thought that this is the problem. But I've been on the wrong track...) I'll send a doc-patch later to the doc-dev list. -- #!/usr/bin/perl http://domm.zsi.at for(ref bless{},just'another'perl'hacker){s-:+-$-gprint$_.$/}
Re: problem with Location
Hi! On Fri, Jan 24, 2003 at 09:08:43AM +, koudjo ametepe wrote: I have a litle problem with the redirection with the famous print Location: ; can someone help me about it The server print internal error 500 The information you provide is a little bit sparse. Please describe what you are trying to do and how you try to do it. You are using mod_perl, are you? Additionally, you might what to RTFM at: http://perl.apache.org -- #!/usr/bin/perl http://domm.zsi.at for(ref bless{},just'another'perl'hacker){s-:+-$-gprint$_.$/}
Re: problem with Location
Hi! On Fri, Jan 24, 2003 at 10:59:50AM +, koudjo ametepe wrote: (posted back to [EMAIL PROTECTED]) I want to send a the visitor to a page according to the script cgi's params .I have a default url . If the params are empty i send him to the default page or to the specific page (contained in the params) he wanted !! If you use POST as the action of the form generating the request, you might want to look at this: http://perl.apache.org/docs/1.0/guide/snippets.html#Redirecting_POST_Requests Or, to remove the posted data, do: $r-method_number(M_GET); $r-method('GET'); $r-headers_in-unset('Content-length'); and then redirect: $r-header_out(Location = $redirect); $r-status(302); return REDIRECT; That's the way I usually do redirects without any problems. But again: Are you using mod_perl?? Because redirecting works slightly different under mod_cgi / CGI.pm And did you look at the questions Lee Goddard asked? -- #!/usr/bin/perl http://domm.zsi.at for(ref bless{},just'another'perl'hacker){s-:+-$-gprint$_.$/}
Re: Memory Usage
Hi! On Mon, Jan 13, 2003 at 10:15:58AM -0500, Chris Faust wrote: Sometimes it will run for days without an issue and other times the machine will die, normally because of out of memory problems. .. Any help or direction would be appreciated. There is quite a lot of documentation about memory issues at http://perl.apache.org/docs/1.0/guide/performance.html or in the mod_perl Site in general. http://perl.apache.org Did you RTFM? -- #!/usr/bin/perl http://domm.zsi.at for(ref bless{},just'another'perl'hacker){s-:+-$-gprint$_.$/}
Re: Apache::AuthCookie and what's required
Hi! On Tue, Jan 07, 2003 at 09:30:32AM -, Gareth Kirwan wrote: Hence I'm thinking that I'll need something using the model of require species hamster ( from Apache::AuthCookie documentation ) However I can't find out the significance of the word species ... hamster is the subroutine in the subclass that will be called and sent $r and $args, but where does the notion of species come from ? it's the other way round: if you say in httpd.conf require species hamster Apache::AuthCookie will call species() in your subclass and passing haster in $args From perldoc Apache::AuthCookie: o authorize() This will step through the require directives you've given for protected documents and make sure the user passes muster. The require valid-user and require user joey-jojo directives are handled for you. You can implement custom directives, such as require species hamster, by defining a method called species() in your subclass, which will then be called. The method will be called as $r-species($r, $args), where $args is everything on your require line after the word hamster. The method should return OK on success and FORBIDDEN on failure. -- #!/usr/bin/perl http://domm.zsi.at for(ref bless{},just'another'perl'hacker){s-:+-$-gprint$_.$/}
Re: Apache::AuthCookie and what's required
Hi! On Tue, Jan 07, 2003 at 11:20:25AM +0100, [EMAIL PROTECTED] wrote: From perldoc Apache::AuthCookie: o authorize() This will step through the require directives you've given for protected documents and make sure the user passes muster. The require valid-user and require user joey-jojo directives are handled for you. You can implement custom directives, such as require species hamster, by defining a method called species() in your subclass, which will then be called. The method will be called as $r-species($r, $args), where $args is everything on your require line after the word hamster. The method should return OK on success and FORBIDDEN on failure. After reading this again, I wonder if there is an error in the doc. Shouldn't this $args), where $args is everything on your require line after the word hamster. The method ^ be $args), where $args is everything on your require line after the word species. The method ^ ? -- #!/usr/bin/perl http://domm.zsi.at for(ref bless{},just'another'perl'hacker){s-:+-$-gprint$_.$/}
Re: CGI programs on Darwin
Hi! On Mon, Dec 30, 2002 at 04:57:32AM -0200, Lucas Barros wrote: I'm having some problems to configure Apache 1.3 to run CGI programs, my computer is a Macintosh running Mac OS X. This list is for discussing mod_perl related issues. You problem seems to be a plain CGI/Apache/OS X problem. Please post your question to an appropriate mailing list. You can find general Perl/CGI mailing lists here: http://lists.perl.org/ Please read this: http://perl.apache.org/maillist/modperl.html and that: http://perl.apache.org/maillist/email-etiquette.html before posting to the modperl mailing list. -- #!/usr/bin/perl http://domm.zsi.at for(ref bless{},just'another'perl'hacker){s-:+-$-gprint$_.$/}
Re: Redirect Problem
Hi! On Don, Nov 28, 2002 at 11:48:19 -0200, Udlei Nattis wrote: i have one problem, when i set one cookie and REDIRECT , cookie dont is set http://perl.apache.org/docs/1.0/guide/snippets.html#Sending_Cookies_in_REDIRECT_Response Please RTFM before posting questions: http://perl.apache.org/maillist/email-etiquette.html -- #!/usr/bin/perl for(ref bless{},just'another'perl'hacker){s-:+-$-gprint$_.$/}
Re: Redirect Problem
Hi! On Don, Nov 28, 2002 at 12:03:26 -0200, Udlei Nattis wrote: but topic Sending Cookies in REDIRECT Response not is valid for modperl 2.0 You did't state that you're question was about mod_perl 2.0. I'd suggest you either use some sort of tag in your Subject line (eg: mp2) or state explicitly in your message that your question is concerning mod_perl 2.0. Cookies dont send in modperl 2.0 when i redirect page I know nothing about 2.0, sorry. -- #!/usr/bin/perl for(ref bless{},just'another'perl'hacker){s-:+-$-gprint$_.$/}
Re: Problems with Apache::Gallery
Hi! On Mit, Nov 20, 2002 at 10:02:06 +0100, Juan Julian Merelo Guervos wrote: Hi, I'm having problems with apache::gallery, mod_perl 1.99 and apache 2.0 (and who hasn't?, you might ask). I'm not sure if Apache::Gallery works with mod_perl 2.x (and mod_perl 1.99 is the development version of mod_perl 2.x) You /do/ know that mod_perl 2.0 is still heavily in development and not recommended for use in a production environment? -- #!/usr/bin/perl for(ref bless{},just'another'perl'hacker){s-:+-$-gprint$_.$/}
Re: Newbie: how to use PerlSetVar
Hi! On Mit, Nov 20, 2002 at 12:48:34 -1000, Beau E. Cox wrote: May I use PerlSetVar/PerlAddVar statements in the httpd.conf file for my own use? Yes. Thats what they are here for. What about namespaces, i.e. how do I avoid stepping on someone else's variable? Prepend some custom string in front of the VarName: PerlSetVar MyApp_Var1 value1 PerlSetVar MyApp_Var2 value2 or, a real-life example out of Apache::AuthDBI http://search.cpan.org/author/ABH/Apache-DBI-0.89/AuthDBI.pm PerlSetVar Auth_DBI_data_source dbi:driver:dsn PerlSetVar Auth_DBI_username db_username PerlSetVar Auth_DBI_password db_password Assume I can. How can I access those variables from my mod_perl scripts? short: $r-dir_config('MyApp_Var1') long: http://perl.apache.org/docs/1.0/guide/config.html#PerlSetVar_and_PerlAddVar I would suggest that you spend some time RTFM either here: http://perl.apache.org and/or read some of those books: http://perl.apache.org/docs/offsite/books.html -- #!/usr/bin/perl for(ref bless{},just'another'perl'hacker){s-:+-$-gprint$_.$/}