New in CWP Edge / LTSFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers. Available now in the Edge-Latest and LTS-Stable versions. Discuss in the forum

LSPHP / Cache ›
CWP Secure KernelKernel-level protectionEvery site in its own sandbox

Every PHP site, cron job and SSH session runs in its own profile that the kernel enforces. A hacked WordPress cannot read other accounts’ files, and crypto miners and unexpected processes are stopped. Discuss in the forum

Secure Kernel ›
CWP DataCenter PanelFree for CWPpro serversAll your servers on one screen

Manage all your CWP servers from one panel: live health, every hosting account, CWP and OS updates on many servers at once, backups, SSL, firewall and Telegram alerts. Discuss in the forum

DataCenter Panel ›
CWP Backup ServerFree for CWPpro serversBackups that ransomware cannot reach

Protected backups of all your CWP servers on a separate machine. Snapshots a hosting server cannot delete, and restore of files, databases, mail and whole accounts in the admin and user panel. Discuss in the forum

Backup Server ›
WordPress ManagerIncluded & freeWordPress managed from the panel

Install, secure, update, back up and clone WordPress sites without FTP. Updates are tested on a staging clone first and applied to the live site only when they pass, with a backup taken first. Discuss in the forum

WordPress Manager ›
CWP CageIsolationEvery account in its own cage

Per-account isolation built from Linux namespaces and cgroups. A break-in or a runaway script on one site cannot reach another account, the panel or the rest of the server; resource limits per hosting package. Discuss in the forum

CWP Cage ›
Script InstallerOne-click appsWordPress, Joomla, Moodle and more in one click

CWP’s own script installer in the user panel: pick an app, choose the domain and folder, and it is live in seconds with its database and admin login created automatically. Ready for LSPHP and LSAPI-Cache. Discuss in the forum

Script Installer ›
DNS ClusterFor every control panelOne DNS cluster for all your servers

Your servers keep creating domains as usual; the zones are collected into one authoritative PowerDNS cluster you control, with DNSSEC, roles and a full activity trail. Accepts CWP, cPanel, Plesk, DirectAdmin and BIND. Discuss in the forum

DNS Cluster ›
CWP BillingFree to useBilling and support system for hosting providers

Clients, services, invoices, payments, domains, server provisioning and support tickets in one place. All gateways, server modules and registrars are free, with free migration from WHMCS, ClientExec and Blesta. Discuss in the forum

CWP Billing ›
CWPproFrom $1.49 per monthEvery CWP feature unlocked

CWPpro is the professional version of Control Web Panel: all features, unlimited accounts, the latest CWP version and security fixes first. $1.49 per month or $11.99 per year. Discuss in the forum

Get CWPpro ›

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