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

Pages: [1]
1
CentOS 7 Problems / CWP Module not appeared
« on: January 23, 2018, 11:02:30 AM »
Hi,

I have followed below link to add 3rd party module. In the admin panel menu, my module name is appeared but in the user panel menu its not appeared. Is there any changes in the documentation ?. Please help me.

http://wiki.centos-webpanel.com/how-to-build-a-cwp-module


Thank you,
kiran upadhya

2
CentOS 7 Problems / Regarding open basedir error
« on: January 22, 2018, 06:18:02 AM »
Hi,
I'm using CWP-centos7. I'm trying to access my page using URL http://MYIP:2082/testone/test/index.php & its returning blank page with error

2018/01/22 05:34:26 [error] 32494#0: *3 FastCGI sent in stderr: "PHP message: PHP Warning:  include_once(): open_basedir restriction in effect. File(/var/sources/index.php) is not within the allowed path(s): (/home/testone:/tmp:/var/softtmp:/usr/local/cwpsrv/var/services/users:/usr/local/cwpsrv/var/services/user_files/modules:/usr/local/cwpsrv/var/services/twig:) in /usr/local/cwpsrv/var/services/users/test/index.php on line 6
PHP message: PHP Warning:  include_once(/var/sources/index.php): failed to open stream: Operation not permitted in /usr/local/cwpsrv/var/services/users/test/index.php on line 6
PHP message: PHP Warning:  include_once(): Failed opening '/var/sources/index.php' for inclusion (include_path='.:/usr/local/cwp/php71/lib/php:/var/sources/') in /usr/local/cwpsrv/var/services/users/test/index.php on line 6" while reading response header from upstream, client: 103.35.235.87, server: localhost, request: "GET /testone/test/index.php HTTP/1.1", upstream: "fastcgi://unix:/usr/local/cwp/php71/var/sockets/testone.sock:", host: "139.59.34.167:2082"


I have logged in as user called 'testone' (2082 port).
I have folder called 'test' & file named 'index.php' inside the dir -> /usr/local/cwpsrv/var/services/users/test/index.php
I have include my configuration in the file /usr/local/cwpsrv/conf.d/users.conf & below is my configuration

location /test {
    root /usr/local/cwpsrv/var/services/users;
    index  index.html index.htm index.php;
    rewrite ^/test/$ /test/index.php permanent;

    location ~ \.php$ {
        try_files $uri =404;
        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;
    }


    location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
        access_log    off;
        log_not_found    off;
        expires 1M;
    }
}


Can please tell me why its hitting 'open_basedir restriction error' every time ?
Please help me.


Thank You
kiran upadhya

3
CentOS 7 Problems / Regarding API request
« on: December 14, 2017, 04:56:47 AM »
Hi, I have one question regarding API,

In the CWP panel, Under Plugin->API Manager, I have configured API access & then
I have added remote IP address to this file  “/usr/local/cwp/.conf/api_allowed.conf”
Also I have added API key to this file “/usr/local/cwp/.conf/api_key.conf”
( as per the documentation in http://wiki.centos-webpanel.com/cwp-account-api)

If I click to any function in the API manager its showing like below.

Url:   https://myip:2304/v1/packages   Method:   POST   Actions:   add, udp, del, list   Return:   JSON / XML

My question is how can call API function using curl method in the termianl. Can you please show me one example OR documentation link for the same.

If I do like this in the termianl its not working
# curl https://myip:2304/v1/packages

Please give me one clear example to perform API request in the termianl.

Regards
kiran upadhya

4
Information / Regarding API
« on: December 14, 2017, 04:55:17 AM »
Hi, I have one question regarding API, ( I have CWP-7)

In the CWP panel, Under Plugin->API Manager, I have configured API access & then
I have added remote IP address to this file  “/usr/local/cwp/.conf/api_allowed.conf”
Also I have added API key to this file “/usr/local/cwp/.conf/api_key.conf”
( as per the documentation in http://wiki.centos-webpanel.com/cwp-account-api)

If I click to any function in the API manager its showing like below.

Url:   https://myip:2304/v1/packages   Method:   POST   Actions:   add, udp, del, list   Return:   JSON / XML

My question is how can call API function using curl method in the termianl. Can you please show me one example OR documentation link for the same.

If I do like this in the termianl its not working
# curl https://myip:2304/v1/packages

Please give me one clear example to perform API request in the termianl.

Regards
kiran upadhya

5
CentOS Configuration / Re: Regarding disk quota
« on: February 23, 2017, 09:23:27 AM »
Nothing is coming when I run 'quota -q'. What things i'm missing ?

6
CentOS Configuration / Regarding disk quota
« on: February 23, 2017, 07:08:45 AM »
How to check free disk quota left in a users account on terminal ?

7
Information / Regarding API
« on: February 22, 2017, 09:56:57 AM »
Hi,
Is API documentation available for centos-webpanel ?. If yes can you please provide the link for the same.


Thank You
kiran Upadhya

8
CentOS-WebPanel Bugs / Regarding API
« on: February 22, 2017, 09:56:08 AM »
Hi,
Is API documentation available for centos-webpanel ?. If yes can you please provide the link for the same.


Thank You
kiran Upadhya

Pages: [1]