Author Topic: CentOS6 Upgrade  (Read 264351 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Re: CentOS6 Upgrade
« Reply #15 on: March 15, 2017, 01:38:22 PM »
this is because now different webserver is used for serving server services like phpmyadmin and roundcube so its not more under apache.
But we will check what can be done to have that proxy/alias mode.
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: CentOS6 Upgrade
« Reply #16 on: March 15, 2017, 02:54:01 PM »
Ok, I did all this and after a little wresting (not too much, my server IP was changed some time ago and it looks like I changed the vhost file directly, then when I rebuilt, the old IP was still in the user account configs, got that all cleared up) I got my wordpress sites up and running. Yay!

I do have a problem now however. When I install mod_sec I get:
Starting httpd: httpd: Syntax error on line 507 of /usr/local/apache/conf/httpd.conf: Syntax error on line 5 of /usr/local/apache/conf.d/mod_security.conf: Cannot load modules/mod_security2.so into server: /usr/local/apache/modules/mod_security2.so: undefined symbol: apr_crypto_block_cleanup
 [FAILED]

Nothing in the apache error log

Apache version: Apache/2.4.25
PHP version: 5.6.27 [PHP Switcher]
MySQL version: 5.5.54
FTP version: 1.0.36

Distro Name: CentOS release 6.8 (Final)
Kernel Version: 2.6.32-642.13.1.el6.x86_64

CWP version: 0.9.8.188
« Last Edit: March 15, 2017, 03:20:51 PM by Darkroom »

Offline
*****
Re: CentOS6 Upgrade
« Reply #17 on: March 15, 2017, 05:46:17 PM »
Try rebuild apache with mod_security please.
And check if apr and apr-util installed from CWP repo.
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: CentOS6 Upgrade
« Reply #18 on: March 15, 2017, 06:57:00 PM »
Well apache is configured with

--with-apr=/usr/local/apr
--with-apr-util=/usr/local/apr

That directory exists and there's directories in it:
bin  build-1  include  lib

if I 'locate apr' there's a bunch of /usr/local/src/cwp/.... entries ¯\_(ツ)_/¯
I looked and I can't find the flag for mod_security on the apache rebuild. I'd assume it looks something like --enable-mod_security but I don't know.

Offline
*
Re: CentOS6 Upgrade
« Reply #19 on: March 15, 2017, 10:25:26 PM »
have you tried to rebuild apache from cwp ?

check that apr, apr-util and devel packages are installed from cwp repository by using this command
Code: [Select]
yum list installed|grep apr
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
***
Re: CentOS6 Upgrade
« Reply #20 on: March 16, 2017, 06:09:10 AM »
After the update none of my websites is working. No error through web browser. I decided to put PHP 7.0.16 and I see:
Code: [Select]
Error Summary
-------------

buildconf: checking installation...
buildconf: autoconf version 2.63 (ok)
rebuilding aclocal.m4
rebuilding configure
configure.ac:276: error: Autoconf version 2.64 or higher is required
build/ax_check_compile_flag.m4:60: AX_CHECK_COMPILE_FLAG is expanded from...
autom4te: /usr/bin/m4 failed with exit status: 63
rebuilding main/php_config.h.in
configure.ac:276: error: Autoconf version 2.64 or higher is required
build/ax_check_compile_flag.m4:60: AX_CHECK_COMPILE_FLAG is expanded from...
autom4te: /usr/bin/m4 failed with exit status: 63
autoheader: '/usr/bin/autom4te' failed with exit status: 63
/usr/local/cwp/.conf/php_conf/php7.conf: line 1: ./configure: No such file or directory
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.
Stopping httpd: [  OK  ]
Starting httpd: [  OK  ]

Build Completed
###################


/usr/local/src/php-build.sh: line 16: /scripts/add_alert: Permission denied
UNIX is a very simple OS, but you have to be a GENIUS to understand it ...

Offline
*****
Re: CentOS6 Upgrade
« Reply #21 on: March 16, 2017, 06:23:57 AM »
After the update none of my websites is working. No error through web browser. I decided to put PHP 7.0.16 and I see:

How exactly the sites do not work? Should be some errors.
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
***
Re: CentOS6 Upgrade
« Reply #22 on: March 16, 2017, 08:27:09 AM »
In 15min I got 76747 lines in /usr/local/apache/error_log which are the same, so I will paste just 2 of them:
Code: [Select]
[Thu Mar 16 09:22:23.749044 2017] [core:error] [pid 23340:tid 140131841574720] AH00546: no record of generation 0 of exiting child 1546
/usr/local/apache/bin/httpd: symbol lookup error: /usr/local/apache/bin/httpd: undefined symbol: apr_skiplist_init
Any idea?
UNIX is a very simple OS, but you have to be a GENIUS to understand it ...

Offline
*****
Re: CentOS6 Upgrade
« Reply #23 on: March 16, 2017, 09:27:45 AM »
In 15min I got 76747 lines in /usr/local/apache/error_log which are the same, so I will paste just 2 of them:
Code: [Select]
[Thu Mar 16 09:22:23.749044 2017] [core:error] [pid 23340:tid 140131841574720] AH00546: no record of generation 0 of exiting child 1546
/usr/local/apache/bin/httpd: symbol lookup error: /usr/local/apache/bin/httpd: undefined symbol: apr_skiplist_init
Any idea?

The error related with apr. Check if apr and apr-util installed from CWP repo:
Code: [Select]
yum list installed |grep apr
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
***
Re: CentOS6 Upgrade
« Reply #24 on: March 16, 2017, 01:07:37 PM »
Code: [Select]
[root@msi ~]# yum list installed | grep apr
apr.x86_64                           1.3.9-5.el6_2              @base
apr-devel.x86_64                     1.3.9-5.el6_2              @base
apr-util.x86_64                      1.3.9-3.el6_0.1            @base
apr-util-devel.x86_64                1.3.9-3.el6_0.1            @base
apr-util-mysql.x86_64                1.3.9-3.el6_0.1            @base
[root@msi ~]#
UNIX is a very simple OS, but you have to be a GENIUS to understand it ...

Offline
*
Re: CentOS6 Upgrade
« Reply #25 on: March 16, 2017, 08:59:08 PM »
have you tried to rebuild apache from cwp ?

check that apr, apr-util and devel packages are installed from cwp repository by using this command
Code: [Select]
yum list installed|grep apr

Yes, I've rebuilt apache with those flags here's the output of that command:
yum list installed|grep apr
apr.x86_64                           1.5.2-2                           @cwp     
apr-devel.x86_64                     1.5.2-2                           @cwp     
apr-util.x86_64                      1.5.4-2                           @cwp     
apr-util-devel.x86_64                1.5.4-2                           @cwp 

Offline
*
Re: CentOS6 Upgrade
« Reply #26 on: March 17, 2017, 07:28:42 AM »
starting apache fails Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 54 of /usr/local/apache/conf/httpd.conf: Cannot load modules/mod_antiloris.so into server: /usr/local/apache/modules/mod_antiloris.so: undefined symbol: ap_log_error
[FAILED]



THIS ARE UPGRADE INSTRUCTIONS ONLY FOR CWP VERSION 0.9.8.153

Procedure
===============
- Make sure that you are running CWP version 0.9.8.153 before proceeding !!!!
- Check your mysql version, you need to have mysql version 5.5 or higher
- If your MySQL version is 5.1 or less than 5.5 then you need to upgrade MySQL by using MySQL upgrade script (instructions are bellow)
- Switch your server to Apache only mode in WebServers menu (you need to disable nginx and varnish, instructions are bellow )
- Download and Run CWP upgrade script (instructions are bellow)
- Download and Run Apache Upgrade script (instructions are bellow)

MySQL Upgrade (NOT required if you have MariaDB or MySQL 5.5 or newer)
- Before running any mysql upgrade please make sure you have backups of your databases, if you have cwp backups enabled then you should also have backups, but please check before proceeding.
Code: [Select]
cd /usr/local/src
wget http://dl1.centos-webpanel.com/files/el6/cwpupgrade/mysql.sh
sh mysql.sh

CWP Upgrade script
- Download and Run CWP upgrade script
Code: [Select]
cd /usr/local/src
wget http://dl1.centos-webpanel.com/files/el6/cwpupgrade/cwpsrv.sh
sh cwpsrv.sh

Apache Upgrade script
- Before running apache upgrade script, login into cwp.admin and check that you are running apache only under Apache Settings --> Select WebServers, don't forget to rebuild vhosts also.
- Download and Run Apache upgrade script
Code: [Select]
cd /usr/local/src
wget http://dl1.centos-webpanel.com/files/el6/cwpupgrade/apache.sh
sh apache.sh

RESTORE
If something goes wrong you can restore your apache/cwpsrv with the command
Code: [Select]
cd /usr/local/src
sh cwpsrv.sh restore
sh apache.sh restore

*** Please note that it would be good that you have some system admin at your side before proceeding :)
If you stuck somewhere you can restore your current version and/or contact our support for assistance.
http://centos-webpanel.com/contact

