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, 23:50:57

Author Topic: Some troubles with switch-apache script  (Read 12981 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Some troubles with switch-apache script
« on: 2015-06-27, 14:35:47 »
My current test config:

Quote
A. Kloxo-MR: 7.0.0.b-2015062501
   - Web: hiawatha-9.13.0-f.6.mr.el6.x86_64
   - PHP: php54s-5.4.41-1.ius.el6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.6 (Final) x86_64
   - Hostname: c44-49.icpnet.pl
C. Services:
   1. MySQL: MariaDB-server-10.0.20-1.el6.x86_64
   2. PHP:
      - Branch: php-cli-5.4.32-1.el6.remi.x86_64
      - Multiple:
        * php52m-5.2.17-102.mr.el6
        * php53m-5.3.29-1.ius.el6
        * php54m-5.4.41-1.ius.el6
        * php55m-5.5.25-1.ius.el6
        * php56m-5.6.9-1.ius.el6
      - Used: --Use PHP Branch--
   3. Httpd: httpd24u-2.4.12-5.ius.el6.x86_64
      - PHP Type: [unknown]
   4. Lighttpd: --uninstalled--
   5. Hiawatha: hiawatha-9.13.0-f.6.mr.el6.x86_64
   6. Nginx: --uninstalled--
   7. Cache: --uninstalled--
   8. Dns: pdns-3.3.3-1.el6.x86_64
   9. Qmail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - with: courier-imap-toaster-4.1.2-1.3.18.mr.el6.x86_64
D. Memory:
                total       used       free     shared    buffers     cached
   Mem:         48266       1572      46693          0         72        837
   -/+ buffers/cache:        662      47604
   Swap:          199          0        199
E. Disk Space:
   Filesystem      Size  Used Avail Use% Mounted on
   /dev/sda3        16G  7,3G  7,2G  51% /

Quote
64bit)', 'mod_authz_owner.so()(64bit)', 'mod_authz_user.so()(64bit)', 'mod_autoindex.so()(64bit)', 'mod_cache.so()(64bit)', 'mod_cern_meta.so()(64bit)', 'mod_cgi.so()(64bit)', 'mod_cgid.so()(64bit)', 'mod_dav.so()(64bit)', 'mod_dav_fs.so()(64bit)', 'mod_dbd.so()(64bit)', 'mod_deflate.so()(64bit)', 'mod_dir.so()(64bit)', 'mod_disk_cache.so()(64bit)', 'mod_dumpio.so()(64bit)', 'mod_env.so()(64bit)', 'mod_expires.so()(64bit)', 'mod_ext_filter.so()(64bit)', 'mod_file_cache.so()(64bit)', 'mod_filter.so()(64bit)', 'mod_headers.so()(64bit)', 'mod_ident.so()(64bit)', 'mod_include.so()(64bit)', 'mod_info.so()(64bit)', 'mod_ldap.so()(64bit)', 'mod_log_config.so()(64bit)', 'mod_log_forensic.so()(64bit)', 'mod_logio.so()(64bit)', 'mod_mem_cache.so()(64bit)', 'mod_mime.so()(64bit)', 'mod_mime_magic.so()(64bit)', 'mod_negotiation.so()(64bit)', 'mod_proxy.so()(64bit)', 'mod_proxy_ajp.so()(64bit)', 'mod_proxy_balancer.so()(64bit)', 'mod_proxy_connect.so()(64bit)', 'mod_proxy_ftp.so()(64bit)', 'mod_proxy_http.so()(64bit)', 'mod_proxy_scgi.so()(64bit)', 'mod_reqtimeout.so()(64bit)', 'mod_rewrite.so()(64bit)', 'mod_setenvif.so()(64bit)', 'mod_speling.so()(64bit)', 'mod_status.so()(64bit)', 'mod_substitute.so()(64bit)', 'mod_suexec.so()(64bit)', 'mod_unique_id.so()(64bit)', 'mod_userdir.so()(64bit)', 'mod_usertrack.so()(64bit)', 'mod_version.so()(64bit)', 'mod_vhost_alias.so()(64bit)', 'config(mod_ssl)', 'mod_ssl.so()(64bit)']

