New in CWP Edge-LatestFree 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, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

CWP Upgrade Horror

Started by CeeO2, April 10, 2017, 06:58:31 AM

Previous topic - Next topic

CeeO2

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:

Administrator


mouchoon

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

Administrator

looks strange, you can try to run cwp upgrade and if it fails you should contact support
sh /scripts/update_cwp

mazcabral

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';
?>