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

Pages: [1]
1
CentOS-WebPanel Bugs / Re: Cant login to CWP User :2083
« on: February 23, 2023, 05:02:03 PM »
Yes I used CWP install script and everything else is working alright.
OS: CentOS Linux release 7.9.2009 (Core)
Version:0.9.8.1150


have you already change the template ?

Here is the result of:

Code: [Select]
yum info cwpsrv
Code: [Select]
Installed Packages
Name        : cwpsrv
Arch        : x86_64
Version     : 1.15.10
Release     : 4
Size        : 852 k
Repo        : installed
From repo   : cwp
Summary     : CWP daemon
URL         : http://centos-webpanel.com
License     : Proprietary License
Description : This package provides cwpsrv service

I installed CWP using following steps
Code: [Select]
yum update -y
Code: [Select]
yum install wget
Code: [Select]
cd /usr/local/share
Code: [Select]
wget http://centos-webpanel.com/cwp-el7-latest
Code: [Select]
sh cwp-el7-latest
Code: [Select]
shutdown -r now
Then after creating first client account and tried to login but after showing successfully logged in the panel throws me back to login page

I checked error log using
Code: [Select]
tail -f /usr/local/cwpsrv/logs/error_log
Code: [Select]
2023/02/22 14:40:59 [notice] 437#0: *9173 "^/v1/([^/]+)/?$" matches "/v1/valid_user/", client: 127.0.0.1, server: localhost, request: "POST /v1/valid_user/ HTTP/1.1", host: "127.0.0.1:2302"
2023/02/22 14:40:59 [notice] 437#0: *9173 rewritten data: "/v1/index.php", args: "method=", client: 127.0.0.1, server: localhost, request: "POST /v1/valid_user/ HTTP/1.1", host: "127.0.0.1:2302"
2023/02/22 14:41:00 [info] 437#0: *9173 client 127.0.0.1 closed keepalive connection
2023/02/22 14:41:00 [error] 437#0: *9171 FastCGI sent in stderr: "PHP message: PHP Warning:  file_exists(): open_basedir restriction in effect. File(/usr/local/cwp/php71/tmp/session) is not within the allowed path(s): (/tmp/:/usr/local/cwpsrv/var/services/users/login/:/usr/local/cwpsrv/var/services/users/cwp_theme/:/usr/local/cwpsrv/var/services/twig/) in /usr/local/cwpsrv/var/services/users/login/index.php on line 0" while reading response header from upstream, client: 122.129.80.120, server: localhost, request: "POST /login/index.php?acc=validate HTTP/1.1", upstream: "fastcgi://unix:/usr/local/cwp/php71/var/sockets/login.sock:", host: "srv.mydomain.com:2083", referrer: "https://srv.mydomain.com:2083/login/"
2023/02/22 14:41:00 [notice] 436#0: *9179 "^/v1/([^/]+)/?$" matches "/v1/generaluser/", client: 127.0.0.1, server: localhost, request: "POST /v1/generaluser/ HTTP/1.1", host: "127.0.0.1:2302"
2023/02/22 14:41:00 [notice] 436#0: *9179 rewritten data: "/v1/index.php", args: "method=", client: 127.0.0.1, server: localhost, request: "POST /v1/generaluser/ HTTP/1.1", host: "127.0.0.1:2302"
2023/02/22 14:41:00 [info] 436#0: *9179 client 127.0.0.1 closed keepalive connection
2023/02/22 14:41:00 [info] 436#0: *9181 client 127.0.0.1 closed keepalive connection
2023/02/22 14:41:00 [error] 437#0: *9171 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined index: THEME in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Notice:  Trying to get property 'apache_additional' of non-object in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Notice:  Trying to get property 'dns' of non-object in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Notice:  Trying to get property 'fant3menu' of non-object in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Notice:  Undefined index: LANG in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Notice:  Trying to get property 'cloudlinux' of non-object in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Notice:  Trying to get property 'fsl' of non-object in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Notice:  Trying to get property 'userpma' of non-object in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Notice:  Trying to get property 'postgres' of non-object in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Notice:  Trying to get property 'softmenu' of non-object in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Notice:  Trying to get property 'sitepad' of non-object in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Notice:  Trying to get property 'streaming' of non-object in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Notice:  Undefined index: THEME in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Notice:  Undefined index: url in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Fatal error:  Uncaught Twig_Error_Loader: Unable to find template "index.html" (looked into: /usr/local/cwpsrv/var/services/users/cwp_theme). in /usr/local/cwpsrv/var/services/twig/lib/Twig/
2023/02/22 14:41:01 [notice] 437#0: *9186 "^/v1/([^/]+)/?$" matches "/v1/user_panel_dashboard/", client: 127.0.0.1, server: localhost, request: "POST /v1/user_panel_dashboard/ HTTP/1.1", host: "127.0.0.1:2302"
2023/02/22 14:41:01 [notice] 437#0: *9186 rewritten data: "/v1/index.php", args: "method=", client: 127.0.0.1, server: localhost, request: "POST /v1/user_panel_dashboard/ HTTP/1.1", host: "127.0.0.1:2302"
2023/02/22 14:41:01 [info] 437#0: *9186 client 127.0.0.1 closed keepalive connection
2023/02/22 14:41:01 [error] 437#0: *9171 FastCGI sent in stderr: "PHP message: PHP Notice:  Trying to get property 'domains' of non-object in /usr/local/cwpsrv/var/services/user_files/modules/cwp_framework/traits/DashboardExtraVarsTrait.php on line 0
PHP message: PHP Notice:  Trying to get property 'account' of non-object in /usr/local/cwpsrv/var/services/user_files/modules/cwp_framework/traits/DashboardExtraVarsTrait.php on line 0
PHP message: PHP Notice:  Trying to get property 'domains' of non-object in /usr/local/cwpsrv/var/services/user_files/modules/cwp_framework/traits/DashboardExtraVarsTrait.php on line 0
PHP message: PHP Notice:  Trying to get property 'pack' of non-object in /usr/local/cwpsrv/var/services/user_files/modules/cwp_framework/traits/DashboardExtraVarsTrait.php on line 0
PHP message: PHP Notice:  Trying to get property 'sub_domains' of non-object in /usr/local/cwpsrv/var/services/user_files/modules/cwp_framework/traits/DashboardExtraVarsTrait.php on line 0
PHP message: PHP Notice:  Trying to get property 'account' of non-object in /usr/local/cwpsrv/var/services/user_files/modules/cwp_framework/traits/DashboardExtraVarsTrait.php on line 0
PHP message: PHP Notice:  Trying to get property 'sub_domains' of non-object in /usr/local/cwpsrv/var/services/user_files/modules/cwp_framework/traits/DashboardExtraVarsTrait.php on line 0
PHP message: PHP Notice:  Trying to get property 'pack' of non-object in /usr/local/cwpsrv/var/services/user_files/modules/cwp_framework/traits/DashboardExtraVarsTrait.php on line 0
PHP message: PHP Notice:  Trying to get property 'ftp' of non-object in /usr/local/cwpsrv/var/services/user_files/modules/cwp_framework/traits/DashboardExtraVarsTrait.php on line 0
PHP message: PHP Notice:  Trying to get property 'domain' of non-object in /usr/local/cwpsrv/var/services/user_files/modules/cwp_framework/traits/DashboardExtraVarsTrait.php on line 0
PHP message: PHP Notice:  Trying to get property 'ftp' of non-object in /usr/local/cwpsrv/var/services/user_files/modules/cwp_framewor
2023/02/22 14:41:04 [notice] 437#0: *9189 "^/v1/([^/]+)/?$" matches "/v1/loginfail/", client: 127.0.0.1, server: localhost, request: "POST /v1/loginfail/ HTTP/1.1", host: "127.0.0.1:2302"
2023/02/22 14:41:04 [notice] 437#0: *9189 rewritten data: "/v1/index.php", args: "method=", client: 127.0.0.1, server: localhost, request: "POST /v1/loginfail/ HTTP/1.1", host: "127.0.0.1:2302"
2023/02/22 14:41:05 [info] 437#0: *9189 client 127.0.0.1 closed keepalive connection
2023/02/22 14:41:05 [error] 437#0: *9171 FastCGI sent in stderr: "PHP message: PHP Warning:  file_exists(): open_basedir restriction in effect. File(/usr/local/cwp/php71/tmp/session) is not within the allowed path(s): (/tmp/:/usr/local/cwpsrv/var/services/users/login/:/usr/local/cwpsrv/var/services/users/cwp_theme/:/usr/local/cwpsrv/var/services/twig/) in /usr/local/cwpsrv/var/services/users/login/index.php on line 0
PHP message: PHP Notice:  Undefined index: intended in /usr/local/cwpsrv/var/services/users/login/index.php on line 0
PHP message: PHP Notice:  Undefined index: intended in /usr/local/cwpsrv/var/services/users/login/index.php on line 0" while reading response header from upstream, client: 122.129.80.120, server: localhost, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/usr/local/cwp/php71/var/sockets/login.sock:", host: "srv.mydomain.com:2083"
2023/02/22 14:41:05 [error] 437#0: *9171 FastCGI sent in stderr: "PHP message: PHP Warning:  file_exists(): open_basedir restriction in effect. File(/usr/local/cwp/php71/tmp/session) is not within the allowed path(s): (/tmp/:/usr/local/cwpsrv/var/services/users/login/:/usr/local/cwpsrv/var/services/users/cwp_theme/:/usr/local/cwpsrv/var/services/twig/) in /usr/local/cwpsrv/var/services/users/login/index.php on line 0" while reading response header from upstream, client: 122.129.80.120, server: localhost, request: "POST /login/index.php?acc=cookie HTTP/1.1", upstream: "fastcgi://unix:/usr/local/cwp/php71/var/sockets/login.sock:", host: "srv.mydomain.com:2083", referrer: "https://srv.mydomain.com:2083/login/"