Rozwi?zywanie zale?no?ci
--> Wykonywanie sprawdzania transakcji
---> Package httpd.x86_64 0:2.2.29-2.mr.el6 will be usuni?ty
--> Przetwarzanie zale?no?ci: httpd-mmn = 20051115 dla pakietu: mod_ruid2-0.9.8-3.mr.el6.x86_64
--> Przetwarzanie zale?no?ci: httpd-mmn = 20051115 dla pakietu: mod_perl-2.0.4-11.el6_5.x86_64
--> Przetwarzanie zale?no?ci: httpd-mmn = 20051115 dla pakietu: mod_fcgid-2.3.9-5.el6.x86_64
--> Przetwarzanie zale?no?ci: httpd-mmn = 20051115 dla pakietu: php-5.4.32-1.el6.remi.x86_64
---> Package httpd-tools.x86_64 0:2.2.29-2.mr.el6 will be usuni?ty
---> Package httpd24u.x86_64 0:2.4.12-5.ius.el6 will be zainstalowany
--> Przetwarzanie zale?no?ci: httpd-filesystem = 2.4.12-5.ius.el6 dla pakietu: httpd24u-2.4.12-5.ius.el6.x86_64
--> Przetwarzanie zale?no?ci: httpd-filesystem = 2.4.12-5.ius.el6 dla pakietu: httpd24u-2.4.12-5.ius.el6.x86_64
--> Przetwarzanie zale?no?ci: libapr15uutil-1.so.0()(64bit) dla pakietu: httpd24u-2.4.12-5.ius.el6.x86_64
--> Przetwarzanie zale?no?ci: libapr15u-1.so.0()(64bit) dla pakietu: httpd24u-2.4.12-5.ius.el6.x86_64
---> Package httpd24u-tools.x86_64 0:2.4.12-5.ius.el6 will be zainstalowany
---> Package mod24u_ssl.x86_64 1:2.4.12-5.ius.el6 will be zainstalowany
---> Package mod_ssl.x86_64 1:2.2.29-2.mr.el6 will be usuni?ty
--> Wykonywanie sprawdzania transakcji
---> Package apr15u.x86_64 0:1.5.2-1.ius.el6 will be zainstalowany
---> Package apr15u-util.x86_64 0:1.5.4-3.ius.el6 will be zainstalowany
---> Package httpd24u-filesystem.noarch 0:2.4.12-5.ius.el6 will be zainstalowany
---> Package mod_fcgid.x86_64 0:2.3.9-5.el6 will be usuni?ty
---> Package mod_perl.x86_64 0:2.0.4-11.el6_5 will be usuni?ty
---> Package mod_ruid2.x86_64 0:0.9.8-3.mr.el6 will be usuni?ty
---> Package php.x86_64 0:5.4.32-1.el6.remi will be usuni?ty
--> Uko?czono rozwi?zywanie zale?no?ci
--> Wykonywanie sprawdzania transakcji
---> Package mod_fcgid.x86_64 0:2.3.9-5.el6 will be usuni?ty
--> Przetwarzanie zale?no?ci: httpd-mmn = 20051115 dla pakietu: mod_fcgid-2.3.9-5.el6.x86_64
---> Package mod_perl.x86_64 0:2.0.4-11.el6_5 will be usuni?ty
--> Przetwarzanie zale?no?ci: httpd-mmn = 20051115 dla pakietu: mod_perl-2.0.4-11.el6_5.x86_64
---> Package mod_ruid2.x86_64 0:0.9.8-3.mr.el6 will be usuni?ty
--> Przetwarzanie zale?no?ci: httpd-mmn = 20051115 dla pakietu: mod_ruid2-0.9.8-3.mr.el6.x86_64
---> Package php.x86_64 0:5.4.32-1.el6.remi will be usuni?ty
--> Przetwarzanie zale?no?ci: httpd-mmn = 20051115 dla pakietu: php-5.4.32-1.el6.remi.x86_64
--> Wykonywanie sprawdzania transakcji
---> Package mod_fcgid.x86_64 0:2.3.9-5.el6 will be usuni?ty
---> Package mod_perl.x86_64 0:2.0.4-11.el6_5 will be usuni?ty
---> Package mod_ruid2.x86_64 0:0.9.8-3.mr.el6 will be usuni?ty
---> Package php.x86_64 0:5.4.32-1.el6.remi will be usuni?ty
--> Uko?czono rozwi?zywanie zale?no?ci

Rozwi?zano zale?no?ci

========================================================================================
 Pakiet               Architektura
                              Wersja              Repozytorium                    Rozmiar
========================================================================================
Instalowanie:
 httpd24u             x86_64  2.4.12-5.ius.el6    mratwork-ius-stable             1.1 M
 httpd24u-tools       x86_64  2.4.12-5.ius.el6    mratwork-ius-stable              76 k
 mod24u_ssl           x86_64  1:2.4.12-5.ius.el6  mratwork-ius-stable              96 k
