Author Topic: CentOS6 Upgrade  (Read 265240 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Re: CentOS6 Upgrade
« Reply #150 on: July 18, 2017, 12:43:20 PM »
Hi, I did the update but apache does not start... I'll explain.

1. After "sh apache.sh" i got:
Code: [Select]
Stopping httpd:                                            [FAILED]
Starting httpd: AH00526: Syntax error on line 66 of /usr/local/apache/conf/httpd.conf:
Invalid command 'User', perhaps misspelled or defined by a module not included in the server configuration
                                                                 [FAILED]
Apache has been upgraded

Solution to the above error...
I edited the file '/usr/local/apache/conf/httpd.conf' and added the line below:
Code: [Select]
LoadModule unixd_module modules/mod_unixd.so
2. I tried to start Apache again and I got...
Code: [Select]
AH00526: Syntax error on line 119 of /usr/local/apache/conf/httpd.conf:
Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration

Solution to the above error...
Code: [Select]
LoadModule access_compat_module modules/mod_access_compat.so
3. Third try to start Apache and I got...
Code: [Select]
Tue Jul 18 09:13:18.217682 2017] [core:warn] [pid 24901:tid 139660178646784] AH00117: Ignoring deprecated use of DefaultType in line 286 of /usr/local/apache/conf/httpd.conf.
AH00526: Syntax error on line 10 of /usr/local/apache/conf/extra/httpd-userdir.conf:
Invalid command 'UserDir', perhaps misspelled or defined by a module not included in the server configuration

Solution to the above error...
Code: [Select]
LoadModule mod_userdir modules/mod_userdir.so
4. Fourth attempt to start Apache...
Code: [Select]
httpd: Syntax error on line 57 of /usr/local/apache/conf/httpd.conf: Can't locate API module structure `mod_userdir' in file /usr/local/apache/modules/mod_userdir.so: /usr/local/apache/modules/mod_userdir.so: undefined symbol: mod_userdir
I'm doing something wrong?

Info:
SO: CentOS 6.8
CWP previous version: 0.9.8.154
CWP after update: cwpsrv-1.10.2-4.x86_64
ApacheServer version: Apache/2.4.26 (Unix) / Server built: Jun 30 2017 03:36:15
MySQL: mysql  Ver 14.14 Distrib 5.7.18, for Linux (x86_64) using  EditLine wrapper
PHP: PHP 5.6.24 (cli) (built: Jul 14 2017 15:04:39)
« Last Edit: July 18, 2017, 12:45:33 PM by joaolm »

Offline
*
Re: CentOS6 Upgrade
« Reply #151 on: July 18, 2017, 06:45:15 PM »
try checking your httpd.conf file, maybe you have some double include values
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 #152 on: July 18, 2017, 07:48:05 PM »
try checking your httpd.conf file, maybe you have some double include values
We have 2 servers with the old CWP version (0.9.8.154).

Before doing the update on the production server, I created a virtual machine and installed CWP 0.9.8.154 to test ...

This a clean install of CWP version 0.9.8.154. the only thing I did before updating, was to create some users ( CWP.admin > User Accounts > New Account ).

Is there anything else I can do to try to solve the problem?

