Re: Mod_Perl install - no apxs error
Some cut paste from previous messages... For RedHat DSO specific steps in the mod_perl guide see: http://perl.apache.org/guide/install.html#Installing_separate_Apache_and_m No need to recompile Apache. My DSO setup works quite well! **EDIT the "/etc/httpd/conf/httpd.conf" file #uncomment the line below under the section # Dynamic Shared Object (DSO) Support LoadModule perl_modulemodules/libperl.so #uncomment the line below under the section # Extra Modules AddModule mod_perl.c #add the following line ScriptAlias /perl/ "/home/httpd/cgi-bin/" #uncomment the following lines # If the perl module is installed, this will be enabled. IfModule mod_perl.c Alias /perl/ /home/httpd/cgi-bin/ Location /perl SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI /Location /IfModule * I use my setup to test, so I execute both mod_perl standard perl scripts from the same CGI directory... Now, anything that is accessed as http://mysite.com/perl/perlscript.cgi will run as a mod_perl script, and anything accessed as http://mysite.com/cgi-bin/perlscript.cgi will run as a non_mod_perl script. Use this setup only if you want to test scripts as both normal cgi mod_perl scripts, otherwise you'll need to point the "Alias /perl/ /home/httpd/cgi-bin/" line "ScriptAlias /perl/ "/home/httpd/cgi-bin/" line to point to another CGI directory of your choice. Hope this helps! Kenneth Frankel wrote: I have tried almost every variation of installation instructions, and all have failed. I can't find anything in the FAQs so please help me. Situation: Redhat 6.1 Linux 2.2.12, with pre-installed Apache httpd. Removed pre-existing httpd from PATH. Installing new Apache to different path. Source versions: apache_1.3.12, mod_perl-1.22. SNIP
Re: Mod_Perl install - no apxs error -- COMPILED AND WORKING !!!
Finally installed!!! Sources Of Problems: * I was so focused on "no apxs" messages in mod_perl, I didnt question my custom build scripts that built mod_perl and Apache ... for two days! Scripts ran my apache's Configure after building mod_perl, wiping out mod_perl's changes to apache's config. * The mod_perl 'make test' tests fail if DO_PREP is selected. Ditto if you do not select EVERYTHING=1. Another red-herring-like distraction. * I didn't fully get rid of redhat's perl when I moved to 5.6.0, the 5.0.3 lib still existed in /usr/lib, and mod_perl may have been including that. The DSO apache would compile, but dump core when hit with a GET. Thanks *SO* much to everybody for their help, especially those that told me the 'no apxs' messages were ignorable, and suggested I get the bleeding-edge version. That got me to realize that the DO_PREP changes mod_perl were making to apache were being lost when I did my reconfigures, and boom! Compilation! Thanks again, Kenneth