Usuwanie:
 httpd                x86_64  2.2.29-2.mr.el6     @mratwork-release-version-arch  9.6 M
 httpd-tools          x86_64  2.2.29-2.mr.el6     @mratwork-release-version-arch  271 k
 mod_ssl              x86_64  1:2.2.29-2.mr.el6   @mratwork-release-version-arch  995 k
Instalowanie, aby rozwi?za? zale?no?ci:
 apr15u               x86_64  1.5.2-1.ius.el6     mratwork-ius-stable             105 k
 apr15u-util          x86_64  1.5.4-3.ius.el6     mratwork-ius-stable              88 k
 httpd24u-filesystem  noarch  2.4.12-5.ius.el6    mratwork-ius-stable              20 k
Usuwanie, aby rozwi?za? zale?no?ci:
 mod_fcgid            x86_64  2.3.9-5.el6         @city-fan.org                   220 k
 mod_perl             x86_64  2.0.4-11.el6_5      @updates                        6.1 M
 mod_ruid2            x86_64  0.9.8-3.mr.el6      @mratwork-release-version-arch   46 k
 php                  x86_64  5.4.32-1.el6.remi   @remi                           9.2 M

Podsumowanie transakcji
========================================================================================
Instalacja                        6 pakiet(y)
Usuni?cie                         7 pakiet(y)

Ca?kowity rozmiar pobierania: 1.5 M
Pobieranie pakietów:
(1/6): apr15u-1.5.2-1.ius.el6.x86_64.rpm                         | 105 kB     00:00
(2/6): apr15u-util-1.5.4-3.ius.el6.x86_64.rpm                    |  88 kB     00:00
(3/6): httpd24u-2.4.12-5.ius.el6.x86_64.rpm                      | 1.1 MB     00:00
(4/6): httpd24u-filesystem-2.4.12-5.ius.el6.noarch.rpm           |  20 kB     00:00
(5/6): httpd24u-tools-2.4.12-5.ius.el6.x86_64.rpm                |  76 kB     00:00
(6/6): mod24u_ssl-2.4.12-5.ius.el6.x86_64.rpm                    |  96 kB     00:00
----------------------------------------------------------------------------------------
Razem                                                   914 kB/s | 1.5 MB     00:01
Wykonywanie rpm_check_debug
Wykonywanie testu transakcji
Test transakcji zosta? uko?czony powodzeniem
Wykonywanie transakcji
  Instalowanie             : apr15u-1.5.2-1.ius.el6.x86_64                         1/13
  Instalowanie             : apr15u-util-1.5.4-3.ius.el6.x86_64                    2/13
  Instalowanie             : httpd24u-filesystem-2.4.12-5.ius.el6.noarch           3/13
  Instalowanie             : httpd24u-tools-2.4.12-5.ius.el6.x86_64                4/13
  Instalowanie             : httpd24u-2.4.12-5.ius.el6.x86_64                      5/13
ostrze?enie: /etc/httpd/conf/httpd.conf utworzono jako /etc/httpd/conf/httpd.conf.rpmnew
ostrze?enie: /etc/logrotate.d/httpd utworzono jako /etc/logrotate.d/httpd.rpmnew
ostrze?enie: /etc/sysconfig/httpd utworzono jako /etc/sysconfig/httpd.rpmnew
  Instalowanie             : 1:mod24u_ssl-2.4.12-5.ius.el6.x86_64                  6/13
ostrze?enie: /etc/httpd/conf.d/ssl.conf utworzono jako /etc/httpd/conf.d/ssl.conf.rpmnew
  Usuwanie                 : php-5.4.32-1.el6.remi.x86_64                          7/13
ostrze?enie: /etc/httpd/conf.d/php.conf zapisano jako /etc/httpd/conf.d/php.conf.rpmsave
  Usuwanie                 : 1:mod_ssl-2.2.29-2.mr.el6.x86_64                      8/13
  Usuwanie                 : mod_fcgid-2.3.9-5.el6.x86_64                          9/13
ostrze?enie: /etc/httpd/conf.d/fcgid.conf zapisano jako /etc/httpd/conf.d/fcgid.conf.rpmsave
  Usuwanie                 : mod_ruid2-0.9.8-3.mr.el6.x86_64                      10/13
  Usuwanie                 : mod_perl-2.0.4-11.el6_5.x86_64                       11/13
