MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Bugs and Requests => Topic started by: chrisf on 2014-07-22, 02:14:51

Title: [BUG - IMPORTANT] script/cleanup httpd and hiawatha
Post by: chrisf on 2014-07-22, 02:14:51
Mustafa,

We removed httpd, all mod_* from our servers.  Hiawatha selected as webserver.  All running well.

sh /script/cleanup

Reinstalls httpd and httpd-tools and mod_perl!!

It removes hiawatha from start scripts and adds httpd.

Only way to fix is yum remove httpd* mod_*, select none for webserver, select hiawatha for webserver.  All running well.

I can not run cleanup script!  PLEASE FIX soon.  Thank you.
Title: Re: [BUG - IMPORTANT] script/cleanup httpd and hiawatha
Post by: chrisf on 2014-07-22, 05:35:47
It appears you are installing mod_perl and httpd, httpd-tools are being installed as dependencies.  There needs to be a check before you install mod_* if httpd is even used!

This happens on every server, newest 6.5.1b.  Why does it remove hiawatha as webserver!  It breaks everything.
Title: Re: [BUG - IMPORTANT] script/cleanup httpd and hiawatha
Post by: Spacedust on 2014-07-22, 19:55:22
Mustafa where are you ?
Title: Re: [BUG - IMPORTANT] script/cleanup httpd and hiawatha
Post by: MRatWork on 2014-07-23, 09:10:53
Kloxo-MR not remove hiawatha. You can see web__lib.php to know uninstallMeTrue and installMeTrue function.
Title: Re: [BUG - IMPORTANT] script/cleanup httpd and hiawatha
Post by: chrisf on 2014-07-23, 15:33:33
Uninstall is wrong word, it shuts it off as webserver.  In panel it still says hiawatha, but /script/restart-all hiawatha as webserver does not start / stop.

THIS IS CONFIRMED ACROSS 5 SERVERS.  If I run /script/cleanup  same happens.

httpd, httpd-tools, mod_perl reinstalled, hiawatha shut off, no start / stop

Since panel still has hiawatha in switch programs, I must select 'none' for webserver, then 'hiawatha'.  Ssh: yum remove httpd* mod_*

This is a problem!
Title: Re: [BUG - IMPORTANT] script/cleanup httpd and hiawatha
Post by: chrisf on 2014-07-25, 17:01:14
please fix this
Title: Re: [BUG - IMPORTANT] script/cleanup httpd and hiawatha
Post by: chrisf on 2014-07-27, 20:17:19
WHY DIDN'T YOU FIX THIS ISSUE!

Just updated kloxoMR 6.5.1b and hiawatha 9.7b - CLEANUP script still installs httpd, httpd-tools, mod_perl AND disables hiawatha!

Code: [Select]
*** Executing Update (cleanup) - END ***

*** Restart services - BEGIN ***
Shutting down MySQL........                                [  OK  ]
Starting MySQL...                                          [  OK  ]
Stopping named: .                                          [  OK  ]
Starting named:                                            [  OK  ]
Stopping qmail-toaster: svscan qmail logging.
Starting qmail-toaster: svscan.
Stopping xinetd:                                           [  OK  ]
Starting xinetd:                                           [  OK  ]
Execute fixlxphpexe for php54s...
Stopping kloxo-phpcgi:                                     [  OK  ]                                                        [  OK  ]
Starting kloxo-phpcgi:                                     [  OK  ]
Stopping kloxo-hiawatha:                                   [  OK  ]
Starting kloxo-hiawatha:                                   [  OK  ]
Stopping php54m-fpm:                                       [  OK  ]
Starting php54m-fpm:                                       [  OK  ]
*** Restart services - END ***

Process Time: 00:00:03:16.196518 (dd:hh:mm:ss:xxxxxx)
[root@cc-server ~]#

SEE --- NO WEBSERVER IS STARTED

Before cleanup I have no httpd* or mod_* installed, AFTER CLEANUP

Code: [Select]
Removed:
  httpd.x86_64 0:2.2.27-1.mr.e6                                   httpd-tools.x86_64 0:2.2.27-1.mr.e6                             mod_perl.x86_64 0:2.0.4-11.el6_5                             
Complete!

STOP INSTALLING mod_perl when no proxy or apache is used!

PLEASE FIX THIS SOON
Title: Re: [BUG - IMPORTANT] script/cleanup httpd and hiawatha
Post by: MRatWork on 2014-07-27, 20:23:23
Some apps need apache and it's make if not select apache/-nginx will be have a trouble.

