Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Feb 122009
 

Set PHP settings in Apache configuration

Answer:

It is possible to set PHP (PHP5) settings in the Apache configuration.

E.g. Turn on register_globals

Add the following lines to the Apache configuration (httpd.conf)

<IfModule mod_php5.c>
    php_value register_globals                1
</IfModule>

Restart Apache to take effect

# apachectl -k graceful

Feb 112009
 

List all the installed Perl modules

Answer:

To list all the installed Perl modules in the system, use the following command.

# perl -MFile::Find=find -MFile::Spec::Functions -Tlw -e 'find { wanted => sub { print canonpath $_ if /\.pm\z/ }, no_chdir => 1 }, @INC'

/usr/local/lib/perl/5.10.0/IO/Tty.pm
/usr/local/lib/perl/5.10.0/IO/Tty/Constant.pm
/usr/local/lib/perl/5.10.0/Params/ValidatePP.pm
/usr/local/lib/perl/5.10.0/Params/Validate.pm
...