ostrze?enie: /etc/httpd/conf.d/perl.conf zapisano jako /etc/httpd/conf.d/perl.conf.rpmsave
  Usuwanie                 : httpd-2.2.29-2.mr.el6.x86_64                         12/13
  Usuwanie                 : httpd-tools-2.2.29-2.mr.el6.x86_64                   13/13
  Verifying                : apr15u-util-1.5.4-3.ius.el6.x86_64                    1/13
  Verifying                : apr15u-1.5.2-1.ius.el6.x86_64                         2/13
  Verifying                : httpd24u-tools-2.4.12-5.ius.el6.x86_64                3/13
  Verifying                : httpd24u-filesystem-2.4.12-5.ius.el6.noarch           4/13
  Verifying                : httpd24u-2.4.12-5.ius.el6.x86_64                      5/13
  Verifying                : 1:mod24u_ssl-2.4.12-5.ius.el6.x86_64                  6/13
  Verifying                : mod_perl-2.0.4-11.el6_5.x86_64                        7/13
  Verifying                : php-5.4.32-1.el6.remi.x86_64                          8/13
  Verifying                : httpd-2.2.29-2.mr.el6.x86_64                          9/13
  Verifying                : httpd-tools-2.2.29-2.mr.el6.x86_64                   10/13
  Verifying                : mod_ruid2-0.9.8-3.mr.el6.x86_64                      11/13
  Verifying                : mod_fcgid-2.3.9-5.el6.x86_64                         12/13
  Verifying                : 1:mod_ssl-2.2.29-2.mr.el6.x86_64                     13/13

Usuni?to:
  httpd.x86_64 0:2.2.29-2.mr.el6           httpd-tools.x86_64 0:2.2.29-2.mr.el6
  mod_ssl.x86_64 1:2.2.29-2.mr.el6

Usuni?to zale?no??:
  mod_fcgid.x86_64 0:2.3.9-5.el6              mod_perl.x86_64 0:2.0.4-11.el6_5
  mod_ruid2.x86_64 0:0.9.8-3.mr.el6           php.x86_64 0:5.4.32-1.el6.remi

Zainstalowano:
  httpd24u.x86_64 0:2.4.12-5.ius.el6       httpd24u-tools.x86_64 0:2.4.12-5.ius.el6
  mod24u_ssl.x86_64 1:2.4.12-5.ius.el6

Zainstalowano zale?no??:
  apr15u.x86_64 0:1.5.2-1.ius.el6                 apr15u-util.x86_64 0:1.5.4-3.ius.el6
  httpd24u-filesystem.noarch 0:2.4.12-5.ius.el6

Uko?czono.
Wczytane wtyczki: fastestmirror, priorities, replace
Replacing packages takes time, please be patient...
Loading mirror speeds from cached hostfile
 * base: centos1.hti.pl
 * elrepo: ftp.nluug.nl
 * epel: ftp.uni-bayreuth.de
 * extras: centos2.hti.pl
 * mratwork-epel: ftp.uni-bayreuth.de
 * mratwork-ius-stable: mirror.amsiohosting.net
 * rpmforge: ftp.tu-chemnitz.de
 * updates: centos1.hti.pl

WARNING: Unable to resolve all providers: ['config(mod_suphp)', 'mod_suphp', 'mod_suphp(x86-64)']

Rozwi?zywanie zale?no?ci
--> Wykonywanie sprawdzania transakcji
---> Package mod24u_suphp.x86_64 0:0.7.2-3.mr.el6 will be zainstalowany
---> Package mod_suphp.x86_64 0:0.7.2-3.mr.el6 will be usuni?ty
--> Uko?czono rozwi?zywanie zale?no?ci

Rozwi?zano zale?no?ci

========================================================================================
 Pakiet          Architektura
                           Wersja               Repozytorium                      Rozmiar
========================================================================================
Instalowanie:
 mod24u_suphp    x86_64    0.7.2-3.mr.el6       mratwork-release-version-arch     666 k
Usuwanie:
 mod_suphp       x86_64    0.7.2-3.mr.el6       @mratwork-release-version-arch    2.7 M

Podsumowanie transakcji
========================================================================================
Instalacja                        1 pakiet(y)
Usuni?cie                         1 pakiet(y)

Ca?kowity rozmiar pobierania: 666 k
Pobieranie pakietów:
mod24u_suphp-0.7.2-3.mr.el6.x86_64.rpm                           | 666 kB     00:00
Wykonywanie rpm_check_debug
Wykonywanie testu transakcji
Test transakcji zosta? uko?czony powodzeniem
Wykonywanie transakcji
  Instalowanie             : mod24u_suphp-0.7.2-3.mr.el6.x86_64                     1/2
  Usuwanie                 : mod_suphp-0.7.2-3.mr.el6.x86_64                        2/2
  Verifying                : mod24u_suphp-0.7.2-3.mr.el6.x86_64                     1/2
  Verifying                : mod_suphp-0.7.2-3.mr.el6.x86_64                        2/2