Then I tried changing packages by creating first creating a reseller package then assigning to the user and then switching back the package.

Then I tried assigning default theme and language using
Dashboard>User Accounts>Features,Themes,Language

Then I tried rebuilding user configuration using following command:
Code: [Select]
sh /scripts/cwpsrv_rebuild_user_conf
Then I tried repairing databases using Dashboard>SQL Services>MySQL Manager>Repair Database.

But the problem is still there and the error is same. Nothing I do seems to affect it.

Today I tried logging in using ip address instead of server hostname and it gave me 502 Bad Gateway Error after login. When I check the
Code: [Select]
tail -f /usr/local/cwpsrv/logs/error_log the error was still same as mentioned above..


Posted by: Webso1dotcom
« on: February 21, 2023, 09:50:31 AM »

    Insert Quote


2
CentOS-WebPanel Bugs / Re: Cant login to CWP User :2083
« on: February 22, 2023, 03:48:18 PM »
Hi, I just finished a fresh install of CWP and added a client account. I am also facing the same issue. The client account gets redirected to login after authentication. I have tried every solution mentioned in this and other threads but I can't figure this out.

Here is the result of
Code: [Select]
tail -f /usr/local/cwpsrv/logs/error_log
Code: [Select]
2023/02/22 14:40:59 [notice] 437#0: *9173 "^/v1/([^/]+)/?$" matches "/v1/valid_user/", client: 127.0.0.1, server: localhost, request: "POST /v1/valid_user/ HTTP/1.1", host: "127.0.0.1:2302"
2023/02/22 14:40:59 [notice] 437#0: *9173 rewritten data: "/v1/index.php", args: "method=", client: 127.0.0.1, server: localhost, request: "POST /v1/valid_user/ HTTP/1.1", host: "127.0.0.1:2302"
2023/02/22 14:41:00 [info] 437#0: *9173 client 127.0.0.1 closed keepalive connection
2023/02/22 14:41:00 [error] 437#0: *9171 FastCGI sent in stderr: "PHP message: PHP Warning:  file_exists(): open_basedir restriction in effect. File(/usr/local/cwp/php71/tmp/session) is not within the allowed path(s): (/tmp/:/usr/local/cwpsrv/var/services/users/login/:/usr/local/cwpsrv/var/services/users/cwp_theme/:/usr/local/cwpsrv/var/services/twig/) in /usr/local/cwpsrv/var/services/users/login/index.php on line 0" while reading response header from upstream, client: 122.129.80.120, server: localhost, request: "POST /login/index.php?acc=validate HTTP/1.1", upstream: "fastcgi://unix:/usr/local/cwp/php71/var/sockets/login.sock:", host: "srv.mydomain.com:2083", referrer: "https://srv.mydomain.com:2083/login/"
2023/02/22 14:41:00 [notice] 436#0: *9179 "^/v1/([^/]+)/?$" matches "/v1/generaluser/", client: 127.0.0.1, server: localhost, request: "POST /v1/generaluser/ HTTP/1.1", host: "127.0.0.1:2302"
2023/02/22 14:41:00 [notice] 436#0: *9179 rewritten data: "/v1/index.php", args: "method=", client: 127.0.0.1, server: localhost, request: "POST /v1/generaluser/ HTTP/1.1", host: "127.0.0.1:2302"
2023/02/22 14:41:00 [info] 436#0: *9179 client 127.0.0.1 closed keepalive connection
2023/02/22 14:41:00 [info] 436#0: *9181 client 127.0.0.1 closed keepalive connection
2023/02/22 14:41:00 [error] 437#0: *9171 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined index: THEME in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Notice:  Trying to get property 'apache_additional' of non-object in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Notice:  Trying to get property 'dns' of non-object in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Notice:  Trying to get property 'fant3menu' of non-object in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Notice:  Undefined index: LANG in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Notice:  Trying to get property 'cloudlinux' of non-object in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Notice:  Trying to get property 'fsl' of non-object in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Notice:  Trying to get property 'userpma' of non-object in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Notice:  Trying to get property 'postgres' of non-object in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Notice:  Trying to get property 'softmenu' of non-object in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Notice:  Trying to get property 'sitepad' of non-object in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Notice:  Trying to get property 'streaming' of non-object in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Notice:  Undefined index: THEME in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Notice:  Undefined index: url in /usr/local/cwpsrv/var/services/users/index.php on line 0
PHP message: PHP Fatal error:  Uncaught Twig_Error_Loader: Unable to find template "index.html" (looked into: /usr/local/cwpsrv/var/services/users/cwp_theme). in /usr/local/cwpsrv/var/services/twig/lib/Twig/
2023/02/22 14:41:01 [notice] 437#0: *9186 "^/v1/([^/]+)/?$" matches "/v1/user_panel_dashboard/", client: 127.0.0.1, server: localhost, request: "POST /v1/user_panel_dashboard/ HTTP/1.1", host: "127.0.0.1:2302"
2023/02/22 14:41:01 [notice] 437#0: *9186 rewritten data: "/v1/index.php", args: "method=", client: 127.0.0.1, server: localhost, request: "POST /v1/user_panel_dashboard/ HTTP/1.1", host: "127.0.0.1:2302"
2023/02/22 14:41:01 [info] 437#0: *9186 client 127.0.0.1 closed keepalive connection
2023/02/22 14:41:01 [error] 437#0: *9171 FastCGI sent in stderr: "PHP message: PHP Notice:  Trying to get property 'domains' of non-object in /usr/local/cwpsrv/var/services/user_files/modules/cwp_framework/traits/DashboardExtraVarsTrait.php on line 0
PHP message: PHP Notice:  Trying to get property 'account' of non-object in /usr/local/cwpsrv/var/services/user_files/modules/cwp_framework/traits/DashboardExtraVarsTrait.php on line 0
PHP message: PHP Notice:  Trying to get property 'domains' of non-object in /usr/local/cwpsrv/var/services/user_files/modules/cwp_framework/traits/DashboardExtraVarsTrait.php on line 0
PHP message: PHP Notice:  Trying to get property 'pack' of non-object in /usr/local/cwpsrv/var/services/user_files/modules/cwp_framework/traits/DashboardExtraVarsTrait.php on line 0
PHP message: PHP Notice:  Trying to get property 'sub_domains' of non-object in /usr/local/cwpsrv/var/services/user_files/modules/cwp_framework/traits/DashboardExtraVarsTrait.php on line 0
PHP message: PHP Notice:  Trying to get property 'account' of non-object in /usr/local/cwpsrv/var/services/user_files/modules/cwp_framework/traits/DashboardExtraVarsTrait.php on line 0
PHP message: PHP Notice:  Trying to get property 'sub_domains' of non-object in /usr/local/cwpsrv/var/services/user_files/modules/cwp_framework/traits/DashboardExtraVarsTrait.php on line 0
PHP message: PHP Notice:  Trying to get property 'pack' of non-object in /usr/local/cwpsrv/var/services/user_files/modules/cwp_framework/traits/DashboardExtraVarsTrait.php on line 0
PHP message: PHP Notice:  Trying to get property 'ftp' of non-object in /usr/local/cwpsrv/var/services/user_files/modules/cwp_framework/traits/DashboardExtraVarsTrait.php on line 0
PHP message: PHP Notice:  Trying to get property 'domain' of non-object in /usr/local/cwpsrv/var/services/user_files/modules/cwp_framework/traits/DashboardExtraVarsTrait.php on line 0
PHP message: PHP Notice:  Trying to get property 'ftp' of non-object in /usr/local/cwpsrv/var/services/user_files/modules/cwp_framewor
2023/02/22 14:41:04 [notice] 437#0: *9189 "^/v1/([^/]+)/?$" matches "/v1/loginfail/", client: 127.0.0.1, server: localhost, request: "POST /v1/loginfail/ HTTP/1.1", host: "127.0.0.1:2302"
2023/02/22 14:41:04 [notice] 437#0: *9189 rewritten data: "/v1/index.php", args: "method=", client: 127.0.0.1, server: localhost, request: "POST /v1/loginfail/ HTTP/1.1", host: "127.0.0.1:2302"
2023/02/22 14:41:05 [info] 437#0: *9189 client 127.0.0.1 closed keepalive connection
2023/02/22 14:41:05 [error] 437#0: *9171 FastCGI sent in stderr: "PHP message: PHP Warning:  file_exists(): open_basedir restriction in effect. File(/usr/local/cwp/php71/tmp/session) is not within the allowed path(s): (/tmp/:/usr/local/cwpsrv/var/services/users/login/:/usr/local/cwpsrv/var/services/users/cwp_theme/:/usr/local/cwpsrv/var/services/twig/) in /usr/local/cwpsrv/var/services/users/login/index.php on line 0
PHP message: PHP Notice:  Undefined index: intended in /usr/local/cwpsrv/var/services/users/login/index.php on line 0
PHP message: PHP Notice:  Undefined index: intended in /usr/local/cwpsrv/var/services/users/login/index.php on line 0" while reading response header from upstream, client: 122.129.80.120, server: localhost, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/usr/local/cwp/php71/var/sockets/login.sock:", host: "srv.mydomain.com:2083"
2023/02/22 14:41:05 [error] 437#0: *9171 FastCGI sent in stderr: "PHP message: PHP Warning:  file_exists(): open_basedir restriction in effect. File(/usr/local/cwp/php71/tmp/session) is not within the allowed path(s): (/tmp/:/usr/local/cwpsrv/var/services/users/login/:/usr/local/cwpsrv/var/services/users/cwp_theme/:/usr/local/cwpsrv/var/services/twig/) in /usr/local/cwpsrv/var/services/users/login/index.php on line 0" while reading response header from upstream, client: 122.129.80.120, server: localhost, request: "POST /login/index.php?acc=cookie HTTP/1.1", upstream: "fastcgi://unix:/usr/local/cwp/php71/var/sockets/login.sock:", host: "srv.mydomain.com:2083", referrer: "https://srv.mydomain.com:2083/login/"



