Author Topic: CentOS6 Upgrade  (Read 24623 times)

0 Members and 1 Guest are viewing this topic.

Offline
**
Re: CentOS6 Upgrade
« Reply #30 on: March 17, 2017, 07:05:22 PM »
Still no mod_security

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 #31 on: March 17, 2017, 08:12:02 PM »
Hello,

My hosting provider did the process as mentioned above, but it is giving error. According to him. :-

Quote
"There is an issue while upgrading Apache using the script being provided by CentOS webpanel as the Apache service doesn't start after getting upgraded to Apache 2.4.  The below error was showing while starting Apache service after the upgrade."

Code: [Select]
==========================================
[root@vps modsecurity-2.9.1]# /etc/init.d/httpd restart
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]
==========================================

Offline
**
Re: CentOS6 Upgrade
« Reply #32 on: March 18, 2017, 07:53:22 AM »
Hello again,
I just noticed something. I got 1 machine with 90 days uptime on which I updated CWP manually. It passed around 50 hours after the update and the version is 0.9.8.188. I got 1 more machine on which I`m developing "OpenVZ with CWP" and there I made a fresh install of CWP. On the second machine the version is 0.9.8.194. Why is this difference?
Current uptime:
UNIX is a very simple OS, but you have to be a GENIUS to understand it ...

Offline
*
Re: CentOS6 Upgrade
« Reply #33 on: March 18, 2017, 09:32:42 PM »
On of my servers, after upgrade, got the same problem with apache:

Code: [Select]
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]

Any tip?

Offline
**
Re: CentOS6 Upgrade
« Reply #34 on: March 19, 2017, 03:14:13 PM »
Try:
Login to CWP6
Go to:
Apache Settings -> Apache Re-Build
Select:
Apache 2.4.25 & suPHP 0.7.2
Press:
Next -> Start compiler in background
After it finishes 99.99% your problems with Apache will be gone. Have fun.
Current uptime:
UNIX is a very simple OS, but you have to be a GENIUS to understand it ...

Offline
**
Re: CentOS6 Upgrade
« Reply #35 on: March 20, 2017, 06:25:09 AM »
I didn`t get answer why is the difference in the versions so I decided to take the things under my control even with the risk to blow up my system. I found that the cron for updating CWP is not working. I go to /scripts/ and I run 2 times "update_cwp" manually. Now I got CWP version: 0.9.8.195. I also added "0 0 * * * /scripts/update_cwp" as a "Add Full Custom Cron Jobs".
Current uptime:
UNIX is a very simple OS, but you have to be a GENIUS to understand it ...

Offline
*
Re: CentOS6 Upgrade
« Reply #36 on: March 20, 2017, 06:51:04 AM »
Already tryied to rebuild apache, but that didn't work.

Offline
*
Re: CentOS6 Upgrade
« Reply #37 on: March 20, 2017, 01:03:06 PM »
 :P No one answered so let me try again.

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

Offline
**
Re: CentOS6 Upgrade
« Reply #38 on: March 21, 2017, 04:44:06 AM »

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]#
Did you try:
1. rm -rf cwpsrv.sh
2. mv cwpsrv.sh.2 cwpsrv.sh
3. sh cwpsrv.sh
Current uptime:
UNIX is a very simple OS, but you have to be a GENIUS to understand it ...

Offline
**
Re: CentOS6 Upgrade
« Reply #39 on: March 21, 2017, 04:44:55 AM »
Already tryied to rebuild apache, but that didn't work.
Can you give some error log to see what`s going on?
Current uptime:
UNIX is a very simple OS, but you have to be a GENIUS to understand it ...

Offline
*
Re: CentOS6 Upgrade
« Reply #40 on: March 21, 2017, 01:30:19 PM »
Thanks for responding. I did not because I got the error the very first time i tried.  But since I tried multiple times it looks like it kept renaming the old one.  That's why i have the .sh.2


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]#
Did you try:
1. rm -rf cwpsrv.sh
2. mv cwpsrv.sh.2 cwpsrv.sh
3. sh cwpsrv.sh

Offline
**
Re: CentOS6 Upgrade
« Reply #41 on: March 22, 2017, 08:05:20 AM »
Finaly got cwp version 0.9.8.188, but in mysql get this:

The configuration file now needs a secret passphrase (blowfish_secret).

1.Cant find info how to fix it or were..... help

2.And the second thing is that I cant import mysql db size 1m, loads loads and then - The connection was reset... help...its urgent....

Code: [Select]
MySQL info

    Server: Localhost via UNIX socket
    Server type: MariaDB
    Server version: 10.1.22-MariaDB - MariaDB Server
    Protocol version: 10
    User: libau_bad@localhost
    Server charset: UTF-8 Unicode (utf8)

     nginx/1.10.2
    Database client version: libmysql - mysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a93b051f3827e02749b83 $
    PHP extension: mysqliDocumentation curlDocumentation mbstringDocumentation
    PHP version: 7.0.16

 Version information: 4.6.6 (up to date)
« Last Edit: March 22, 2017, 08:24:33 AM by johnny09 »

Offline
**
Re: CentOS6 Upgrade
« Reply #42 on: March 22, 2017, 01:15:52 PM »
The strange part is that the blow fish secret is filled already at
usr/local/apache/htdocs/phpmyadmin/config.inc.php
line 17
Code: [Select]
$cfg['blowfish_secret'] = 'a8b7c6d'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
Still no luck of fixing it and cant import db? Maybe reinstall myphp or something without loosing data???

Offline
*
Re: CentOS6 Upgrade
« Reply #43 on: March 22, 2017, 02:21:06 PM »
The strange part is that the blow fish secret is filled already at
usr/local/apache/htdocs/phpmyadmin/config.inc.php

this location is not in use anymore so you can delete that folder
/usr/local/apache/htdocs/phpmyadmin/
and use new link for phpmyadmin inside your cwp
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 #44 on: March 22, 2017, 02:29:45 PM »
OK, if that is the old one, were can I find the new one to check the secret?