Usuni?to:
  mod_suphp.x86_64 0:0.7.2-3.mr.el6

Zainstalowano:
  mod24u_suphp.x86_64 0:0.7.2-3.mr.el6

Uko?czono.
cat: : No such file or directory

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Some troubles with switch-apache script
« Reply #1 on: 2015-06-27, 14:52:11 »
If using apache 2.4, running 'yum list installed httpd* mod*' will be appear mod24u_* instread mod_*
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Some troubles with switch-apache script
« Reply #2 on: 2015-06-27, 17:09:56 »
If using apache 2.4, running 'yum list installed httpd* mod*' will be appear mod24u_* instread mod_*

Something is wrong:

Quote
[root@backup ~]# /etc/init.d/httpd restart
Zatrzymywanie httpd:                                       [NIEUDANE]
Uruchamianie 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
                                                           [NIEUDANE]
[root@backup ~]#

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Some troubles with switch-apache script
« Reply #3 on: 2015-06-27, 17:12:15 »
Try using panel where select 'none' for web and then select 'apache' or proxy beside enable 'use apache 2.4'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Some troubles with switch-apache script
« Reply #4 on: 2015-06-27, 17:12:21 »
When moved proper httpd24.conf to /etc/httpd then I got this one:

Zatrzymywanie httpd:                                       [NIEUDANE]
Uruchamianie httpd: httpd: Syntax error on line 126 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf.d/define.conf: Cannot load modules/mod_define.so into server: /etc/httpd/modules/mod_define.so: undefined symbol: ap_log_perror
                                                           [NIEUDANE]

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Some troubles with switch-apache script
« Reply #5 on: 2015-06-27, 17:16:43 »
Try using panel where select 'none' for web and then select 'apache' or proxy beside enable 'use apache 2.4'.

Done but also not working:

Quote
[root@backup configs]# /etc/init.d/httpd restart
Zatrzymywanie httpd:                                       [NIEUDANE]
Uruchamianie 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
                                                           [NIEUDANE]

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Some troubles with switch-apache script
« Reply #6 on: 2015-06-27, 17:29:04 »
Look like apache configs still old version. Need update.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Some troubles with switch-apache script
« Reply #7 on: 2015-06-27, 19:34:57 »
Look like apache configs still old version. Need update.

Please see:

Quote
[root@backup etc]# /etc/init.d/httpd restart
Zatrzymywanie httpd:                                       [NIEUDANE]
Uruchamianie httpd: httpd: Syntax error on line 126 of /etc/httpd/conf/httpd.conf: Syntax error on line 91 of /etc/httpd/conf.d/~lxcenter.conf: Syntax error on line 3 of /opt/configs/apache/conf/defaults/init.conf: Variable name must not contain ':'
                                                           [NIEUDANE]
[root@backup etc]# httpd -v
Server version: Apache/2.4.12 (Red Hat)
Server built:   Apr 20 2015 10:50:17

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Some troubles with switch-apache script
« Reply #8 on: 2015-06-27, 19:40:58 »
Again, I think your apache configs is old version. Go to 'admin > webserver configure > apache optimize > (medium/high)' or 'sh /script/apache-optimize --select=<medium/high>'
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Some troubles with switch-apache script
« Reply #9 on: 2015-06-27, 19:46:37 »
Again, I think your apache configs is old version. Go to 'admin > webserver configure > apache optimize > (medium/high)' or 'sh /script/apache-optimize --select=<medium/high>'

The same:

[root@backup conf]# sh /script/apache-optimize --select=high

Quote
- For help, type '/script/apache-optimize --help'

[root@backup conf]# service httpd restart
Zatrzymywanie httpd:                                       [NIEUDANE]
Uruchamianie httpd: httpd: Syntax error on line 126 of /etc/httpd/conf/httpd.conf: Syntax error on line 82 of /etc/httpd/conf.d/~lxcenter.conf: Syntax error on line 3 of /opt/configs/apache/conf/defaults/init.conf: Variable name must not contain ':'
                                                           [NIEUDANE]

Quote
cat /opt/configs/apache/conf/defaults/init.conf
### begin - web of initial - do not remove/modify this line

Define global::port 80
Define global::portssl 443
Define global::ip *

Listen ${global::ip}:${global::port}
Listen ${global::ip}:${global::portssl}

