MRatWork Forum by Mustafa Ramadhan
Sawo Project - Kloxo-MR Discussions => Kloxo-MR Bugs and Requests => Topic started by: zjsz007 on 2016-06-27, 14:42:53
-
new fresh install
Switch apache to Apache 2.4
but the /etc/httpd/conf/httpd.conf still ues the old one ,not use httpd24u.conf
please have a check.
-
Try change to nginx and then change back to apache (with 'enable apache 2.4). And or try 'sh /script/fixweb; sh /script/restart-web -y'.
-
Still the same
httpd -v
Server version: Apache/2.4.20 (Red Hat)
Server built: Jun 6 2016 14:49:52
-
Inform here 'sh /script/sysinfo' and 'sh /script/fixweb; sh /script/restart-web -y'
-
After running sh /script/cleanup
[root@demo ~]# sh /script/fixweb; sh /script/restart-web -y
- For help, type '/script/fixweb [--help|-h]'
- No argument supplied. Defaulting to localhost (master) servers
Fixing Web server config
*** Process Time: 00:00:00:03.3223 (dd:hh:mm:ss:xxxxxx) ***
Stopping php-fpm (PHP Used): [ OK ]
Starting php-fpm (PHP Used): [ OK ]
-------------------------------------------------------------------
Stopping spawn-fcgi: [ OK ]
Starting spawn-fcgi: spawn-fcgi: child spawned successfully: PID: 1107
[ OK ]
-------------------------------------------------------------------
Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 13 of /etc/httpd/conf/httpd.conf: Cannot load modules/mod_authn_alias.so into server: /etc/httpd/modules/mod_authn_alias.so: cannot open shared object file: No such file or directory
[FAILED]
-------------------------------------------------------------------
- For help, type '/script/restart-web [--help|-h]'
[root@demo ~]# sh /script/sysinfo
A. Control Panel:
- Kloxo-MR: 7.0.0.b-2016062804
- Web: hiawatha-10.3.0-f.1.mr.el6.x86_64
- PHP: php54s-5.4.45-1.ius.el6 (fpm mode)
B. Plateform:
- OS: CentOS release 6.8 (Final) x86_64
- Hostname: demo.vpscool.com
C. Services:
1. MySQL: MariaDB-server-10.0.26-1.el6.x86_64
2. PHP:
- Installed:
- Branch: php54-cli-5.4.45-1.ius.el6.x86_64
- Used: --PHP Branch--
- Multiple: disable
3. Web Used: apache
- Hiawatha: hiawatha-10.3.0-f.1.mr.el6.x86_64
- Lighttpd: lighttpd-1.4.39-3.el6.x86_64
- Nginx: nginx-1.11.1-1.el6.ngx.x86_64
- Apache: httpd24u-2.4.20-3.ius.el6.x86_64
- PHP Type: php-fpm_event (default)
- Secondary PHP: off
4. WebCache: none
- ATS: --uninstalled--
- Squid: --uninstalled--
- Varnish: --uninstalled--
5. Dns: none
- Bind: --uninstalled--
- DJBDns: --uninstalled--
- NSD: --uninstalled--
- PowerDNS: --uninstalled--
- Yadifa: --uninstalled--
6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
- pop3/imap4: package none-toaster is not installed
- smtp: package none-toaster is not installed
- spam: package none is not installed
D. Memory:
total used free shared buffers cached
Mem: 2048 197 1850 2 0 38
-/+ buffers/cache: 159 1888
Swap: 512 0 512
E. Disk Space:
Filesystem Size Used Avail Use% Mounted on
/dev/simfs 60G 1.9G 59G 4% /
*** Process Time: 00:00:00:09.9107 (dd:hh:mm:ss:xxxxxx) ***
* Note: run 'sh /script/sysinfo -y' if you want run 'fix-service-list' also
(importance after Kloxo-MR update)
-
Try 'yum reinstall httpd24u -y; sh /script/fixweb; sh /script/restart-web -y'.
-
Find it
lighttpd did not remove when I choose httpd
Then /script/switch-apache not work .
[root@demo ~]# sh /script/sysinfo
A. Control Panel:
- Kloxo-MR: 7.0.0.b-2016062804
- Web: hiawatha-10.3.0-f.1.mr.el6.x86_64
- PHP: php54s-5.4.45-1.ius.el6 (fpm mode)
B. Plateform:
- OS: CentOS release 6.8 (Final) x86_64
- Hostname: demo.vpscool.com
C. Services:
1. MySQL: MariaDB-server-10.0.26-1.el6.x86_64
2. PHP:
- Installed:
- Branch: php54-cli-5.4.45-1.ius.el6.x86_64
- Used: --PHP Branch--
- Multiple: disable
3. Web Used: apache
- Hiawatha: hiawatha-10.3.0-f.1.mr.el6.x86_64
- Lighttpd: lighttpd-1.4.39-3.el6.x86_64
- Nginx: nginx-1.11.1-1.el6.ngx.x86_64
- Apache: httpd24u-2.4.20-3.ius.el6.x86_64
- PHP Type: php-fpm_event (default)
- Secondary PHP: off
4. WebCache: none
- ATS: --uninstalled--
- Squid: --uninstalled--
- Varnish: --uninstalled--
5. Dns: none
- Bind: --uninstalled--
- DJBDns: --uninstalled--
- NSD: --uninstalled--
- PowerDNS: --uninstalled--
- Yadifa: --uninstalled--
6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
- pop3/imap4: package none-toaster is not installed
- smtp: package none-toaster is not installed
- spam: package none is not installed
D. Memory:
total used free shared buffers cached
Mem: 2048 364 1683 5 0 128
-/+ buffers/cache: 236 1811
Swap: 512 0 512
E. Disk Space:
Filesystem Size Used Avail Use% Mounted on
/dev/simfs 60G 1.9G 59G 4% /
*** Process Time: 00:00:00:09.9042 (dd:hh:mm:ss:xxxxxx) ***
* Note: run 'sh /script/sysinfo -y' if you want run 'fix-service-list' also
(importance after Kloxo-MR update)
[root@demo ~]# rpm -qa|grep 'httpd-'
lighttpd-fastcgi-1.4.39-3.el6.x86_64
lighttpd-1.4.39-3.el6.x86_64
-
No. In latest version, all webservers already installed. Just need 'yum' action for switch between httpd 2.2 and 2.4.
-
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/ _/
_/ Congratulations. Kloxo-MR has been installed succesfully as 'MASTER' _/
_/ _/
_/ You can connect to the server at: _/
_/ https://104.245.97.36:7777 - secure ssl connection, or _/
_/ http://104.245.97.36:7778 - normal one. _/
_/ _/
_/ The login and password are 'admin' and 'admin' for new install. _/
_/ After Logging in, you will have to change your password to _/
_/ something more secure. _/
_/ _/
_/ - Run 'sh /script/mysql-convert --engine=myisam' to minimize MySQL _/
_/ memory usage. Or, go to 'Webserver Configure' _/
_/ - Run 'sh /script/make-slave' for change to 'SLAVE' _/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
... Wait until finished (restart services) ...
[root@demo tmp]# sh /script/sysinfo
A. Control Panel:
- Kloxo-MR: 7.0.0.b-2016062804
- Web: hiawatha-10.3.0-f.1.mr.el6.x86_64
- PHP: php54s-5.4.45-1.ius.el6 (fpm mode)
B. Plateform:
- OS: CentOS release 6.8 (Final) x86_64
- Hostname: demo.vpscool.com
C. Services:
1. MySQL: MariaDB-server-10.0.26-1.el6.x86_64
2. PHP:
- Installed:
- Branch: php54-cli-5.4.45-1.ius.el6.x86_64
- Used: --PHP Branch--
- Multiple: disable
3. Web Used: apache
- Hiawatha: hiawatha-10.3.0-f.1.mr.el6.x86_64
- Lighttpd: lighttpd-1.4.39-3.el6.x86_64
- Nginx: nginx-1.11.1-1.el6.ngx.x86_64
- Apache: httpd-2.2.31-1.mr.el6.x86_64
- PHP Type: php-fpm_event (default)
- Secondary PHP: off
4. WebCache: none
- ATS: --uninstalled--
- Squid: --uninstalled--
- Varnish: --uninstalled--
5. Dns: bind
- Bind: bind-9.9.7-1.mr.el6.x86_64
- DJBDns: --uninstalled--
- NSD: --uninstalled--
- PowerDNS: --uninstalled--
- Yadifa: --uninstalled--
6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
- pop3/imap4: package courier-toaster is not installed
- smtp: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
- spam: bogofilter-1.2.4-1.el6.x86_64
D. Memory:
total used free shared buffers cached
Mem: 2048 1779 268 3 0 1413
-/+ buffers/cache: 365 1682
Swap: 512 2 509
E. Disk Space:
Filesystem Size Used Avail Use% Mounted on
/dev/simfs 60G 1.9G 59G 4% /
*** Process Time: 00:00:00:08.8573 (dd:hh:mm:ss:xxxxxx) ***
* Note: run 'sh /script/sysinfo -y' if you want run 'fix-service-list' also
(importance after Kloxo-MR update)
[root@demo tmp]# rpm -qa|grep 'httpd-'
httpd-2.2.31-1.mr.el6.x86_64
lighttpd-fastcgi-1.4.39-3.el6.x86_64
httpd-tools-2.2.31-1.mr.el6.x86_64
lighttpd-1.4.39-3.el6.x86_64
-
in /script/switch-apache line5 and line32
if [ "$(rpm -qa|grep 'httpd-')" == "" ] ; then
[root@demo tmp]# sh /script/switch-apache httpd
- httpd already installed
[root@demo tmp]# sh /script/switch-apache httpd24
- httpd24 already installed
[root@demo tmp]# rpm -qa|grep 'httpd-'
lighttpd-fastcgi-1.4.39-3.el6.x86_64
lighttpd-1.4.39-3.el6.x86_64