Author Topic: CWP Upgrade Horror  (Read 13321 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
CWP Upgrade Horror
« on: April 10, 2017, 06:58:31 AM »
Hi there. Up to now I've enjoyed using CWP script until yesterday when I made the mistake of upgrading using the instruction given above. From the moment I saw the incorrect grammar in the title, I got nervous:

THIS ARE UPGRADE INSTRUCTIONS ONLY FOR CWP VERSION 0.9.8.153 and 0.9.8.154

Nevertheless, I ignored this sign, followed the instructions and upgraded CWP and Apache. I did not upgrade MySQL because my version was higher than v5.1. However, upgrading was easily the worst mistake I've ever done for now while the 'upgrade' was successful as far as I can see, I am no longer able to login to CWP, my website is not showing (I get a 502 Bad Gateway message) and I'm having to hand fix everything without knowing exactly what to do.

Please take a look at the details below. Anything anyone can suggest to get me back on track would be appreciated.

Thanks.


My system info:

MySQL: v5.7
PHP: v5.7
CentOS: V6.9 (final)
CWP: 0.9.8.154

These are the error messages I get while trying to connect at https://mydomain.com:2030

Warning: main(../../resources/admin/include/db_conn.php): failed to open stream: No such file or directory in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0

Warning: main(): Failed opening '../../resources/admin/include/db_conn.php' for inclusion (include_path='.:/usr/local/cwp/php71/lib/php') in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0

Warning: main(../../resources/admin/include/postfix.php): failed to open stream: No such file or directory in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0

Warning: main(): Failed opening '../../resources/admin/include/postfix.php' for inclusion (include_path='.:/usr/local/cwp/php71/lib/php') in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0

Notice: Undefined variable: db_host_postfix in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0

Notice: Undefined variable: db_user_postfix in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0

Notice: Undefined variable: db_pass_postfix in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0

Notice: Undefined variable: db_name_postfix in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0

Warning: [obfuscated](): (HY000/1045): Access denied for user ''@'localhost' (using password: NO) in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0

Notice: Undefined variable: db_host in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0

Notice: Undefined variable: db_user in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0

Notice: Undefined variable: db_pass in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0

Notice: Undefined variable: db_name in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0

Warning: [obfuscated](): (HY000/1045): Access denied for user ''@'localhost' (using password: NO) 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:

Offline
*
Re: CWP Upgrade Horror
« Reply #1 on: April 10, 2017, 12:25:01 PM »
can you contact us so we can check it
http://centos-webpanel.com/contact
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: CWP Upgrade Horror
« Reply #2 on: April 28, 2017, 12:00:29 AM »
same problem for me

how to solve this

Warning: main(../../resources/admin/include/postfix.php): failed to open stream: No such file or directory in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0
 
Warning: main(): Failed opening '../../resources/admin/include/postfix.php' for inclusion (include_path='.:/usr/local/cwp/php71/lib/php') in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0

Notice: Undefined variable: db_host_postfix in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0 
Notice: Undefined variable: db_user_postfix in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0

Notice: Undefined variable: db_pass_postfix in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0
Notice: Undefined variable: db_name_postfix in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0

Warning: [obfuscated](): (HY000/1045): Access denied for user ''@'localhost' (using password: NO) in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0

Offline
*
Re: CWP Upgrade Horror
« Reply #3 on: April 28, 2017, 07:40:07 AM »
looks strange, you can try to run cwp upgrade and if it fails you should contact support
Code: [Select]
sh /scripts/update_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: CWP Upgrade Horror
« Reply #4 on: November 28, 2017, 05:20:13 AM »
THE SOLUTION FOR ME:

Create the postfix.php in /usr/local/cwpsrv/htdocs/resources/admin/include/

Code: [Select]
<?php
/* MySQL hostname [ localhost (127.0.0.1 via TCP/IP) ] */
$db_host_postfix = "localhost";

/* The name of the database */
$db_name_postfix = "postfix";

/* MySQL database username */
$db_user_postfix = "postfix";

/* MySQL database password */
$db_pass_postfix = 'postfix-password';
?>