### end - web of initial - do not remove/modify this line
« Last Edit: 2015-06-27, 19:48:51 by Spacedust »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Some troubles with switch-apache script
« Reply #10 on: 2015-06-27, 19:50:56 »
Inform here your  /etc/httpd/conf/httpd.conf, /etc/httpd/conf.d/~lxcenter.conf and /opt/configs/apache/conf/defaults/init.conf
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Some troubles with switch-apache script
« Reply #11 on: 2015-06-27, 19:53:23 »
Something wrong with init.conf because your init.conf for apache 2.2. Init.conf for apache 2.4 must be like:
Code: [Select]
### begin - web of initial - do not remove/modify this line


<IfVersion < 2.4>
Define global::port 80
Define global::portssl 443
Define global::ip *

Define port ${global::port}
Define portssl ${global::portssl}
Define ip ${global::ip}
</IfVersion>

<IfVersion >= 2.4>
Include /opt/configs/apache/conf/globals/portnip.conf
</IfVersion>

Listen ${ip}:${port}
Listen ${ip}:${portssl}

<IfVersion < 2.4>
NameVirtualHost ${ip}:${port}
NameVirtualHost ${ip}:${portssl}
</IfVersion>

<Ifmodule mod_userdir.c>
UserDir enabled
UserDir /home/*/public_html
<Location "/~admin">
<IfModule mod_suphp.c>
SuPhp_UserGroup admin admin
</IfModule>
</Location>
</Ifmodule>


### 'default' config
<VirtualHost ${ip}:${port} >

SetEnvIf X-Forwarded-Proto https HTTPS=1

ServerName default

ServerAlias default.*

DocumentRoot "/home/kloxo/httpd/default"

DirectoryIndex index.php index.html index.shtml index.htm index.pl index.py index.cgi index.rb default.htm Default.aspx Default.asp

<IfModule suexec.c>
SuexecUserGroup apache apache
</IfModule>

<IfModule mod_suphp.c>
SuPhp_UserGroup apache apache
</IfModule>

<IfModule mod_ruid2.c>
RMode config
RUidGid apache apache
RMinUidGid apache apache
</IfModule>

<IfModule itk.c>
AssignUserId apache apache
</IfModule>

<IfModule mod_fastcgi.c>
Alias /default.0fake "/home/kloxo/httpd/default/default.0fake"
#FastCGIExternalServer "/home/kloxo/httpd/default/default.0fake" -host 127.0.0.1:50000 -idle-timeout 120 -pass-header Authorization
FastCGIExternalServer "/home/kloxo/httpd/default/default.0fake" -socket /opt/configs/php-fpm/sock/apache.sock -idle-timeout 120 -pass-header Authorization
AddType application/x-httpd-fastphp .php
Action application/x-httpd-fastphp /default.0fake
<Files "default.0fake">
RewriteCond %{REQUEST_URI} !default.0fake
</Files>
</IfModule>

<IfModule mod_fcgid.c>
<Directory "/home/kloxo/httpd/default/">
Options +ExecCGI
<FilesMatch \.php$>
SetHandler fcgid-script
</FilesMatch>
FCGIWrapper /home/kloxo/client/php5.fcgi .php
</Directory>
</IfModule>

<IfModule mod_proxy_fcgi.c>
<FilesMatch \.php$>
SetHandler "proxy:unix:/opt/configs/php-fpm/sock/apache.sock|fcgi://127.0.0.1/"
</FilesMatch>
<Proxy "fcgi://127.0.0.1/">
ProxySet timeout=600
ProxySet connectiontimeout=300
#ProxySet enablereuse=on
ProxySet max=25
</Proxy>
</IfModule>

<Location "/">
Allow from all
# Options +Indexes +FollowSymlinks
Options -Indexes -FollowSymlinks +SymLinksIfOwnerMatch
</Location>

<Directory "/home/kloxo/httpd/default/">
AllowOverride All
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
</Directory>

</VirtualHost>


### 'default' config
<VirtualHost ${ip}:${portssl} >

SetEnvIf X-Forwarded-Proto https HTTPS=1

ServerName default

ServerAlias default.*

DocumentRoot "/home/kloxo/httpd/default"

DirectoryIndex index.php index.html index.shtml index.htm index.pl index.py index.cgi index.rb default.htm Default.aspx Default.asp

<IfModule mod_ssl.c>
SSLEngine On
SSLProtocol ALL -SSLv2 -SSLv3
SSLHonorCipherOrder On
#SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS
SSLCipherSuite "EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH+aRSA+RC4 EECDH EDH+aRSA RC4 !aNULL
SSLCertificateFile /home/kloxo/httpd/ssl/eth0___localhost.pem
SSLCertificateKeyFile /home/kloxo/httpd/ssl/eth0___localhost.key
</IfModule>

<IfModule suexec.c>
SuexecUserGroup apache apache
</IfModule>

<IfModule mod_suphp.c>
SuPhp_UserGroup apache apache
</IfModule>

<IfModule mod_ruid2.c>
RMode config
RUidGid apache apache
RMinUidGid apache apache
</IfModule>

<IfModule itk.c>
AssignUserId apache apache
</IfModule>

<IfModule mod_fastcgi.c>
Alias /default.1fake "/home/kloxo/httpd/default/default.1fake"
#FastCGIExternalServer "/home/kloxo/httpd/default/default.1fake" -host 127.0.0.1:50000 -idle-timeout 120 -pass-header Authorization
FastCGIExternalServer "/home/kloxo/httpd/default/default.1fake" -socket /opt/configs/php-fpm/sock/apache.sock -idle-timeout 120 -pass-header Authorization
AddType application/x-httpd-fastphp .php
Action application/x-httpd-fastphp /default.1fake
<Files "default.1fake">
RewriteCond %{REQUEST_URI} !default.1fake
</Files>
</IfModule>

<IfModule mod_fcgid.c>
<Directory "/home/kloxo/httpd/default/">
Options +ExecCGI
<FilesMatch \.php$>
SetHandler fcgid-script
</FilesMatch>
FCGIWrapper /home/kloxo/client/php5.fcgi .php
</Directory>
</IfModule>

<IfModule mod_proxy_fcgi.c>
<FilesMatch \.php$>
SetHandler "proxy:unix:/opt/configs/php-fpm/sock/apache.sock|fcgi://127.0.0.1/"
</FilesMatch>
<Proxy "fcgi://127.0.0.1/">
ProxySet timeout=600
ProxySet connectiontimeout=300
#ProxySet enablereuse=on
ProxySet max=25
</Proxy>
</IfModule>

<Location "/">
Allow from all
# Options +Indexes +FollowSymlinks
Options -Indexes -FollowSymlinks +SymLinksIfOwnerMatch
</Location>

<Directory "/home/kloxo/httpd/default/">
AllowOverride All
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
</Directory>

</VirtualHost>


### end - web of initial - do not remove/modify this line
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Some troubles with switch-apache script
« Reply #12 on: 2015-06-27, 20:00:25 »
Something wrong with init.conf because your init.conf for apache 2.2. Init.conf for apache 2.4 must be like:
Code: [Select]
### begin - web of initial - do not remove/modify this line


<IfVersion < 2.4>
Define global::port 80
Define global::portssl 443
Define global::ip *

Define port ${global::port}
Define portssl ${global::portssl}
Define ip ${global::ip}
</IfVersion>

<IfVersion >= 2.4>
Include /opt/configs/apache/conf/globals/portnip.conf
</IfVersion>

Listen ${ip}:${port}
Listen ${ip}:${portssl}

<IfVersion < 2.4>
NameVirtualHost ${ip}:${port}
NameVirtualHost ${ip}:${portssl}
</IfVersion>

<Ifmodule mod_userdir.c>
UserDir enabled
UserDir /home/*/public_html
<Location "/~admin">
<IfModule mod_suphp.c>
SuPhp_UserGroup admin admin
</IfModule>
</Location>
</Ifmodule>


