Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Welcome to Ubuntu 11.10 (GNU/Linux 3.0.0-12-server x86_64)
- * Documentation: https://help.ubuntu.com/11.10/serverguide/C
- System information as of Mon Nov 14 17:54:29 EST 2011
- System load: 0.59 Processes: 63
- Usage of /: 13.4% of 7.12GB Users logged in: 1
- Memory usage: 7% IP address for eth0: 192.168.0.15
- Swap usage: 0%
- Graph this data and manage this system at https://landscape.canonical.com/
- max@chAdmin:~$ uname -a
- Linux chAdmin 3.0.0-12-server #20-Ubuntu SMP Fri Oct 7 16:36:30 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
- max@chAdmin:~$ sudo apt-get install libapache2-mod-perl2
- [sudo] password for max:
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- The following extra packages will be installed:
- apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libapache2-reload-perl libapr1
- libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libbsd-resource-perl libcap2
- libdevel-symdump-perl libencode-locale-perl libfile-listing-perl libfont-afm-perl libhtml-form-perl
- libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl
- libhttp-daemon-perl libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl
- libio-socket-ssl-perl liblwp-mediatypes-perl liblwp-protocol-https-perl libmailtools-perl
- libnet-http-perl libnet-ssleay-perl libperl5.12 liburi-perl libwww-perl libwww-robotrules-perl
- ssl-cert
- Suggested packages:
- apache2-doc apache2-suexec apache2-suexec-custom libdata-dump-perl libio-socket-inet6-perl
- libcrypt-ssleay-perl libauthen-ntlm-perl openssl-blacklist
- The following NEW packages will be installed:
- apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libapache2-mod-perl2
- libapache2-reload-perl libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap
- libbsd-resource-perl libcap2 libdevel-symdump-perl libencode-locale-perl libfile-listing-perl
- libfont-afm-perl libhtml-form-perl libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl
- libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl libhttp-message-perl
- libhttp-negotiate-perl libio-socket-ssl-perl liblwp-mediatypes-perl liblwp-protocol-https-perl
- libmailtools-perl libnet-http-perl libnet-ssleay-perl libperl5.12 liburi-perl libwww-perl
- libwww-robotrules-perl ssl-cert
- 0 upgraded, 38 newly installed, 0 to remove and 20 not upgraded.
- Need to get 5,600 kB of archives.
- After this operation, 21.0 MB of additional disk space will be used.
- Do you want to continue [Y/n]?
- Get:1 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libcap2 amd64 1:2.21-2 [12.2 kB]
- Get:2 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libapr1 amd64 1.4.5-1 [88.8 kB]
- Get:3 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libaprutil1 amd64 1.3.12+dfsg-2 [74.7 kB]
- Get:4 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libaprutil1-dbd-sqlite3 amd64 1.3.12+dfsg-2 [10.4 kB]
- Get:5 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libaprutil1-ldap amd64 1.3.12+dfsg-2 [8,050 B]
- Get:6 http://us.archive.ubuntu.com/ubuntu/ oneiric-updates/main apache2.2-bin amd64 2.2.20-1ubuntu1.1 [2,735 kB]
- Get:7 http://us.archive.ubuntu.com/ubuntu/ oneiric-updates/main apache2-utils amd64 2.2.20-1ubuntu1.1 [86.0 kB]
- Get:8 http://us.archive.ubuntu.com/ubuntu/ oneiric-updates/main apache2.2-common amd64 2.2.20-1ubuntu1.1 [229 kB]
- Get:9 http://us.archive.ubuntu.com/ubuntu/ oneiric-updates/main apache2-mpm-worker amd64 2.2.20-1ubuntu1.1 [2,292 B]
- Get:10 http://us.archive.ubuntu.com/ubuntu/ oneiric-updates/main apache2 amd64 2.2.20-1ubuntu1.1 [1,478 B]
- Get:11 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libperl5.12 amd64 5.12.4-4 [1,204 B]
- Get:12 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libdevel-symdump-perl all 2.08-4 [13.8 kB]
- Get:13 http://us.archive.ubuntu.com/ubuntu/ oneiric/main liburi-perl all 1.58-1 [89.8 kB]
- Get:14 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libencode-locale-perl all 1.02-1 [11.8 kB]
- Get:15 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libhttp-date-perl all 6.00-1 [10.1 kB]
- Get:16 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libfile-listing-perl all 6.01-1 [8,988 B]
- Get:17 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libhtml-tagset-perl all 3.20-2 [13.5 kB]
- Get:18 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libhtml-parser-perl amd64 3.68-1build1 [101 kB]
- Get:19 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libhtml-tree-perl all 4.2-1 [205 kB]
- Get:20 http://us.archive.ubuntu.com/ubuntu/ oneiric/main liblwp-mediatypes-perl all 6.01-1 [17.5 kB]
- Get:21 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libhttp-message-perl all 6.01-1 [77.6 kB]
- Get:22 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libhttp-cookies-perl all 6.00-2 [23.3 kB]
- Get:23 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libhttp-negotiate-perl all 6.00-2 [13.4 kB]
- Get:24 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libnet-http-perl all 6.01-1 [20.5 kB]
- Get:25 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libnet-ssleay-perl amd64 1.36-3 [205 kB]
- Get:26 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libio-socket-ssl-perl all 1.43-1 [47.2 kB]
- Get:27 http://us.archive.ubuntu.com/ubuntu/ oneiric/main liblwp-protocol-https-perl all 6.02-1 [6,746 B]
- Get:28 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libwww-robotrules-perl all 6.01-1 [14.1 kB]
- Get:29 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libwww-perl all 6.02-1ubuntu1 [155 kB]
- Get:30 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libapache2-mod-perl2 amd64 2.0.5-2ubuntu1 [1,080 kB]
- Get:31 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libapache2-reload-perl all 0.11-2 [16.9 kB]
- Get:32 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libfont-afm-perl all 1.20-1 [14.3 kB]
- Get:33 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libhtml-form-perl all 6.00-1 [22.8 kB]
- Get:34 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libhtml-format-perl all 2.10-1 [40.6 kB]
- Get:35 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libhttp-daemon-perl all 6.00-1 [16.7 kB]
- Get:36 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libmailtools-perl all 2.08-1 [84.0 kB]
- Get:37 http://us.archive.ubuntu.com/ubuntu/ oneiric/main ssl-cert all 1.0.28 [12.2 kB]
- Get:38 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libbsd-resource-perl amd64 1.2904-1build1 [28.7 kB]
- Fetched 5,600 kB in 28s (193 kB/s)
- Extracting templates from packages: 100%
- Preconfiguring packages ...
- Selecting previously deselected package libcap2.
- (Reading database ... 49170 files and directories currently installed.)
- Unpacking libcap2 (from .../libcap2_1%3a2.21-2_amd64.deb) ...
- Selecting previously deselected package libapr1.
- Unpacking libapr1 (from .../libapr1_1.4.5-1_amd64.deb) ...
- Selecting previously deselected package libaprutil1.
- Unpacking libaprutil1 (from .../libaprutil1_1.3.12+dfsg-2_amd64.deb) ...
- Selecting previously deselected package libaprutil1-dbd-sqlite3.
- Unpacking libaprutil1-dbd-sqlite3 (from .../libaprutil1-dbd-sqlite3_1.3.12+dfsg-2_amd64.deb) ...
- Selecting previously deselected package libaprutil1-ldap.
- Unpacking libaprutil1-ldap (from .../libaprutil1-ldap_1.3.12+dfsg-2_amd64.deb) ...
- Selecting previously deselected package apache2.2-bin.
- Unpacking apache2.2-bin (from .../apache2.2-bin_2.2.20-1ubuntu1.1_amd64.deb) ...
- Selecting previously deselected package apache2-utils.
- Unpacking apache2-utils (from .../apache2-utils_2.2.20-1ubuntu1.1_amd64.deb) ...
- Selecting previously deselected package apache2.2-common.
- Unpacking apache2.2-common (from .../apache2.2-common_2.2.20-1ubuntu1.1_amd64.deb) ...
- Selecting previously deselected package apache2-mpm-worker.
- Unpacking apache2-mpm-worker (from .../apache2-mpm-worker_2.2.20-1ubuntu1.1_amd64.deb) ...
- Selecting previously deselected package apache2.
- Unpacking apache2 (from .../apache2_2.2.20-1ubuntu1.1_amd64.deb) ...
- Selecting previously deselected package libperl5.12.
- Unpacking libperl5.12 (from .../libperl5.12_5.12.4-4_amd64.deb) ...
- Selecting previously deselected package libdevel-symdump-perl.
- Unpacking libdevel-symdump-perl (from .../libdevel-symdump-perl_2.08-4_all.deb) ...
- Selecting previously deselected package liburi-perl.
- Unpacking liburi-perl (from .../liburi-perl_1.58-1_all.deb) ...
- Selecting previously deselected package libencode-locale-perl.
- Unpacking libencode-locale-perl (from .../libencode-locale-perl_1.02-1_all.deb) ...
- Selecting previously deselected package libhttp-date-perl.
- Unpacking libhttp-date-perl (from .../libhttp-date-perl_6.00-1_all.deb) ...
- Selecting previously deselected package libfile-listing-perl.
- Unpacking libfile-listing-perl (from .../libfile-listing-perl_6.01-1_all.deb) ...
- Selecting previously deselected package libhtml-tagset-perl.
- Unpacking libhtml-tagset-perl (from .../libhtml-tagset-perl_3.20-2_all.deb) ...
- Selecting previously deselected package libhtml-parser-perl.
- Unpacking libhtml-parser-perl (from .../libhtml-parser-perl_3.68-1build1_amd64.deb) ...
- Selecting previously deselected package libhtml-tree-perl.
- Unpacking libhtml-tree-perl (from .../libhtml-tree-perl_4.2-1_all.deb) ...
- Selecting previously deselected package liblwp-mediatypes-perl.
- Unpacking liblwp-mediatypes-perl (from .../liblwp-mediatypes-perl_6.01-1_all.deb) ...
- Selecting previously deselected package libhttp-message-perl.
- Unpacking libhttp-message-perl (from .../libhttp-message-perl_6.01-1_all.deb) ...
- Selecting previously deselected package libhttp-cookies-perl.
- Unpacking libhttp-cookies-perl (from .../libhttp-cookies-perl_6.00-2_all.deb) ...
- Selecting previously deselected package libhttp-negotiate-perl.
- Unpacking libhttp-negotiate-perl (from .../libhttp-negotiate-perl_6.00-2_all.deb) ...
- Selecting previously deselected package libnet-http-perl.
- Unpacking libnet-http-perl (from .../libnet-http-perl_6.01-1_all.deb) ...
- Selecting previously deselected package libnet-ssleay-perl.
- Unpacking libnet-ssleay-perl (from .../libnet-ssleay-perl_1.36-3_amd64.deb) ...
- Selecting previously deselected package libio-socket-ssl-perl.
- Unpacking libio-socket-ssl-perl (from .../libio-socket-ssl-perl_1.43-1_all.deb) ...
- Selecting previously deselected package liblwp-protocol-https-perl.
- Unpacking liblwp-protocol-https-perl (from .../liblwp-protocol-https-perl_6.02-1_all.deb) ...
- Selecting previously deselected package libwww-robotrules-perl.
- Unpacking libwww-robotrules-perl (from .../libwww-robotrules-perl_6.01-1_all.deb) ...
- Selecting previously deselected package libwww-perl.
- Unpacking libwww-perl (from .../libwww-perl_6.02-1ubuntu1_all.deb) ...
- Selecting previously deselected package libapache2-mod-perl2.
- Unpacking libapache2-mod-perl2 (from .../libapache2-mod-perl2_2.0.5-2ubuntu1_amd64.deb) ...
- Selecting previously deselected package libapache2-reload-perl.
- Unpacking libapache2-reload-perl (from .../libapache2-reload-perl_0.11-2_all.deb) ...
- Selecting previously deselected package libfont-afm-perl.
- Unpacking libfont-afm-perl (from .../libfont-afm-perl_1.20-1_all.deb) ...
- Selecting previously deselected package libhtml-form-perl.
- Unpacking libhtml-form-perl (from .../libhtml-form-perl_6.00-1_all.deb) ...
- Selecting previously deselected package libhtml-format-perl.
- Unpacking libhtml-format-perl (from .../libhtml-format-perl_2.10-1_all.deb) ...
- Selecting previously deselected package libhttp-daemon-perl.
- Unpacking libhttp-daemon-perl (from .../libhttp-daemon-perl_6.00-1_all.deb) ...
- Selecting previously deselected package libmailtools-perl.
- Unpacking libmailtools-perl (from .../libmailtools-perl_2.08-1_all.deb) ...
- Selecting previously deselected package ssl-cert.
- Unpacking ssl-cert (from .../ssl-cert_1.0.28_all.deb) ...
- Selecting previously deselected package libbsd-resource-perl.
- Unpacking libbsd-resource-perl (from .../libbsd-resource-perl_1.2904-1build1_amd64.deb) ...
- Processing triggers for man-db ...
- Processing triggers for ufw ...
- Processing triggers for ureadahead ...
- ureadahead will be reprofiled on next reboot
- Setting up libcap2 (1:2.21-2) ...
- Setting up libapr1 (1.4.5-1) ...
- Setting up libaprutil1 (1.3.12+dfsg-2) ...
- Setting up libaprutil1-dbd-sqlite3 (1.3.12+dfsg-2) ...
- Setting up libaprutil1-ldap (1.3.12+dfsg-2) ...
- Setting up apache2.2-bin (2.2.20-1ubuntu1.1) ...
- Setting up apache2-utils (2.2.20-1ubuntu1.1) ...
- Setting up apache2.2-common (2.2.20-1ubuntu1.1) ...
- Enabling site default.
- Enabling module alias.
- Enabling module autoindex.
- Enabling module dir.
- Enabling module env.
- Enabling module mime.
- Enabling module negotiation.
- Enabling module setenvif.
- Enabling module status.
- Enabling module auth_basic.
- Enabling module deflate.
- Enabling module authz_default.
- Enabling module authz_user.
- Enabling module authz_groupfile.
- Enabling module authn_file.
- Enabling module authz_host.
- Enabling module reqtimeout.
- Setting up apache2-mpm-worker (2.2.20-1ubuntu1.1) ...
- * Starting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
- [ OK ]
- Setting up apache2 (2.2.20-1ubuntu1.1) ...
- Setting up libperl5.12 (5.12.4-4) ...
- Setting up libdevel-symdump-perl (2.08-4) ...
- Setting up liburi-perl (1.58-1) ...
- Setting up libencode-locale-perl (1.02-1) ...
- Setting up libhttp-date-perl (6.00-1) ...
- Setting up libfile-listing-perl (6.01-1) ...
- Setting up libhtml-tagset-perl (3.20-2) ...
- Setting up libhtml-parser-perl (3.68-1build1) ...
- Setting up libhtml-tree-perl (4.2-1) ...
- Setting up liblwp-mediatypes-perl (6.01-1) ...
- Setting up libhttp-message-perl (6.01-1) ...
- Setting up libhttp-cookies-perl (6.00-2) ...
- Setting up libhttp-negotiate-perl (6.00-2) ...
- Setting up libnet-http-perl (6.01-1) ...
- Setting up libnet-ssleay-perl (1.36-3) ...
- Setting up libio-socket-ssl-perl (1.43-1) ...
- Setting up libwww-robotrules-perl (6.01-1) ...
- Setting up libfont-afm-perl (1.20-1) ...
- Setting up libhtml-form-perl (6.00-1) ...
- Setting up libhtml-format-perl (2.10-1) ...
- Setting up libhttp-daemon-perl (6.00-1) ...
- Setting up libmailtools-perl (2.08-1) ...
- Setting up ssl-cert (1.0.28) ...
- Setting up libbsd-resource-perl (1.2904-1build1) ...
- Setting up liblwp-protocol-https-perl (6.02-1) ...
- Setting up libwww-perl (6.02-1ubuntu1) ...
- Setting up libapache2-mod-perl2 (2.0.5-2ubuntu1) ...
- Enabling module perl.
- To activate the new configuration, you need to run:
- service apache2 restart
- Setting up libapache2-reload-perl (0.11-2) ...
- Processing triggers for libc-bin ...
- ldconfig deferred processing now taking place
- max@chAdmin:~$ sudo sh -c 'echo "MaxRequestsPerChild 10" > /etc/apache2/httpd.conf'
- max@chAdmin:~$ sudo vi /etc/apache2/sites-available/default.patch
- max@chAdmin:~$ cat /etc/apache2/sites-available/default.patch
- --- /etc/apache2/sites-available/default
- +++ /etc/apache2/sites-available/default.mod_perl
- @@ -19,6 +19,9 @@
- Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
- Order allow,deny
- Allow from all
- +
- + SetHandler perl-script
- + PerlResponseHandler ModPerl::RegistryBB
- </Directory>
- ErrorLog ${APACHE_LOG_DIR}/error.log
- max@chAdmin:~$ sudo patch -p0 < /etc/apache2/sites-available/default.patch
- patching file /etc/apache2/sites-available/default
- max@chAdmin:~$ cat /etc/apache2/sites-available/default
- <VirtualHost *:80>
- ServerAdmin webmaster@localhost
- DocumentRoot /var/www
- <Directory />
- Options FollowSymLinks
- AllowOverride None
- </Directory>
- <Directory /var/www/>
- Options Indexes FollowSymLinks MultiViews
- AllowOverride None
- Order allow,deny
- allow from all
- </Directory>
- ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
- <Directory "/usr/lib/cgi-bin">
- AllowOverride None
- Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
- Order allow,deny
- Allow from all
- SetHandler perl-script
- PerlResponseHandler ModPerl::RegistryBB
- </Directory>
- ErrorLog ${APACHE_LOG_DIR}/error.log
- # Possible values include: debug, info, notice, warn, error, crit,
- # alert, emerg.
- LogLevel warn
- CustomLog ${APACHE_LOG_DIR}/access.log combined
- Alias /doc/ "/usr/share/doc/"
- <Directory "/usr/share/doc/">
- Options Indexes MultiViews FollowSymLinks
- AllowOverride None
- Order deny,allow
- Deny from all
- Allow from 127.0.0.0/255.0.0.0 ::1/128
- </Directory>
- </VirtualHost>
- max@chAdmin:~$ sudo /etc/init.d/apache2 restart
- * Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
- ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
- [ OK ]
- max@chAdmin:~$ ab -n 1000 -c 25 'http://localhost/cgi-bin/'
- This is ApacheBench, Version 2.3 <$Revision: 655654 $>
- Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
- Licensed to The Apache Software Foundation, http://www.apache.org/
- Benchmarking localhost (be patient)
- Completed 100 requests
- Completed 200 requests
- Completed 300 requests
- Completed 400 requests
- Completed 500 requests
- Completed 600 requests
- Completed 700 requests
- Completed 800 requests
- Completed 900 requests
- apr_poll: The timeout specified has expired (70007)
- Total of 992 requests completed
- max@chAdmin:~$ ps -C apache2 -o pid:8,wchan:10,rss:10,size:10,user,cmd
- PID WCHAN RSS SIZE USER CMD
- 12212 poll_sched 6520 4392 root /usr/sbin/apache2 -k start
- 12215 wait_for_p 4364 4392 www-data /usr/sbin/apache2 -k start
- 12707 futex_wait 14948 265936 www-data /usr/sbin/apache2 -k start
- 13936 pipe_wait 13524 428224 www-data /usr/sbin/apache2 -k start
- 13937 pipe_wait 5020 225692 www-data /usr/sbin/apache2 -k start
- 13939 pipe_wait 9328 293640 www-data /usr/sbin/apache2 -k start
- max@chAdmin:~$ sudo strace -p 12707
- Process 12707 attached - interrupt to quit
- futex(0x7fef53f8c9d0, FUTEX_WAIT, 12715, NULL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement