Results 1 to 3 of 3
Thread: mod_perl, installed or not?
-
10-01-2006, 03:54 AM #1Junior Guru Wannabe
- Join Date
- Jun 2006
- Posts
- 55
mod_perl, installed or not?
root@ls1467 [/vnsyt/liquid]# ls
./ ../ apache_1.3.37/ apache_1.3.37.tar.gz mod_perl-1.0-current.tar.gz mod_perl-1.29/
root@ls1467 [/vnsyt/liquid]# cd mod_perl-1.29/
root@ls1467 [/vnsyt/liquid/mod_perl-1.29]# perl Makefile.PL
Configure mod_perl with ../apache_1.3.37/src ? [y] y
Shall I build httpd in ../apache_1.3.37/src for you? [y] y
Appending mod_perl to src/Configuration
Using config file: /vnsyt/liquid/mod_perl-1.29/src/Configuration
Creating Makefile
+ configured for Linux platform
+ setting C compiler to gcc
+ setting C pre-processor to gcc -E
+ using "tr [a-z] [A-Z]" to uppercase
+ checking for system header files
+ adding selected modules
+ using system Expat
+ checking sizeof various data types
+ doing sanity check on compiler and options
Creating Makefile in support
Creating Makefile in regex
Creating Makefile in os/unix
Creating Makefile in ap
Creating Makefile in main
Creating Makefile in modules/standard
EXTRA_CFLAGS: -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED
PerlDispatchHandler.........disabled (enable with PERL_DISPATCH=1)
PerlChildInitHandler........enabled
PerlChildExitHandler........enabled
PerlPostReadRequestHandler..disabled (enable with PERL_POST_READ_REQUEST=1)
PerlTransHandler............disabled (enable with PERL_TRANS=1)
PerlHeaderParserHandler.....disabled (enable with PERL_HEADER_PARSER=1)
PerlAccessHandler...........disabled (enable with PERL_ACCESS=1)
PerlAuthenHandler...........disabled (enable with PERL_AUTHEN=1)
PerlAuthzHandler............disabled (enable with PERL_AUTHZ=1)
PerlTypeHandler.............disabled (enable with PERL_TYPE=1)
PerlFixupHandler............disabled (enable with PERL_FIXUP=1)
PerlHandler.................enabled
PerlLogHandler..............disabled (enable with PERL_LOG=1)
PerlInitHandler.............disabled (enable with PERL_INIT=1)
PerlCleanupHandler..........disabled (enable with PERL_CLEANUP=1)
PerlRestartHandler..........disabled (enable with PERL_RESTART=1)
PerlStackedHandlers.........disabled (enable with PERL_STACKED_HANDLERS=1)
PerlMethodHandlers..........disabled (enable with PERL_METHOD_HANDLERS=1)
PerlDirectiveHandlers.......disabled (enable with PERL_DIRECTIVE_HANDLERS=1)
PerlTableApi................disabled (enable with PERL_TABLE_API=1)
PerlLogApi..................disabled (enable with PERL_LOG_API=1)
PerlUriApi..................disabled (enable with PERL_URI_API=1)
PerlUtilApi.................disabled (enable with PERL_UTIL_API=1)
PerlFileApi.................disabled (enable with PERL_FILE_API=1)
PerlConnectionApi...........enabled
PerlServerApi...............enabled
PerlSections................disabled (enable with PERL_SECTIONS=1)
PerlSSI.....................disabled (enable with PERL_SSI=1)
Will run tests as User: 'nobody' Group: 'root'
Checking CGI.pm VERSION..........ok
Checking for LWP::UserAgent......ok
Checking for HTML::HeadParser....ok
Writing Makefile for Apache
Writing Makefile for Apache::Connection
Writing Makefile for Apache::Constants
Writing Makefile for Apache::File
Writing Makefile for Apache::Leak
Writing Makefile for Apache::Log
Writing Makefile for Apache::ModuleConfig
Writing Makefile for Apache::PerlRunXS
Writing Makefile for Apache::Server
Writing Makefile for Apache::Symbol
Writing Makefile for Apache::Table
Writing Makefile for Apache::URI
Writing Makefile for Apache::Util
Writing Makefile for mod_perl
root@ls1467 [/vnsyt/liquid/mod_perl-1.29]# service httpd restart
/etc/init.d/httpd restart: httpd restarted
http://perl.apache.org/docs/1.0/guide/install.html
i have a CGI script that identifies whether Mod_perl is available, but it states that its not, even after the install and the restart of httpd service.
any help is much appreciated.
-
10-01-2006, 11:42 AM #2Junior Guru Wannabe
- Join Date
- Jun 2006
- Posts
- 55
anybody experienced?
-
10-01-2006, 03:21 PM #3Web Hosting Master
- Join Date
- Apr 2004
- Location
- San Jose
- Posts
- 902
To see whether it's installed:
Code:[fred@speedy ~/web/pos]$ telnet moore24.org 80 Trying 72.36.167.30... Connected to moore24.org. Escape character is '^]'. HEAD / HTTP/1.0 Host: moore24.org HTTP/1.1 200 OK Date: Sun, 01 Oct 2006 19:16:04 GMT Server: Apache/2.0.59 (FreeBSD) PHP/4.4.4 mod_perl/2.0.2 Perl/v5.8.8 Last-Modified: Wed, 27 Sep 2006 16:30:56 GMT ETag: "3d86bc-1b86-f2885000" Accept-Ranges: bytes Content-Length: 7046 Cache-Control: max-age=10 Expires: Sun, 01 Oct 2006 19:16:14 GMT Connection: close Content-Type: text/html Connection closed by foreign host.
Then you need to configure it so that your Perl CGIs use it:
Code:LoadModule perl_module libexec/apache2/mod_perl.so ... <Location /exec/> SetHandler perl-script PerlResponseHandler ModPerl::RegistryPrefork PerlOptions +ParseHeaders Options +ExecCGI </Location>
Specializing in MySQL and website tuning for high traffic sites. cmwsci.com/