### 'default' config
<VirtualHost ${ip}:${port} >

SetEnvIf X-Forwarded-Proto https HTTPS=1

ServerName default

ServerAlias default.*

DocumentRoot "/home/kloxo/httpd/default"

DirectoryIndex index.php index.html index.shtml index.htm index.pl index.py index.cgi index.rb default.htm Default.aspx Default.asp

<IfModule suexec.c>
SuexecUserGroup apache apache
</IfModule>

<IfModule mod_suphp.c>
SuPhp_UserGroup apache apache
</IfModule>

<IfModule mod_ruid2.c>
RMode config
RUidGid apache apache
RMinUidGid apache apache
</IfModule>

<IfModule itk.c>
AssignUserId apache apache
</IfModule>

<IfModule mod_fastcgi.c>
Alias /default.0fake "/home/kloxo/httpd/default/default.0fake"
#FastCGIExternalServer "/home/kloxo/httpd/default/default.0fake" -host 127.0.0.1:50000 -idle-timeout 120 -pass-header Authorization
FastCGIExternalServer "/home/kloxo/httpd/default/default.0fake" -socket /opt/configs/php-fpm/sock/apache.sock -idle-timeout 120 -pass-header Authorization
AddType application/x-httpd-fastphp .php
Action application/x-httpd-fastphp /default.0fake
<Files "default.0fake">
RewriteCond %{REQUEST_URI} !default.0fake
</Files>
</IfModule>

