CentOS6 Upgrade

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

Previous topic - Next topic

zakrpa

Must be 5.5 mysql version...

asterix99

Quote from: y0us3f on April 06, 2017, 12:05:22 AM
Updating Apache causes problems

apache.sh: line 137: unexpected EOF while looking for matching ``'
apache.sh: line 146: unexpected token `▒' in conditional command
apache.sh: line 146: syntax error: unexpected end of file
[root@server src]#

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]



Same here... after upgrade httpd can't start and got the error...

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

Any help ?
Thanks

Administrator

#92
delete line matching mod_antiloris.so from /usr/local/apache/conf/httpd.conf
you can use this command
sed -i '/mod_antiloris/d' /usr/local/apache/conf/httpd.conf

ida

Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 430 of /usr/local/apache/conf/httpd.conf: Syntax error on line 1 of /usr/local/apache/conf.d/ssl.conf: module ssl_module is built-in and can't be loaded
[FAILED]

Administrator

delete that file and if you use ssl then just install ssl for any domain and it should be fixed.
rm -f /usr/local/apache/conf.d/ssl.conf

ida

#95
Thanks, it worked. After restarting, and adding cwpro

Warning: [obfuscated](): (HY000/2002): No such file or directory in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0

Warning: [obfuscated](): (HY000/2002): No such file or directory in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0
**Check your MySQL root password in: /usr/local/cwpsrv/htdocs/resources/admin/include/db_conn.php and /root/.my.cnf


Warning: [obfuscated]() expects exactly 1 parameter, 0 given in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0
Could not connect:

And on the login page:2030/login.php 404 error

triscele

Hello,

The update was partially unsuccessful.

I had to restore a backup of my server because the CWP restore also did not work.

CWP update was successfull, but the apache not.

I have this for every domains and subdomains:

Forbidden
You don't have permission to access / on this server.

Apache with a lot "Internal Server Error" errors.

fredo

another server..another problem... this is really a mess!!
mysql 5.6.30 was installed.. now when I ran the cwp update script..it shows this...

  inflating: phpMyAdmin-4.6.6-all-languages/themes/pmahomme/jquery/images/ui-icons_888888_256x240.png
  inflating: phpMyAdmin-4.6.6-all-languages/themes/pmahomme/jquery/images/ui-icons_cd0a0a_256x240.png
  inflating: phpMyAdmin-4.6.6-all-languages/themes/pmahomme/jquery/jquery-ui-1.11.4.css
  inflating: phpMyAdmin-4.6.6-all-languages/themes/pmahomme/layout.inc.php
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.1 restore

I Ran cwpsrv.sh.1 restore

Removed:
  cwpphp.x86_64 0:7.0.17-1               cwpsrv.x86_64 0:1.10.2-4

Complete!
Stopping cwpsrvd:                                          [FAILED]
Starting cwpsrvd: (98)Address already in use: make_sock: could not bind to address [::]:2030
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:2030
no listening sockets available, shutting down
Unable to open logs
                                                           [FAILED]

What now???
any ideas?

fredo

Well.. I´ve got lucky..

As mentioned before, I couldn´t do a cwpserver restore after I tried to update my cwp 0.0.8.14 to newer version..
so after severall atempts to make it work.. I decide an extreme mesure..
made another backup of DDBB of my domains, and domains and copy on another directory..
then... I made a "clean" install using sh cwa-latest

It worked out! I thought I had to reinstall mysql and recreate domains and stuff.. but to my surprise..everything was there...
working..and with CWP version: 0.9.8.17 ! (i had 0.9.8.14)

guess I´ve been lucky..






Administrator

Quote from: ida on April 06, 2017, 10:38:46 AM
And on the login page:2030/login.php 404 error

new url is page:2030/index.php

Quote from: triscele on April 06, 2017, 02:29:29 PM
Forbidden
You don't have permission to access / on this server.

Apache with a lot "Internal Server Error" errors.

You can check for all errors in the log files and rebuild vhosts or apache depending on the issue.


Quote from: fredo on April 06, 2017, 05:09:25 PM
Stopping cwpsrvd:                                          [FAILED]
Starting cwpsrvd: (98)Address already in use: make_sock: could not bind to address [::]:2030
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:2030
no listening sockets available, shutting down
Unable to open logs
                                                           [FAILED]

What now???
any ideas?

have you tried to kill the process and/or do a simple reboot of the server ?

For all
All issues you are reporting can be done by running rebuild of the cwp-httpd and rebuild of the vhosts from cwp, all you need is to read logs.
http://wiki.centos-webpanel.com/service-log-paths

fredo

Quote from: Administrator on April 06, 2017, 08:27:49 PM
Quote from: ida on April 06, 2017, 10:38:46 AM
And on the login page:2030/login.php 404 error

Quote from: fredo on April 06, 2017, 05:09:25 PM
Stopping cwpsrvd:                                          [FAILED]
Starting cwpsrvd: (98)Address already in use: make_sock: could not bind to address [::]:2030
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:2030
no listening sockets available, shutting down
Unable to open logs
                                                           [FAILED]

What now???
any ideas?

have you tried to kill the process and/or do a simple reboot of the server ?

Yes! i did it several times, but the pid for cwp was always running... only rebooting the server stoped it!

For all
All issues you are reporting can be done by running rebuild of the cwp-httpd and rebuild of the vhosts from cwp, all you need is to read logs.
http://wiki.centos-webpanel.com/service-log-paths

at that moment could´t get cwp to work and all the sites where down logically.. tried restore and didn't work out..
thats why did a "clean" install..

Gogo

#101
After running CWP Upgrade script I got this error:
Starting cwpsrv: cwpsrv: [emerg] SL_CTX_use_PrivateKey_file("/etc/pki/tls/private/hostname.key") failed (SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch) [FAILED]

ida

Thanks Administrator, but i have always this error:

Warning: [obfuscated](): (HY000/2002): No such file or directory in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0

Warning: [obfuscated](): (HY000/2002): No such file or directory in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0
**Check your MySQL root password in: /usr/local/cwpsrv/htdocs/resources/admin/include/db_conn.php and /root/.my.cnf


Warning: [obfuscated]() expects exactly 1 parameter, 0 given in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0
Could not connect:

ida

solved with:

service mysqld start

thanks.

TheRavenKing

After fixing many issue I am only left with the https [letsencrypt] for the server not working.

All 3 ssl checkers say it is all fine, but I can't login with https.

Any one any ideas?

Thanks