Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 31st May 2011, 18:13
matiasCU matiasCU is offline
Member
 
Join Date: Apr 2007
Posts: 57
Thanks: 5
Thanked 2 Times in 2 Posts
Default Some problems after upgrade OS lenny to squeeze

Hi Guys:
I've had a number of problems when migrating from lenny to squeeze:
1) Apache2:
From the panel I can not make changes to the configuration of the vhost.
I can not restart apache with /etc/init.d/apache2 restart, , restart only by apache2ctl restart
I also encountered errors like the following:
ps aux |grep apache
[apache2] <defunct>

Im set apache2.conf LogLevel debug, but not only reveals the following:
[Tue May 31 12:50:30 2011] [info] mod_unique_id: using ip addr 192.168.0.1
[Tue May 31 12:50:31 2011] [info] Init: Seeding PRNG with 648 bytes of entropy
[Tue May 31 12:50:31 2011] [info] Init: Generating temporary RSA private keys (512/1024 bits)
[Tue May 31 12:50:31 2011] [info] Init: Generating temporary DH parameters (512/1024 bits)
[Tue May 31 12:50:31 2011] [info] Init: Initializing (virtual) servers for SSL
[Tue May 31 12:50:31 2011] [info] mod_ssl/2.2.16 compiled against Server: Apache/2.2.16, Library: OpenSSL/0.9.8o
[Tue May 31 12:50:31 2011] [debug] mod_security2.c(431): SecServerSignature: Changed server signature to "Apache/2.2.0 (Fedora)".
[Tue May 31 12:50:31 2011] [notice] ModSecurity for Apache/2.5.12 (http://www.modsecurity.org/) configured.
[Tue May 31 12:50:31 2011] [notice] Original server signature: Apache/2.2.16 (Debian) mod_ssl/2.2.16 OpenSSL/0.9.8o
[Tue May 31 12:50:31 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Tue May 31 12:50:31 2011] [info] mod_unique_id: using ip addr 192.168.0.1
[Tue May 31 12:50:32 2011] [info] Init: Seeding PRNG with 648 bytes of entropy
[Tue May 31 12:50:32 2011] [info] Init: Generating temporary RSA private keys (512/1024 bits)
[Tue May 31 12:50:32 2011] [info] Init: Generating temporary DH parameters (512/1024 bits)
[Tue May 31 12:50:32 2011] [debug] ssl_scache_shmcb.c(253): shmcb_init allocated 512000 bytes of shared memory
[Tue May 31 12:50:32 2011] [debug] ssl_scache_shmcb.c(272): for 511952 bytes (512000 including header), recommending 32 subcaches, 133 indexes each
[Tue May 31 12:50:32 2011] [debug] ssl_scache_shmcb.c(306): shmcb_init_memory choices follow
[Tue May 31 12:50:32 2011] [debug] ssl_scache_shmcb.c(308): subcache_num = 32
[Tue May 31 12:50:32 2011] [debug] ssl_scache_shmcb.c(310): subcache_size = 15996
[Tue May 31 12:50:32 2011] [debug] ssl_scache_shmcb.c(312): subcache_data_offset = 2144
[Tue May 31 12:50:32 2011] [debug] ssl_scache_shmcb.c(314): subcache_data_size = 13852
[Tue May 31 12:50:32 2011] [debug] ssl_scache_shmcb.c(316): index_num = 133
[Tue May 31 12:50:32 2011] [info] Shared memory session cache initialised
[Tue May 31 12:50:32 2011] [info] Init: Initializing (virtual) servers for SSL
[Tue May 31 12:50:32 2011] [info] mod_ssl/2.2.16 compiled against Server: Apache/2.2.16, Library: OpenSSL/0.9.8o
[Tue May 31 12:50:32 2011] [debug] mod_security2.c(431): SecServerSignature: Changed server signature to "Apache/2.2.0 (Fedora)".
[Tue May 31 12:50:32 2011] [info] mod_fcgid: Process manager 31257 started
[Tue May 31 12:50:32 2011] [notice] Apache/2.2.16 (Debian) mod_ssl/2.2.16 OpenSSL/0.9.8o Apache/2.2.0 (Fedora) mod_fcgid/2.3.6 PHP/5.3.3-7+squeeze1 with Suhosin-Patch mod_ruby/1.2.6 Ruby/1.8.7(2010-08-16) configured -- resuming normal operations
[Tue May 31 12:50:32 2011] [info] Server built: Mar 22 2011 20:56:31
[Tue May 31 12:50:32 2011] [debug] prefork.c(1013): AcceptMutex: sysvsem (default: sysvsem)

More info:
dpkg --get-selections |grep apache
apache2 install
apache2-doc install
apache2-mpm-prefork install
apache2-suexec install
apache2-utils install
apache2.2-bin install
apache2.2-common install
libapache-mod-security install
libapache-ruby1.8 install
libapache2-mod-evasive install
libapache2-mod-fastcgi install
libapache2-mod-fcgid install
libapache2-mod-php5 install
libapache2-mod-ruby install
libapache2-mod-suphp install


dpkg --get-selections |grep php
libapache2-mod-php5 install
libapache2-mod-suphp install
php-auth install
php-compat install
php-image-barcode install
php-mdb2 install
php-mdb2-driver-mysql install
php-pear install
php5 install
php5-cgi install
php5-cli install
php5-common install
php5-curl install
php5-gd install
php5-imagick install
php5-imap install
php5-mcrypt install
php5-memcache install
php5-mysql install
php5-pgsql install
php5-sqlite install
php5-suhosin install
php5-xmlrpc install
phpmyadmin install
suphp-common install

uname -a
Linux server 2.6.32-5-686-bigmem #1 SMP Wed May 18 07:33:52 UTC 2011 i686 GNU/Linux

I also disabled ipv6

ps aux |grep apache
root 29019 0.0 0.0 2780 1324 ? S 12:36 0:00 /bin/sh /etc/rc6.d/K09apache2 stop
root 30550 0.0 0.0 4844 1408 ? S 12:45 0:00 /bin/sh /etc/init.d/apache2 restart
root 31252 0.1 0.2 52752 15728 ? Ss 12:50 0:00 /usr/sbin/apache2 -k restart
www-data 31257 0.0 0.0 25744 5344 ? S 12:50 0:00 /usr/sbin/apache2 -k restart
www-data 31259 0.1 0.2 60292 17344 ? S 12:50 0:00 /usr/sbin/apache2 -k restart
www-data 31260 0.1 0.3 61568 20208 ? S 12:50 0:00 /usr/sbin/apache2 -k restart
www-data 31261 0.0 0.2 60312 18084 ? S 12:50 0:00 /usr/sbin/apache2 -k restart
www-data 31262 0.1 0.3 60664 18980 ? S 12:50 0:00 /usr/sbin/apache2 -k restart
www-data 31263 0.1 0.3 60996 19916 ? S 12:50 0:00 /usr/sbin/apache2 -k restart
www-data 31264 0.0 0.3 60352 18716 ? S 12:50 0:00 /usr/sbin/apache2 -k restart
www-data 31265 0.0 0.2 60880 18132 ? S 12:50 0:00 /usr/sbin/apache2 -k restart
www-data 31266 0.1 0.2 56072 13856 ? S 12:50 0:00 /usr/sbin/apache2 -k restart
www-data 31267 0.2 0.3 61864 20164 ? S 12:50 0:01 /usr/sbin/apache2 -k restart
www-data 31268 0.1 0.3 60920 19404 ? S 12:50 0:00 /usr/sbin/apache2 -k restart
www-data 31269 0.1 0.3 61220 19700 ? S 12:50 0:00 /usr/sbin/apache2 -k restart
www-data 31270 0.0 0.2 60620 17900 ? S 12:50 0:00 /usr/sbin/apache2 -k restart
www-data 31271 0.1 0.3 61548 19880 ? S 12:50 0:00 /usr/sbin/apache2 -k restart
www-data 31272 0.1 0.3 60664 19588 ? S 12:50 0:00 /usr/sbin/apache2 -k restart
www-data 31273 0.1 0.3 60604 18872 ? S 12:50 0:00 /usr/sbin/apache2 -k restart
www-data 31274 0.1 0.3 61768 20316 ? S 12:50 0:00 /usr/sbin/apache2 -k restart
www-data 31275 0.0 0.2 60416 18664 ? S 12:50 0:00 /usr/sbin/apache2 -k restart
www-data 31276 0.0 0.3 60660 19048 ? S 12:50 0:00 /usr/sbin/apache2 -k restart
www-data 31277 0.1 0.3 61784 19920 ? S 12:50 0:00 /usr/sbin/apache2 -k restart
www-data 31278 0.1 0.3 60648 18960 ? S 12:50 0:00 /usr/sbin/apache2 -k restart

Apache2.conf
LockFile ${APACHE_LOCK_DIR}/accept.lock
PidFile ${APACHE_PID_FILE}
Timeout 300
KeepAlive On
MaxKeepAliveRequests 10000
KeepAliveTimeout 4

<IfModule mpm_prefork_module>
StartServers 20
MinSpareServers 10
MaxSpareServers 50
ServerLimit 1024
MaxClients 512
MaxRequestsPerChild 10000
</IfModule>

<IfModule mpm_event_module>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 64
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>

User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}
AccessFileName .htaccess