<IfModule mod_fcgid.c>
<Directory "/home/kloxo/httpd/default/">
Options +ExecCGI
<FilesMatch \.php$>
SetHandler fcgid-script
</FilesMatch>
FCGIWrapper /home/kloxo/client/php5.fcgi .php
</Directory>
</IfModule>

<IfModule mod_proxy_fcgi.c>
<FilesMatch \.php$>
SetHandler "proxy:unix:/opt/configs/php-fpm/sock/apache.sock|fcgi://127.0.0.1/"
</FilesMatch>
<Proxy "fcgi://127.0.0.1/">
ProxySet timeout=600
ProxySet connectiontimeout=300
#ProxySet enablereuse=on
ProxySet max=25
</Proxy>
</IfModule>

<Location "/">
Allow from all
# Options +Indexes +FollowSymlinks
Options -Indexes -FollowSymlinks +SymLinksIfOwnerMatch
</Location>

<Directory "/home/kloxo/httpd/default/">
AllowOverride All
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
</Directory>

</VirtualHost>


### 'default' config
<VirtualHost ${ip}:${portssl} >

SetEnvIf X-Forwarded-Proto https HTTPS=1

ServerName default

ServerAlias default.*

DocumentRoot "/home/kloxo/httpd/default"

DirectoryIndex index.php index.html index.shtml index.htm index.pl index.py index.cgi index.rb default.htm Default.aspx Default.asp

<IfModule mod_ssl.c>
SSLEngine On
SSLProtocol ALL -SSLv2 -SSLv3
SSLHonorCipherOrder On
#SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS
SSLCipherSuite "EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH+aRSA+RC4 EECDH EDH+aRSA RC4 !aNULL
SSLCertificateFile /home/kloxo/httpd/ssl/eth0___localhost.pem
SSLCertificateKeyFile /home/kloxo/httpd/ssl/eth0___localhost.key
</IfModule>

<IfModule suexec.c>
SuexecUserGroup apache apache
</IfModule>

<IfModule mod_suphp.c>
SuPhp_UserGroup apache apache
</IfModule>

<IfModule mod_ruid2.c>
RMode config
RUidGid apache apache
RMinUidGid apache apache
</IfModule>

<IfModule itk.c>
AssignUserId apache apache
</IfModule>

<IfModule mod_fastcgi.c>
Alias /default.1fake "/home/kloxo/httpd/default/default.1fake"
#FastCGIExternalServer "/home/kloxo/httpd/default/default.1fake" -host 127.0.0.1:50000 -idle-timeout 120 -pass-header Authorization
FastCGIExternalServer "/home/kloxo/httpd/default/default.1fake" -socket /opt/configs/php-fpm/sock/apache.sock -idle-timeout 120 -pass-header Authorization
AddType application/x-httpd-fastphp .php
Action application/x-httpd-fastphp /default.1fake
<Files "default.1fake">
RewriteCond %{REQUEST_URI} !default.1fake
</Files>
</IfModule>

<IfModule mod_fcgid.c>
<Directory "/home/kloxo/httpd/default/">
Options +ExecCGI
<FilesMatch \.php$>
SetHandler fcgid-script
</FilesMatch>
FCGIWrapper /home/kloxo/client/php5.fcgi .php
</Directory>
</IfModule>

<IfModule mod_proxy_fcgi.c>
<FilesMatch \.php$>
SetHandler "proxy:unix:/opt/configs/php-fpm/sock/apache.sock|fcgi://127.0.0.1/"
</FilesMatch>
<Proxy "fcgi://127.0.0.1/">
ProxySet timeout=600
ProxySet connectiontimeout=300
#ProxySet enablereuse=on
ProxySet max=25
</Proxy>
</IfModule>

<Location "/">
Allow from all
# Options +Indexes +FollowSymlinks
Options -Indexes -FollowSymlinks +SymLinksIfOwnerMatch
</Location>

<Directory "/home/kloxo/httpd/default/">
AllowOverride All
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
</Directory>

</VirtualHost>


### end - web of initial - do not remove/modify this line

I've runned /script/cleanup and it got rebuild like this ;( Also it copied /etc/httpd/httpd.conf from version 2.2...

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Some troubles with switch-apache script
« Reply #13 on: 2015-06-27, 20:03:38 »
Apache 2.4 need /usr/local/lxlabs/kloxo/etc/flag/use_apache24.flg.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Some troubles with switch-apache script
« Reply #14 on: 2015-06-27, 20:05:23 »
Apache 2.4 need /usr/local/lxlabs/kloxo/etc/flag/use_apache24.flg.

OK. I'm running /script/cleanup again.

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine

Page created in 0.034 seconds with 18 queries.

web stats analysis