tpokorra / KolabScripts

some scripts useful for Kolab3 and higher, written by TBits.net, including patches already submitted to Kolab Bugzilla
14 stars 13 forks source link

Debian install has trouble with apache #49

Open tpokorra opened 9 years ago

tpokorra commented 9 years ago

eg after setting up roundcube:

[00752] Setting up roundcubemail (1:1.1~dev20150114-0~kolab5) ...
[00754] Enabling site roundcubemail.conf.
[00754] To activate the new configuration, you need to run:
[00754]   service apache2 reload
[00754] Action 'configtest' failed.
[00754] The Apache error log may have more information.
[00754] Your apache2 configuration is broken, so we're not restarting it for you.
[00754] Setting up roundcubemail-plugins-kolab (1:3.2.3-0~kolab2) ...
[00763] Setting up chwala (0.3.0-0~kolab1) ...
[00763] Enabling site chwala.conf.
[00763] To activate the new configuration, you need to run:
[00763]   service apache2 reload
[00763] Reloading web server config: apache2.
[00763] Setting up icedtea-netx-common (1.4-3~deb7u2) ...

and during setup-kolab:

[00842] MySQL roundcube password [EUXOR4dLlIzf-yT]: 
[00909] Restarting web server: apache2 ... waiting ...........................................................httpd (pid 8273) already running
[00909] .
[00909] update-rc.d: using dependency based boot sequencing
[00973] Restarting web server: apache2 ... waiting ...........................................................httpd (pid 8273) already running
[00973] .

apache is not running after that.

tpokorra commented 9 years ago

apachectl configtest shows directly after installing roundcubemail:

Syntax error on line 31 of /etc/apache2/sites-enabled/000-default:
Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.
tpokorra commented 9 years ago

I have fixed the first problem, reloading apache after installation of roundcube, by enabling the rewrite module

tpokorra commented 9 years ago

for the other problem:

the end of aptitude -y install kolab kolab-freebusy looks ok:

Setting up kolab (3.1.9-1) ...
Processing triggers for libapache2-mod-php5 ...
[ ok ] Reloading web server config: apache2.
Processing triggers for sgml-base ...
Processing triggers for ca-certificates ...
Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....

hmm, service apache2 reload seems to work fine, but service apache2 restart hangs...

ps xaf shows directly after installing with aptitude, even before setup-kolab:

 7852 ?        Rs     3:59 /usr/sbin/apache2.prefork -k start
15552 ?        Z      0:00  \_ [apache2.prefork] <defunct>
15553 ?        Z      0:00  \_ [apache2.prefork] <defunct>
15554 ?        Z      0:00  \_ [apache2.prefork] <defunct>
15555 ?        Z      0:00  \_ [apache2.prefork] <defunct>
15556 ?        Z      0:00  \_ [apache2.prefork] <defunct>
15796 ?        S      0:00  \_ /usr/sbin/apache2.prefork -k start
tpokorra commented 9 years ago

ok, I hit https://issues.kolab.org/show_bug.cgi?id=2050

but: need to clear /usr/share/php5/kolab/kolabformat.ini and /usr/share/php5/kolabdummy/kolabdummy.ini, and modify /usr/share/php5/kolab/kolab.ini to contain as https://issues.kolab.org/show_bug.cgi?id=2050#c40 says:

; Kolab libraries
extension=dummy.so
extension=kolabformat.so
extension=kolabobject.so
extension=kolabshared.so
extension=kolabcalendaring.so
extension=kolabicalendar.so
tpokorra commented 9 years ago

solved now in Kolab:Development

tpokorra commented 9 years ago

I see this problem again on Kolab master and Kolab Development, on Debian Jessie

tpokorra commented 9 years ago

during aptitude install kolab (apache2 already installed from Debian stable):

Setting up php-kolab (0.6.git.1432664058) ...

Creating config file /etc/php5/mods-available/kolabdummy.ini with new version

Creating config file /etc/php5/mods-available/kolab.ini with new version
Setting up 389-ds-console-doc (1.2.7-1) ...
Setting up roundcubemail (1:1.1.2-0~kolab1) ...
Enabling module rewrite.
To activate the new configuration, you need to run:
  service apache2 restart
Enabling site roundcubemail.
To activate the new configuration, you need to run:
  service apache2 reload
Setting up roundcubemail-plugins-kolab (1:3.2.7-0~kolab3) ...
Setting up chwala (0.3.1.nightly20150824) ...
Enabling site chwala.
To activate the new configuration, you need to run:
  service apache2 reload
Setting up irony (0.4.0.nightly20150824) ...
Enabling site iRony.
To activate the new configuration, you need to run:
  service apache2 reload
Setting up kolab-freebusy (1.1.0.nightly20150824) ...
Enabling site kolab-freebusy.
To activate the new configuration, you need to run:
  service apache2 reload
[ ok ] Stopping apache2 (via systemctl): apache2.service.
[ ok ] Starting apache2 (via systemctl): apache2.service.

here apache2 was hanging, I had to kill it from another session