3
CWP API / Re: CWP api admindomains add subdomain
« on: October 20, 2021, 11:42:20 AM »
Did you modify the apache/nginx templates using the control panel or manually over SSH ?

More about the webtemplates you can find here:
http://wiki.centos-webpanel.com/webservers-vhost-templates

Just make sure sure the directive DocumentRoot inside the apache templates looks like:

Code: [Select]
DocumentRoot %docroot%
for Nginx root:

Code: [Select]
root %docroot%;

I thought about modifying the template files but upon looking at new interface I wasn't able to make head or tail of it. So I decided to leave it alone as I can't experiment on production servers unless I am sure about what I am doing.

Update
I just checked
Code: [Select]
hostname.conf and
Code: [Select]
default.tpl in
Code: [Select]
WebServer Settings > WebServers Template Editor > Httpd

There is nothing with templates. The issue is %docroot% variable is being passed incorrect value or no value at all when subdomain is created via API. I forgot to mention this but I double checked these files and I was trying to find my way around that's when I realized I should not play with these template files and wait for CWP team to look in this matter.

4
CWP API / Re: CWP api admindomains add subdomain
« on: October 20, 2021, 11:37:05 AM »
Has anyone found a solution for this?
Nop, i am still correcting those files manually. I opened up support ticket and got response after 4 - 5 days. I failed to respond on time after that cwp team closed my ticket and never bothered to read it again after reopened the ticket with php test code.

5
CWP API / Re: CWP api admindomains add subdomain
« on: February 10, 2021, 05:50:24 PM »
I am facing the same issue on my end whenever a subdomain is created from api subdomain shows following error:

Not Found

The requested URL / was not found on this server.

when subdomain is created with API its Document root in vhost is set /public_html/subdomain/sub.domain.com while it should be /home/user/public_html/subdomains/sub.domain.com .. and upon restarting apache I  get following warning: AH00112: Warning: DocumentRoot [/public_html/subdomains/testing/] does not exist

6
Hello,

I am migrating a very large website from hostgator cpanel server to CWP. Because of the size the of size I wasn't able to create a backup archive using cpanel backup feature. So I started the migration manually.

For emails I was following this article: http://wiki.centos-webpanel.com/how-to-manually-import-emails

I have successfully transferred all emails but those emails are not showing in roundcube. Although I can see email count in inbox drafts and spam but I am unable to see the emails.

Can anyone help me in this? Its really urgent and I am badly stuck.

Pages: [1]