Author Topic: after finish install cwp on Centos7 got 404 Not Found on https:myIp:2031  (Read 12050 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
after finish install cwp on Centos7 got 404 Not Found on https:myIp:2031

i got 404 Not Found on https:myIp:2031

Offline
****
Re: after finish install cwp on Centos7 got 404 Not Found on https:myIp:2031
« Reply #1 on: February 05, 2020, 06:49:21 AM »
Run the following:

systemctl status cwp-phpfpm
systemctl status cwpsrv
Google Hangouts:  rcschaff82@gmail.com

Offline
*
Re: after finish install cwp on Centos7 got 404 Not Found on https:myIp:2031
« Reply #2 on: February 05, 2020, 06:52:33 AM »
no problem i think

got this 


systemctl status cwp-phpfpm
● cwp-phpfpm.service - The PHP FastCGI Process Manager
   Loaded: loaded (/usr/lib/systemd/system/cwp-phpfpm.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2020-02-04 12:17:38 CET; 19h ago
 Main PID: 1309 (php-fpm)
   CGroup: /system.slice/cwp-phpfpm.service
           └─1309 cwp-phpfpm: master process (/usr/local/cwp/php71/etc/php-fpm.conf)

Feb 04 12:17:38 **** systemd[1]: Started The PHP FastCGI Process Manager.
Feb 04 12:17:38 ***** php-fpm[1309]: [04-Feb-2020 12:17:38] WARNING: Nothing matches the include patter...ne 1.
Hint: Some lines were ellipsized, use -l to show in full.
[root@srv5 ~]# systemctl status cwpsrv
● cwpsrv.service - CentOS Web Panel service (daemon)
   Loaded: loaded (/usr/lib/systemd/system/cwpsrv.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2020-02-04 12:17:38 CET; 19h ago
  Process: 1389 ExecStart=/usr/local/cwpsrv/bin/cwpsrv (code=exited, status=0/SUCCESS)
  Process: 1319 ExecStartPre=/usr/local/cwpsrv/bin/cwpsrv -t (code=exited, status=0/SUCCESS)
 Main PID: 1408 (cwpsrv)
   CGroup: /system.slice/cwpsrv.service
           ├─1408 cwpsrv: master process /usr/local/cwpsrv/bin/cwpsrv
           ├─1413 cwpsrv: worker process
           └─1415 cwpsrv: worker process

Feb 04 12:17:38 **** systemd[1]: Starting CentOS Web Panel service (daemon)...
Feb 04 12:17:38 ***** cwpsrv[1319]: cwpsrv:the configuration file /usr/local/cwpsrv/conf/cwpsrv.conf sy...is ok
Feb 04 12:17:38 **** cwpsrv[1319]: cwpsrv:configuration file /usr/local/cwpsrv/conf/cwpsrv.conf test i...ssful
Feb 04 12:17:38 **** systemd[1]: Started CentOS Web Panel service (daemon).
Hint: Some lines were ellipsized, use -l to show in full.

Offline
*
Re: after finish install cwp on Centos7 got 404 Not Found on https:myIp:2031
« Reply #3 on: February 05, 2020, 06:57:25 AM »
note

i did not change any configuration
just update the fresh installed centos7 and install cwp

Offline
****
Re: after finish install cwp on Centos7 got 404 Not Found on https:myIp:2031
« Reply #4 on: February 05, 2020, 07:14:33 AM »
cat /usr/local/cwpsrv/conf/cwpsrv.conf 

ls /usr/local/cwpsrv/htdocs/admin/login/
Google Hangouts:  rcschaff82@gmail.com

Offline
*
Re: after finish install cwp on Centos7 got 404 Not Found on https:myIp:2031
« Reply #5 on: February 05, 2020, 07:20:50 AM »
[root@srv5 ~]# cat /usr/local/cwpsrv/conf/cwpsrv.conf
worker_processes  2;
events {
    worker_connections  2048;
}
http {
    include       mime.types;
    default_type  application/octet-stream;
    sendfile        on;
    keepalive_timeout  65;
    server_tokens off;
    client_max_body_size 128M;
    access_log  logs/access_log;

    server {
        listen       2030;
        listen       2086;
        server_name  localhost;
        rewrite "/cwp_([0-9a-zA-Z]{32})/(.*)" /$2;

        if ($server_port = 2030){
            return 301 https://$host:2031$request_uri;
        }
        if ($server_port = 2086){
            return 301 https://$host:2087$request_uri;
        }

        location / {
            root   /usr/local/cwpsrv/htdocs/admin;
            index  index.html index.htm index.php;

            # Includes
            include /usr/local/cwpsrv/conf/cwp_rewrite.conf;
            include /usr/local/cwpsrv/conf/cwp_services.conf;
            include /usr/local/cwpsrv/conf/include/*.conf;
            include /usr/local/cwpsrv/conf/cwp_panels.conf;

            location ~ \.php$ {
                try_files $uri =404;
                root /usr/local/cwpsrv/htdocs/admin;
                fastcgi_split_path_info ^(.+\.php)(/.+)$;
                fastcgi_read_timeout 600;
                fastcgi_pass    unix:/usr/local/cwp/php71/var/sockets/cwpsrv.sock;
                fastcgi_index   index.php;
                fastcgi_param   SCRIPT_FILENAME  $document_root$fastcgi_script_name;
                fastcgi_param   SCRIPT_NAME   $fastcgi_script_name;
                include                 fastcgi_params;
            }
        }
    }

    server {
        listen       2031 ssl;
        listen       2087 ssl;
        server_name  localhost;
        rewrite "/cwp_([0-9a-zA-Z]{32})/(.*)" /$2;

        ssl_session_timeout 90m;
        ssl_certificate     /etc/pki/tls/certs/hostname.crt;
        ssl_certificate_key /etc/pki/tls/private/hostname.key;
        ssl_protocols       TLSv1 TLSv1.1 TLSv1.2;
        ssl_ciphers         HIGH:!aNULL:!MD5;
        ssl_prefer_server_ciphers   on;
        error_page 497  https://$host:2087$request_uri;

        location / {
            root   /usr/local/cwpsrv/htdocs/admin;
            index  index.html index.htm index.php;

            # Includes
            include /usr/local/cwpsrv/conf/cwp_rewrite.conf;
            include /usr/local/cwpsrv/conf/cwp_services.conf;
            include /usr/local/cwpsrv/conf/include/*.conf;
            include /usr/local/cwpsrv/conf/cwp_panels.conf;

            location ~ \.php$ {
                try_files $uri =404;
                root /usr/local/cwpsrv/htdocs/admin;
                fastcgi_split_path_info ^(.+\.php)(/.+)$;
                fastcgi_read_timeout 600;
                fastcgi_pass    unix:/usr/local/cwp/php71/var/sockets/cwpsrv.sock;
                fastcgi_index   index.php;
                fastcgi_param   SCRIPT_FILENAME  $document_root$fastcgi_script_name;
                fastcgi_param   SCRIPT_NAME   $fastcgi_script_name;
                include                 fastcgi_params;
            }
        }
    }
    include /usr/local/cwpsrv/conf.d/*.conf;
}

Offline
*
Re: after finish install cwp on Centos7 got 404 Not Found on https:myIp:2031
« Reply #6 on: February 05, 2020, 07:21:37 AM »
[root@srv5 ~]# ls /usr/local/cwpsrv/htdocs/admin/login/
ls: cannot access /usr/local/cwpsrv/htdocs/admin/login/: No such file or directory


Offline
*
Re: after finish install cwp on Centos7 got 404 Not Found on https:myIp:2031
« Reply #7 on: February 05, 2020, 07:22:52 AM »
folder /usr/local/cwpsrv/htdocs/

empty

Offline
****
Re: after finish install cwp on Centos7 got 404 Not Found on https:myIp:2031
« Reply #8 on: February 05, 2020, 07:58:59 AM »
Run the following Commands in order

cd /usr/local/cwpsrv/htdocs

wget static.cdn-cwp.com/files/cwp/el7/cwp-el7-0.9.8.928.zip
unzip -o -q cwp-el7-0.9.8.928.zip
rm -f cwp-el7-0.9.8.928.zip

Google Hangouts:  rcschaff82@gmail.com

Offline
*
Re: after finish install cwp on Centos7 got 404 Not Found on https:myIp:2031
« Reply #9 on: February 05, 2020, 08:07:50 AM »

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(../../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(/usr/local/cwpsrv/htdocs/resources/admin/include/db_conn.php): failed to open stream: No such file or directory in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php on line 0

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

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

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

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

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

Warning: mysqli_connect(): (HY000/1045): Access denied for user ''@'localhost' (using password: NO) in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php on line 0

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

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

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

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

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

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

Warning: mysqli_connect(): (HY000/1045): Access denied for user ''@'localhost' (using password: NO) in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.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(../../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

Warning: mysqli_connect(): (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: mysqli_connect(): (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: mysqli_error() expects exactly 1 parameter, 0 given in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0
Could not connect:

Offline
*
Re: after finish install cwp on Centos7 got 404 Not Found on https:myIp:2031
« Reply #10 on: February 05, 2020, 08:08:53 AM »
now got login page and login by root then i got this
***************************************
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(../../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(/usr/local/cwpsrv/htdocs/resources/admin/include/db_conn.php): failed to open stream: No such file or directory in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php on line 0

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

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

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

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

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

Warning: mysqli_connect(): (HY000/1045): Access denied for user ''@'localhost' (using password: NO) in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php on line 0

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

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

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

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

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

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

Warning: mysqli_connect(): (HY000/1045): Access denied for user ''@'localhost' (using password: NO) in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.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(../../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

Warning: mysqli_connect(): (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: mysqli_connect(): (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: mysqli_error() expects exactly 1 parameter, 0 given in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0
Could not connect:

Offline
****
Re: after finish install cwp on Centos7 got 404 Not Found on https:myIp:2031
« Reply #11 on: February 05, 2020, 08:25:33 AM »
By Chance did you terminate the install script?

cd /usr/local/src

sh cwp-el7-latest

something went very wrong with your install

If that's no the script you have, you installed the os6 version
Google Hangouts:  rcschaff82@gmail.com

Offline
*
Re: after finish install cwp on Centos7 got 404 Not Found on https:myIp:2031
« Reply #12 on: February 05, 2020, 09:02:13 AM »
no i am sure i got 7
and i copy the command from cwp site

and no terminate

Offline
****
Re: after finish install cwp on Centos7 got 404 Not Found on https:myIp:2031
« Reply #13 on: February 05, 2020, 09:07:38 AM »
Not sure then. Just installed 3 VM's with it flawlessly.  So something fubared on your machine.  Just try the reinstall and hopefully everything works out.
Google Hangouts:  rcschaff82@gmail.com

Offline
*
Re: after finish install cwp on Centos7 got 404 Not Found on https:myIp:2031
« Reply #14 on: February 05, 2020, 09:12:55 AM »
i reinstall OS twice and CWP

and i install it before many times first time see this