MRatWork Forum by Mustafa Ramadhan
Sawo Project - Kloxo-MR Discussions => Kloxo-MR Bugs and Requests => Topic started by: Spacedust on 2015-06-27, 14:35:47
-
My current test config:
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% /
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
-
If using apache 2.4, running 'yum list installed httpd* mod*' will be appear mod24u_* instread mod_*
-
If using apache 2.4, running 'yum list installed httpd* mod*' will be appear mod24u_* instread mod_*
Something is wrong:
[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 ~]#
-
Try using panel where select 'none' for web and then select 'apache' or proxy beside enable 'use apache 2.4'.
-
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]
-
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:
[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]
-
Look like apache configs still old version. Need update.
-
Look like apache configs still old version. Need update.
Please see:
[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
-
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>'
-
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
- 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]
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
-
Inform here your /etc/httpd/conf/httpd.conf, /etc/httpd/conf.d/~lxcenter.conf and /opt/configs/apache/conf/defaults/init.conf
-
Something wrong with init.conf because your init.conf for apache 2.2. Init.conf for apache 2.4 must be like:
### 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
-
Something wrong with init.conf because your init.conf for apache 2.2. Init.conf for apache 2.4 must be like:
### 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...
-
Apache 2.4 need /usr/local/lxlabs/kloxo/etc/flag/use_apache24.flg.
-
Apache 2.4 need /usr/local/lxlabs/kloxo/etc/flag/use_apache24.flg.
OK. I'm running /script/cleanup again.
-
Now got this one:
[root@backup /]# service 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]
-
It seems it copied the /etc/httpd/httpd.conf from previous version again :(
-
I've copied proper httpd.conf and your new init.conf and now getting this one:
[root@backup defaults]# 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 15 of /opt/configs/apache/conf/defaults/init.conf: Could not open configuration file /opt/configs/apache/conf/globals/portnip.conf: No such file or directory
[NIEUDANE]
-
Make sure enable 'use apache 2.4' in 'admin > switch programs'.
-
Or use old trick. Set 'none' for web and then back to set 'apache' or proxy in 'admin > switch programs'.
-
Or use old trick. Set 'none' for web and then back to set 'apache' or proxy in 'admin > switch programs'.
Already did that and no luck :( Did you upload these files correctly ?
Please note it's a slave.
-
From master, try 'sh /script/fixweb --server=all'
-
From master, try 'sh /script/fixweb --server=all'
Does not help - it happens on master as well.
-
Try copy from '/usr/local/lxlabs/kloxo/file/apache' to '/opt/configs/apache' in slave.
-
Try copy from '/usr/local/lxlabs/kloxo/file/apache' to '/opt/configs/apache' in slave.
It does not make sense - these files are not uploaded to github:
[root@backup ~]# cat /usr/local/lxlabs/kloxo/file/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
-
Also please see: https://github.com/mustafaramadhan/kloxo/blob/dev/kloxo/file/apache/conf/defaults/init.conf
-
Also please see: https://github.com/mustafaramadhan/kloxo/blob/dev/kloxo/file/apache/conf/defaults/init.conf
Only importance if no domain (fresh install before login).
-
Also please see: https://github.com/mustafaramadhan/kloxo/blob/dev/kloxo/file/apache/conf/defaults/init.conf
Only importance if no domain (fresh install before login).
I don't have any domain on this slave as it's a backup server. I'm using Apache for my stats only.
-
Just create 'dummy' domain or create with name as the same as slave's hostname.
-
Got it running on my Virtualbox ;D