Offline
*****
Re: CentOS6 Upgrade
« Reply #27 on: March 17, 2017, 08:46:06 AM »
Code: [Select]
[root@msi ~]# yum list installed | grep apr
apr.x86_64                           1.3.9-5.el6_2              @base
apr-devel.x86_64                     1.3.9-5.el6_2              @base
apr-util.x86_64                      1.3.9-3.el6_0.1            @base
apr-util-devel.x86_64                1.3.9-3.el6_0.1            @base
apr-util-mysql.x86_64                1.3.9-3.el6_0.1            @base
[root@msi ~]#

Hi,

you must add CWP repo if it was not added before and run few commands below:
Code: [Select]
yum -y erase apr-util-mysql
yum -y upgrade apr*
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*****
Re: CentOS6 Upgrade
« Reply #28 on: March 17, 2017, 08:48:04 AM »
starting apache fails Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 54 of /usr/local/apache/conf/httpd.conf: Cannot load modules/mod_antiloris.so into server: /usr/local/apache/modules/mod_antiloris.so: undefined symbol: ap_log_error
[FAILED]

Hello.

You must rebuild apache via CWP since you are using mod_antiloris.so (it is not a default module)
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: CentOS6 Upgrade
« Reply #29 on: March 17, 2017, 01:07:54 PM »
I have this problem when trying to upgrade. Can someone help me please ? I am running 0.9.8.153

[root@hostname src]# wget http://dl1.centos-webpanel.com/files/el6/cwpupgrade/cwpsrv.sh
--2017-03-17 09:01:38--  http://dl1.centos-webpanel.com/files/el6/cwpupgrade/cwpsrv.sh
Resolving dl1.centos-webpanel.com... 37.187.72.216
Connecting to dl1.centos-webpanel.com|37.187.72.216|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8482 (8.3K) [application/x-sh]
Saving to: “cwpsrv.sh.2”

100%[======================================>] 8,482       --.-K/s   in 0s     

2017-03-17 09:01:39 (478 MB/s) - “cwpsrv.sh.2” saved [8482/8482]

[root@hostname src]# sh cwpsrv.sh
cwpsrv.sh: line 1: syntax error near unexpected token `newline'
cwpsrv.sh: line 1: `<meta http-equiv="refresh" content="0;URL=http://centos-webpanel.com">'
[root@hostname src]#