Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ymatar

Pages: [1]
1
i reinstall OS twice and CWP

and i install it before many times first time see this

2
no i am sure i got 7
and i copy the command from cwp site

and no terminate

3
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:

4

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:

5
folder /usr/local/cwpsrv/htdocs/

empty

6
[root@srv5 ~]# ls /usr/local/cwpsrv/htdocs/admin/login/
ls: cannot access /usr/local/cwpsrv/htdocs/admin/login/: No such file or directory


7
[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;
}

8
note

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

9
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.

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

i got 404 Not Found on https:myIp:2031

11
Installation / new installation error
« on: May 19, 2018, 08:38:55 AM »
i got new server
install centos 7 new
and install cwp

got this error
-- Unit cwpsrv.service has begun starting up.                                                               
May 19 08:38:13 backup cwpsrv[3454]: cwpsrv: [emerg] IO_new_file("/etc/pki/tls/certs/hostname.crt") failed (S
May 19 08:38:13 backup cwpsrv[3454]: cwpsrv:configuration file /usr/local/cwpsrv/conf/cwpsrv.conf test failed
May 19 08:38:13 backup systemd[1]: cwpsrv.service: control process exited, code=exited status=1             
May 19 08:38:13 backup systemd[1]: Failed to start CentOS Web Panel service (daemon).                       
-- Subject: Unit cwpsrv.service has failed                                                                   
-- Defined-By: systemd                                                                                       
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel                                     
--                                                                                                           
-- Unit cwpsrv.service has failed.                                                                           
--                                                                                                           
-- The result is failed.                                                                                     
May 19 08:38:13 backup systemd[1]: Unit cwpsrv.service entered failed state.                                 
May 19 08:38:13 backup systemd[1]: cwpsrv.service failed.                                                   
May 19 08:38:18 backup systemd[1]: cwpsrv.service holdoff time over, scheduling restart.                     
May 19 08:38:18 backup systemd[1]: Starting CentOS Web Panel service (daemon)...                             
-- Subject: Unit cwpsrv.service has begun start-up                                                           
-- Defined-By: systemd                                                                                       
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel                                     
--                                                                                                           
-- Unit cwpsrv.service has begun starting up.                                                               
May 19 08:38:18 backup cwpsrv[3459]: cwpsrv: [emerg] IO_new_file("/etc/pki/tls/certs/hostname.crt") failed (S
May 19 08:38:18 backup cwpsrv[3459]: cwpsrv:configuration file /usr/local/cwpsrv/conf/cwpsrv.conf test failed
May 19 08:38:18 backup systemd[1]: cwpsrv.service: control process exited, code=exited status=1             
May 19 08:38:18 backup systemd[1]: Failed to start CentOS Web Panel service (daemon).                       
-- Subject: Unit cwpsrv.service has failed                                                                   
-- Defined-By: systemd                                                                                       
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel                                     
--                                                                                                           
-- Unit cwpsrv.service has failed.                                                                           
--                                                                                                           
-- The result is failed.                                                                                     
May 19 08:38:18 backup systemd[1]: Unit cwpsrv.service entered failed state.                                 
May 19 08:38:18 backup systemd[1]: cwpsrv.service failed. 

Pages: [1]