<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy all
</Files>

DefaultType text/plain
HostnameLookups Off
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel debug
Include mods-enabled/*.load
Include mods-enabled/*.conf
Include httpd.conf
Include ports.conf
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
Include conf.d/
Include sites-enabled/

apache2ctl -t -D DUMP_MODULES

Loaded Modules:
core_module (static)
log_config_module (static)
logio_module (static)
mpm_prefork_module (static)
http_module (static)
so_module (static)
actions_module (shared)
alias_module (shared)
auth_basic_module (shared)
authn_file_module (shared)
authz_default_module (shared)
authz_groupfile_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
cgi_module (shared)
deflate_module (shared)
dir_module (shared)
env_module (shared)
fcgid_module (shared)
filter_module (shared)
include_module (shared)
mime_module (shared)
evasive20_module (shared)
security2_module (shared)
negotiation_module (shared)
php5_module (shared)
reqtimeout_module (shared)
rewrite_module (shared)
ruby_module (shared)
setenvif_module (shared)
ssl_module (shared)
status_module (shared)
suexec_module (shared)
unique_id_module (shared)
Syntax OK


apache2ctl -e debug
[Tue May 31 13:07:50 2011] [debug] mod_so.c(246): loaded module actions_module
[Tue May 31 13:07:50 2011] [debug] mod_so.c(246): loaded module alias_module
[Tue May 31 13:07:50 2011] [debug] mod_so.c(246): loaded module auth_basic_module
[Tue May 31 13:07:50 2011] [debug] mod_so.c(246): loaded module authn_file_module
[Tue May 31 13:07:50 2011] [debug] mod_so.c(246): loaded module authz_default_module
[Tue May 31 13:07:50 2011] [debug] mod_so.c(246): loaded module authz_groupfile_module
[Tue May 31 13:07:50 2011] [debug] mod_so.c(246): loaded module authz_host_module
[Tue May 31 13:07:50 2011] [debug] mod_so.c(246): loaded module authz_user_module
[Tue May 31 13:07:50 2011] [debug] mod_so.c(246): loaded module autoindex_module
[Tue May 31 13:07:50 2011] [debug] mod_so.c(246): loaded module cgi_module
[Tue May 31 13:07:50 2011] [debug] mod_so.c(246): loaded module deflate_module
[Tue May 31 13:07:50 2011] [debug] mod_so.c(246): loaded module dir_module
[Tue May 31 13:07:50 2011] [debug] mod_so.c(246): loaded module env_module
[Tue May 31 13:07:50 2011] [debug] mod_so.c(246): loaded module fcgid_module
[Tue May 31 13:07:50 2011] [debug] mod_so.c(246): loaded module filter_module
[Tue May 31 13:07:50 2011] [debug] mod_so.c(246): loaded module include_module
[Tue May 31 13:07:50 2011] [debug] mod_so.c(246): loaded module mime_module
[Tue May 31 13:07:50 2011] [debug] mod_so.c(246): loaded module evasive20_module
[Tue May 31 13:07:50 2011] [debug] mod_so.c(328): loaded file /usr/lib/libxml2.so.2
[Tue May 31 13:07:50 2011] [debug] mod_so.c(246): loaded module security2_module
[Tue May 31 13:07:50 2011] [debug] mod_so.c(246): loaded module negotiation_module
[Tue May 31 13:07:50 2011] [debug] mod_so.c(246): loaded module php5_module
[Tue May 31 13:07:50 2011] [debug] mod_so.c(246): loaded module reqtimeout_module
[Tue May 31 13:07:50 2011] [debug] mod_so.c(246): loaded module rewrite_module
[Tue May 31 13:07:50 2011] [debug] mod_so.c(246): loaded module ruby_module
[Tue May 31 13:07:50 2011] [debug] mod_so.c(246): loaded module setenvif_module
[Tue May 31 13:07:50 2011] [debug] mod_so.c(246): loaded module ssl_module
[Tue May 31 13:07:50 2011] [debug] mod_so.c(246): loaded module status_module
[Tue May 31 13:07:50 2011] [debug] mod_so.c(246): loaded module suexec_module
[Tue May 31 13:07:50 2011] [debug] mod_so.c(246): loaded module unique_id_module
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Action '-e debug' failed.
The Apache error log may have more information.

someone who can help me with this?
Thanks
Reply With Quote
Sponsored Links
  #2  
Old 31st May 2011, 20:17
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,486
Thanks: 813
Thanked 5,256 Times in 4,121 Posts
Default

There seems to be a hanging apache process that bölocks port 80. Please kill the process with:

kill -9 processid

where you replace "processid" with the ID of the process that you can get with ps aux. Then start apache again.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 31st May 2011, 22:28
matiasCU matiasCU is offline
Member
 
Join Date: Apr 2007
Posts: 57
Thanks: 5
Thanked 2 Times in 2 Posts
Default

Is true in this case I have two process that appear to be blocked:

root 29019 0.0 0.0 2780 1324 ? S 12:36 0:00 /bin/sh /etc/rc6.d/K09apache2 stop
root 30550 0.0 0.0 4844 1408 ? S 12:45 0:00 /bin/sh /etc/init.d/apache2 restart

But the service answers, both the panel and the virtual sites can be look.

root 31252 0.0 0.2 52752 15744 ? Ss 12:50 0:02 /usr/sbin/apache2 -k restart
www-data 31257 0.0 0.0 25744 5344 ? S 12:50 0:00 /usr/sbin/apache2 -k restart
www-data 31259 0.0 0.2 60292 18380 ? S 12:50 0:01 /usr/sbin/apache2 -k restart
www-data 31260 0.0 0.3 61568 20352 ? S 12:50 0:02 /usr/sbin/apache2 -k restart
www-data 31261 0.0 0.3 60312 18768 ? S 12:50 0:01 /usr/sbin/apache2 -k restart
www-data 31262 0.0 0.3 61192 20228 ? S 12:50 0:02 /usr/sbin/apache2 -k restart
www-data 31263 0.0 0.3 60996 20060 ? S 12:50 0:02 /usr/sbin/apache2 -k restart
www-data 31264 0.0 0.3 60352 19256 ? S 12:50 0:01 /usr/sbin/apache2 -k restart
www-data 31265 0.0 0.3 61664 19580 ? S 12:50 0:02 /usr/sbin/apache2 -k restart
www-data 31266 0.0 0.2 56796 14972 ? S 12:50 0:01 /usr/sbin/apache2 -k restart
www-data 31267 0.0 0.3 61864 20624 ? S 12:50 0:02 /usr/sbin/apache2 -k restart
www-data 31268 0.0 0.3 60920 19980 ? S 12:50 0:01 /usr/sbin/apache2 -k restart
www-data 31269 0.0 0.3 61220 20232 ? S 12:50 0:02 /usr/sbin/apache2 -k restart
www-data 31270 0.0 0.3 60620 18804 ? S 12:50 0:01 /usr/sbin/apache2 -k restart
www-data 31271 0.0 0.3 61548 20556 ? S 12:50 0:01 /usr/sbin/apache2 -k restart
www-data 31272 0.0 0.3 60920 19840 ? S 12:50 0:02 /usr/sbin/apache2 -k restart
www-data 31273 0.0 0.3 60604 19464 ? S 12:50 0:02 /usr/sbin/apache2 -k restart
www-data 31274 0.0 0.3 61768 20388 ? S 12:50 0:01 /usr/sbin/apache2 -k restart
www-data 31275 0.0 0.3 60392 19448 ? S 12:50 0:01 /usr/sbin/apache2 -k restart
www-data 31276 0.0 0.3 60660 19196 ? S 12:50 0:01 /usr/sbin/apache2 -k restart
www-data 31277 0.0 0.3 61784 20520 ? S 12:50 0:01 /usr/sbin/apache2 -k restart
www-data 31278 0.0 0.3 60392 19468 ? S 12:50 0:02 /usr/sbin/apache2 -k restart

when I kill the process:
kill -9 29019
Kill -9 30550
And restart apache whit /etc/init.d/apache2 restart
This is the logs:
[Tue May 31 17:08:35 2011] [info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 8 children, there are 9 idle, and 27 total children
[Tue May 31 17:09:24 2011] [info] removed PID file /var/run/apache2.pid (pid=1984)
[Tue May 31 17:09:24 2011] [notice] caught SIGTERM, shutting down
[Tue May 31 17:09:24 2011] [info] mod_fcgid: Process manager 1999 stopped

and does not restart apache... then I must finish executing the restart command whit ctrl +

ps aux |grep apache
root 2135 0.0 0.0 4852 1416 pts/1 S+ 17:09 0:00 /bin/sh /etc/init.d/apache2 restart

kill -9 2135
and apache2ctl start
ps aux |grep apache
root 2664 6.5 0.2 52752 15724 ? Ss 17:16 0:00 /usr/sbin/apache2 -k start
www-data 2667 0.0 0.0 25744 5344 ? S 17:16 0:00 /usr/sbin/apache2 -k start
www-data 2669 1.4 0.1 54000 12284 ? S 17:16 0:00 /usr/sbin/apache2 -k start
www-data 2670 1.7 0.1 53908 12264 ? S 17:16 0:00 /usr/sbin/apache2 -k start
www-data 2671 0.8 0.1 53240 10068 ? S 17:16 0:00 /usr/sbin/apache2 -k start
www-data 2673 1.1 0.1 53776 11760 ? S 17:16 0:00 /usr/sbin/apache2 -k start
www-data 2674 0.8 0.1 53240 10068 ? S 17:16 0:00 /usr/sbin/apache2 -k start
www-data 2677 0.7 0.1 53724 10348 ? S 17:16 0:00 /usr/sbin/apache2 -k start
www-data 2678 0.6 0.1 53240 10068 ? S 17:16 0:00 /usr/sbin/apache2 -k start
www-data 2679 0.8 0.1 53724 10284 ? S 17:16 0:00 /usr/sbin/apache2 -k start
www-data 2680 0.7 0.1 53240 10068 ? S 17:16 0:00 /usr/sbin/apache2 -k start
www-data 2681 0.6 0.1 53724 10292 ? S 17:16 0:00 /usr/sbin/apache2 -k start
www-data 2682 0.7 0.1 53724 10328 ? S 17:16 0:00 /usr/sbin/apache2 -k start
www-data 2683 0.7 0.1 53240 10040 ? S 17:16 0:00 /usr/sbin/apache2 -k start
www-data 2684 0.6 0.1 53240 10040 ? S 17:16 0:00 /usr/sbin/apache2 -k start
www-data 2685 0.7 0.1 53240 10040 ? S 17:16 0:00 /usr/sbin/apache2 -k start
www-data 2686 0.7 0.1 53240 10028 ? S 17:16 0:00 /usr/sbin/apache2 -k start
www-data 2687 0.7 0.1 53240 10040 ? S 17:16 0:00 /usr/sbin/apache2 -k start
www-data 2688 0.8 0.1 53240 10048 ? S 17:16 0:00 /usr/sbin/apache2 -k start
www-data 2689 0.5 0.1 53240 10032 ? S 17:16 0:00 /usr/sbin/apache2 -k start
www-data 2690 0.4 0.1 53240 10036 ? S 17:16 0:00 /usr/sbin/apache2 -k start
www-data 2691 0.4 0.1 53240 10096 ? S 17:16 0:00 /usr/sbin/apache2 -k start

and return to work but still can not save changes to the virtualhost
Reply With Quote
  #4  
Old 31st May 2011, 22:53
matiasCU matiasCU is offline
Member
 
Join Date: Apr 2007
Posts: 57
Thanks: 5
Thanked 2 Times in 2 Posts
 
Default

Every time you make changes such as creating a subdomain ispconfig apache restart it. This is correct right?
I noticed that every time I change the other apache processes no longer work.
The only apache process that remains running is:
root 4443 0.1 0.0 4844 1408 ? S 17:42 0:00 /bin/sh /etc/init.d/apache2 restart

It may be a fault in the daemon /etc/init.d/apache2 or /etc/apache2/envvars?
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian 5 (Lenny) upgrade to Debian 6 (Squeeze) DNS and Mail Not working por Installation/Configuration 8 27th March 2011 20:17
Upgrading Debian Lenny ISPConfig2 server to Debian Squeeze. Hans Installation/Configuration 1 13th February 2011 12:18
Upgrading an ISPConfig3 server from Debian Lenny to Squeeze Hans Installation/Configuration 8 7th February 2011 22:22
Problems on creating Debian (Lenny) mirror tritsako HOWTO-Related Questions 3 24th June 2009 06:12
Howto upgrade from Debian 4 (Etch) to Debian 5 (Lenny) Hans Tips/Tricks/Mods 2 1st December 2008 23:40


All times are GMT +2. The time now is 19:09.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.