CentOS6 Upgrade

Started by Administrator, March 14, 2017, 08:24:48 PM

Previous topic - Next topic

Administrator

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.

Darkroom

#16
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

Igor S.

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

Darkroom

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.

Administrator

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
yum list installed|grep apr

darkness

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:

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 ...

Igor S.

Quote from: darkness 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:

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

darkness

In 15min I got 76747 lines in /usr/local/apache/error_log which are the same, so I will paste just 2 of them:

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

Igor S.

Quote from: darkness 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:

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

darkness


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

Darkroom

Quote from: Administrator 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
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 

martexx

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]



Quote from: Administrator on March 14, 2017, 08:24:48 PM
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.
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
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
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
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

Igor S.

Quote from: darkness on March 16, 2017, 01:07:37 PM

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

Igor S.

Quote from: martexx 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]

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

billyf

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]#