Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-03-28, 15:15:22

Author Topic: issue with switchapache  (Read 5285 times)

0 Members and 1 Guest are viewing this topic.

Offline zjsz007

  • Junior Member
  • *
  • Posts: 23
  • Karma: +0/-0
    • View Profile
issue with switchapache
« 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.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: issue with switchapache
« Reply #1 on: 2016-06-27, 15:50:22 »
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'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline zjsz007

  • Junior Member
  • *
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: issue with switchapache
« Reply #2 on: 2016-06-28, 14:28:37 »
Still the same
httpd -v
Server version: Apache/2.4.20 (Red Hat)
Server built:   Jun  6 2016 14:49:52

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: issue with switchapache
« Reply #3 on: 2016-06-28, 14:44:14 »
Inform here 'sh /script/sysinfo' and 'sh /script/fixweb; sh /script/restart-web -y'
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline zjsz007

  • Junior Member
  • *
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: issue with switchapache
« Reply #4 on: 2016-06-29, 03:58:34 »
After running sh /script/cleanup

Quote
[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)

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: issue with switchapache
« Reply #5 on: 2016-06-29, 07:14:01 »
Try 'yum reinstall httpd24u -y; sh /script/fixweb; sh /script/restart-web -y'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline zjsz007

  • Junior Member
  • *
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: issue with switchapache
« Reply #6 on: 2016-06-29, 08:40:57 »
Find it
lighttpd did not remove when I choose httpd
Then /script/switch-apache not work .

Quote
[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

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: issue with switchapache
« Reply #7 on: 2016-06-29, 09:06:15 »
No. In latest version, all webservers already installed. Just need 'yum' action for switch between httpd 2.2 and 2.4.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline zjsz007

  • Junior Member
  • *
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: issue with switchapache
« Reply #8 on: 2016-06-29, 09:07:28 »
Quote
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
 _/                                                                          _/
 _/ 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

Offline zjsz007

  • Junior Member
  • *
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: issue with switchapache
« Reply #9 on: 2016-06-29, 09:13:36 »
in /script/switch-apache line5 and line32
Quote
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



 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo

Page created in 0.061 seconds with 19 queries.

web stats analysis