This issue need re-construct web configs like phpm do (no install other web servers except apache but extract their rpms).
Title: Re: [BUG - IMPORTANT] script/cleanup httpd and hiawatha
Post by: chrisf on 2014-07-27, 20:45:43
mod_perl is not needed if i am not using httpd!  If you stop installing it in cleanup script httpd won't be installed as dependency!

Simple, check if httpd is used, then install mod_perl, if not, don't!

I have php5xm installed, hiawatha only, httpd* REMOVED all running well!

WHY HIAWATHA ALWAYS GET TURNED OFF?
Title: Re: [BUG - IMPORTANT] script/cleanup httpd and hiawatha
Post by: MRatWork on 2014-07-27, 21:32:59
Update your Kloxo-MR.

This issue just related to chkconfig of hiawatha.
Title: Re: [BUG - IMPORTANT] script/cleanup httpd and hiawatha
Post by: chrisf on 2014-07-27, 22:38:37
That made it worse

Code: [Select]
*** Executing Update (cleanup) - END ***

*** Restart services - BEGIN ***
Shutting down MySQL.                                       [  OK  ]
Starting MySQL...                                          [  OK  ]
Stopping named:                                            [  OK  ]
Starting named:                                            [  OK  ]
Stopping httpd:                                            [FAILED]
Starting httpd: httpd: Syntax error on line 63 of /etc/httpd/conf/httpd.conf: Syntax error on line 3 of /etc/httpd/conf.d/rpaf.conf: Cannot load /etc/httpd/modules/mod_rpaf-2.0.so into server: /etc/httpd/modules/mod_rpaf-2.0.so: cannot open shared object file: No such file or directory
                                                           [FAILED]
Stopping Hiawatha web server:                              [  OK  ]
Starting Hiawatha web server:                              [  OK  ]
Stopping qmail-toaster: svscan qmail logging.
qmail-send: no process killed
Starting qmail-toaster: svscan.
Stopping xinetd:                                           [  OK  ]
Starting xinetd:                                           [  OK  ]
Execute fixlxphpexe for php54s...
Stopping kloxo-phpcgi:                                     [  OK  ]                                                        [  OK  ]
Starting kloxo-phpcgi:                                     [  OK  ]
Stopping kloxo-hiawatha:                                   [  OK  ]
Starting kloxo-hiawatha:                                   [  OK  ]
Stopping php54m-fpm:                                       [  OK  ]
Starting php54m-fpm:                                       [  OK  ]
*** Restart services - END ***

Process Time: 00:00:02:12.132697 (dd:hh:mm:ss:xxxxxx)
[root@cc-server ~]#

Now httpd turned on!  I am not using httpd.  mod_perl still installed.
Title: Re: [BUG - IMPORTANT] script/cleanup httpd and hiawatha
Post by: MRatWork on 2014-07-27, 22:46:00
Change apache first and then change back to hiawatha.
Title: Re: [BUG - IMPORTANT] script/cleanup httpd and hiawatha
Post by: chrisf on 2014-07-27, 22:53:59
I know how to fix, just want cleanup to work without switching, removing httpd.  You wrote cleanup like httpd will always be used.  This needs to be fixed.

Please STOP installing mod_perl if no httpd is used
Title: Re: [BUG - IMPORTANT] script/cleanup httpd and hiawatha
Post by: chrisf on 2014-08-01, 16:53:16
Everytime I update it gets worse.  Now httpd is ALWAYS turned on after cleanup.  I do not have apache/httpd selected, webserver is set 'hiawatha'.

mod_perl still being installed!  httpd, httpd-tools installed as dependency.  STOP the installing of mod_* if no apache/httpd used.
Title: Re: [BUG - IMPORTANT] script/cleanup httpd and hiawatha
Post by: MRatWork on 2014-08-02, 08:29:26
There are nothing wrong in vps of this forum (using hiawatha-proxy) or test server (next.potissima.com; using hiawatha) when running cleanup.

So, try change to lighttpd first and then change to hiawatha back. After that, run cleanup.

Install/remove rpm manually make confuse in Kloxo-MR.
Title: Re: [BUG - IMPORTANT] script/cleanup httpd and hiawatha
Post by: chrisf on 2014-08-03, 22:37:50
Yes, switching to lighttpd then to hiawatha worked.  Cleanup went through ok.  Switching to apache and then hiawatha did not work (as you first instructed).

.htaccess files are still created when fixphp or cleanup is ran.  This needs to be fixed as well.