Offline
*
Re: CentOS6 Upgrade
« Reply #153 on: July 19, 2017, 06:47:02 AM »
you can contact our support to check this for you since we can't know exact issue without checking your server.
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 #154 on: July 19, 2017, 03:24:40 PM »
 :(
The journey continues...

Apache started after rebuilding it to version 2.4.25.
CWP6.admin > Apache Settings > Apache Re-Build > Apache 2.4.25 & suPHP 0.7.2

I found that httpd.conf in use after the rebuild was similar to the httpd.conf.rpmnew created on the manual update.

It looks like apache.sh is messing up the httpd.conf, in the manual update...

To make things worse... when a go to User Accounts > List Accounts a got the error below...


Edit: i tried to put an image with tool for images, but it didn't show... here is the link
http://imgur.com/a/zEJZw






« Last Edit: July 19, 2017, 03:27:17 PM by joaolm »

Offline
*
Re: CentOS6 Upgrade
« Reply #155 on: July 21, 2017, 06:50:43 AM »
you can delete your default httpd.conf and then reinstall httpd server (it will create new conf file)

Code: [Select]
yum reinstall cwp-httpd
yum reinstall cwp-suphp

also check this for issue with datatables
http://forum.centos-webpanel.com/centos-6-problems/can't-list-user-accounts-after-mysql-update/msg12630/?topicseen#msg12630
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

Offline
*
Re: CentOS6 Upgrade
« Reply #156 on: August 18, 2017, 02:28:15 AM »
Unable to upgrade MySQL version: 5.1.73 Getting the following error:
mkdir: cannot create directory `/home/backup': File exists
-- Warning: Skipping the data of table mysql.event. Specify the --events option explicitly.
Stopping mysqld:                                           [  OK  ]
curl: (7) couldn't connect to host
error: https://mirror.webtatic.com/yum/RPM-GPG-KEY-webtatic-andy: import read failed(2).
Retrieving http://mirror.webtatic.com/yum/el6/latest.rpm
warning: /var/tmp/rpm-tmp.zlyRQZ: Header V4 DSA/SHA1 Signature, key ID cf4c4ff9: NOKEY
Preparing...                ########################################### [100%]
   package webtatic-release-6-9.noarch is already installed
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.solarvps.com
 * extras: bay.uchicago.edu
 * rpmforge: repoforge.mirror.constant.com
 * updates: mirrors.centos.webair.com
Setting up Install Process
No package yum-plugin-replace available.
Error: Nothing to do
Loaded plugins: fastestmirror
Usage: yum [options] COMMAND

List of Commands:

check          Check for problems in the rpmdb
check-update   Check for available package updates
clean          Remove cached data
deplist        List a package's dependencies
distribution-synchronization Synchronize installed packages to the latest available versions
downgrade      downgrade a package
erase          Remove a package or packages from your system
groupinfo      Display details about a package group
groupinstall   Install the packages in a group on your system
grouplist      List available package groups
groupremove    Remove the packages in a group from your system
help           Display a helpful usage message
history        Display, or use, the transaction history
info           Display details about a package or group of packages
install        Install a package or packages on your system
list           List a package or groups of packages
load-transaction load a saved transaction from filename
makecache      Generate the metadata cache
provides       Find what package provides the given value
reinstall      reinstall a package
repolist       Display the configured software repositories
resolvedep     Determine which package provides the given dependency
search         Search package details for the given string
shell          Run an interactive yum shell
update         Update a package or packages on your system
upgrade        Update packages taking obsoletes into account
version        Display a version for the machine and/or available repos.


Command line error: no such option: --replace-with

Offline
*
Re: CentOS6 Upgrade
« Reply #157 on: August 28, 2017, 06:25:19 AM »
Hello Admin

my cwp version is little then this you mentioned

CWP version: 0.9.8.155

so can i use the same procedure to upgrade or something else

Offline
*
Re: CentOS6 Upgrade
« Reply #158 on: August 28, 2017, 10:01:43 PM »
shashank
- you should disable webtatic repo in your yum configuration probably in the folder /etc/yum.repos.d/ and then check your yum again

kajlaajay
- that is an very old version of cwp, latest for centos 6 is 0.9.8.267 (currently by checking latest installer) so you should proceed with an update :)

VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

Offline
*
Re: CentOS6 Upgrade
« Reply #159 on: September 05, 2017, 08:10:44 PM »
I cannot get past the following when upgrading from 0.9.8.155

Code: [Select]
extracting: phpMyAdmin-4.6.6-all-languages/themes/pmahomme/screen.png
  inflating: phpMyAdmin-4.6.6-all-languages/themes/pmahomme/sprites.lib.php
  inflating: phpMyAdmin-4.6.6-all-languages/themes/sprites.css.php
  inflating: phpMyAdmin-4.6.6-all-languages/themes/svg_gradient.php
  inflating: phpMyAdmin-4.6.6-all-languages/transformation_overview.php
  inflating: phpMyAdmin-4.6.6-all-languages/transformation_wrapper.php
  inflating: phpMyAdmin-4.6.6-all-languages/url.php
  inflating: phpMyAdmin-4.6.6-all-languages/user_password.php
  inflating: phpMyAdmin-4.6.6-all-languages/version_check.php
  inflating: phpMyAdmin-4.6.6-all-languages/view_create.php
  inflating: phpMyAdmin-4.6.6-all-languages/view_operations.php
Seems like something went wrong
If you have problem with CWP try run cwpsrv.sh restore

Restore is also not working... Where should I start looking to resolve this problem?

Offline
*
Re: CentOS6 Upgrade
« Reply #160 on: September 06, 2017, 07:43:31 AM »
this is too short log info to know any details but you can send what exactly doesn't work now.
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

Offline
*
Re: CentOS6 Upgrade
« Reply #161 on: September 06, 2017, 12:05:24 PM »
So, this was just the CWP part of the upgrade.  I did not have to update mysql because I already have MariaDB, and I did not do the apache upgrade yet because the cwp porition failed.

What log should I look at to give you more information?

I simply cannot get back into the CWP interface.  The upgrade seems to have not completed.

Offline
*
Re: CentOS6 Upgrade
« Reply #162 on: September 08, 2017, 12:42:44 AM »
Hi,
My cwp version is  0.9.8.155
trying  upgrade  cwp but not working.

Code: [Select]
extracting: phpMyAdmin-4.6.6-all-languages/themes/pmahomme/screen.png
  inflating: phpMyAdmin-4.6.6-all-languages/themes/pmahomme/sprites.lib.php
  inflating: phpMyAdmin-4.6.6-all-languages/themes/sprites.css.php
  inflating: phpMyAdmin-4.6.6-all-languages/themes/svg_gradient.php
  inflating: phpMyAdmin-4.6.6-all-languages/transformation_overview.php
  inflating: phpMyAdmin-4.6.6-all-languages/transformation_wrapper.php
  inflating: phpMyAdmin-4.6.6-all-languages/url.php
  inflating: phpMyAdmin-4.6.6-all-languages/user_password.php
  inflating: phpMyAdmin-4.6.6-all-languages/version_check.php
  inflating: phpMyAdmin-4.6.6-all-languages/view_create.php
  inflating: phpMyAdmin-4.6.6-all-languages/view_operations.php
Seems like something went wrong
If you have problem with CWP try run cwpsrv.sh restore

Then, http://xxx.xxx.xxx.xxx:2030 is white screen.

i dont upgrade cwp , try , try agin. but not upgrade.

Offline
*
Re: CentOS6 Upgrade
« Reply #163 on: September 09, 2017, 02:17:10 AM »
Hi
I got same error: Seems like something went wrong If you have problem with CWP try run cwpsrv.sh restore
after "sh cwpsrv.sh"
and panel stopped working.

cwp version is  0.9.8.155, mysql - 5.5.50, Apache/2.4.18, PHP 5.6.29, CentOS release 6.9 (Final)

In /usr/local/cwpsrv/logs/error_log
2017/09/09 03:48:15 [error] 2629#0: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error:  <br>The encoded file <b>/usr/local/cwpsrv/htdocs/admin/index.php</b> has expired. in Unknown on line 0" while reading response header from upstream, client: Y.Y.Y.Y, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/usr/local/cwp/php71/var/sockets/cwpsrv.sock:", host: "X.X.X.X:2030"
2017/09/09 03:48:18 [error] 2629#0: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error:  <br>The encoded file <b>/usr/local/cwpsrv/htdocs/admin/index.php</b> has expired. in Unknown on line 0" while reading response header from upstream, client: Y.Y.Y.Y, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/usr/local/cwp/php71/var/sockets/cwpsrv.sock:", host: "X.X.X.X:2030"

In /usr/local/cwp/php71/var/log/php-fpm.log
[09-Sep-2017 03:48:15] WARNING: [pool cwpsrv] child 2653 said into stderr: "NOTICE: PHP message: PHP Fatal error:  <br>The encoded file <b>/usr/local/cwpsrv/htdocs/admin/index.php</b> has expired. in Unknown on line 0"
[09-Sep-2017 03:48:18] WARNING: [pool cwpsrv] child 2653 said into stderr: "NOTICE: PHP message: PHP Fatal error:  <br>The encoded file <b>/usr/local/cwpsrv/htdocs/admin/index.php</b> has expired. in Unknown on line 0"

(for now server works fine - was restored from backup)

Offline
*
Re: CentOS6 Upgrade
« Reply #164 on: September 11, 2017, 12:27:52 PM »
the best would be to run upgrade scripts and if they fail to check them manually and see what exactly failed on your server.
Don't forget that you need to have apache only webserver when running upgrade.
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.