Author Topic: CentOS6 Upgrade  (Read 25398 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
CWP server provider with included FREE Managed support.
http://www.studio4host.com/

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