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

Pages: 1 ... 23 24 [25] 26
361
Information / Re: Regarding API
« on: December 20, 2017, 01:21:41 AM »
If you do:
# cat /ADMINUSERNAME/.conf/apikey
ShortName|@|127.0.0.1|@|blablablablablablablablablablalblablalblabla|@|accout_add,accout_upd,accout_del,accout_list,accout_susp,accout_unsp,pack_add,pack_udp,pack_del,pack_list,emailadmin_list,changepack_udp,mysqlbd_add,mysqlbd_del,mysqlbd_list,mysqlbd_susp,mysqlb_unsp,mysqluser_add,mysqluser_del,mysqluser_list,typeserver_list,detailaccount_list,accountquo_list,cronuser_add,cronuser_del,cronuser_list,quotalimt_list,changpass_udp,|@|JSON|@|1

You can note there are several api names, old style.

So, you can try:
curl -k https://myip:PORT/api/ -d api=accout_list -d key=blablablablabla

Using PORTs 2031 and 2087, I get the answer:
Failed to include API File!!!

No solution, still.

362
Information / Re: Regarding API
« on: December 20, 2017, 12:31:34 AM »
CWP-7..?? are you meaning Centos7..??

Try:
curl -k https://myip:2304/v1/packages -d key=blablablablabla -d action=list

The -k parameter is to curl not to claim about selfsigned certificates.
The parameter -d is to pass parameters via POST method.

The problem is I'm trying like you, but no answer.
Searching for ports with 'netstat', I just find port 2302, not 2304.
But likewise, trying with port 2302 doesn't work too.

363
Information / Re: Translate to Portuguese
« on: December 17, 2017, 01:43:52 AM »
Hello,
There is a module in the admin where you can edit, clone or create new languages, the path of this module is:

-> Admin Panel -> Plugins -> Themes and Languages -> Languages ->

Clone the English language first, and change the translation.
After, we can contribute with more translation.

364
I can build it / Re: Translate template to brazilian portuguese
« on: December 17, 2017, 01:40:54 AM »
Hello,
There is a module in the admin where you can edit, clone or create new languages, the path of this module is:

-> Admin Panel -> Plugins -> Themes and Languages -> Languages ->

Clone the English language first, and change the translation.
After, we can contribute with more translations.

365
How to / Re: how to create domain alias
« on: December 02, 2017, 07:53:07 PM »
To make an alias to your domain, you can use the ServerAlias directive of apache server, in the file '/usr/local/apache/conf.d/vhosts.conf'.

If you have, for example:
----------------------------------------------
ServerAlias domainexample.com
----------------------------------------------

you can manually edit to:
--------------------------------------------------------------------------------------
ServerAlias domainexample.com server2.domainexample.com
--------------------------------------------------------------------------------------

or:
------------------------------------------------------------------------------------------------------------------------------
ServerAlias domainexample.com server2.domainexample.com server3.domainexample.com
------------------------------------------------------------------------------------------------------------------------------

or:
------------------------------------------------------
ServerAlias *.domainexample.com
------------------------------------------------------
etc.

The only question I have is, if editing manually, the changes would be overwritten by changes made via panel, ou updates.

Regards,
Netino

366
How to / Re: how to create domain alias
« on: December 02, 2017, 07:35:42 PM »
The .htaccess simply is not an answer.
To apache interpret the .htaccess file, the access MUST be arrived at the server, within the path, to interpret this file fontent.
If the access of the alias domain already comes to a directory on the server, the .htaccess should be not needed anymore.

The question is exactly how to make the apache server direct the access of that domain alias to a directory on the server.

367
Updates / Re: Update for openSSL is important!
« on: December 01, 2017, 01:57:02 AM »
CWP is running a customized version of apache/mod_ssl (cwp-httpd).

Checking that version we discover:
---------------------------------------
# strings /usr/local/apache/modules/mod_ssl.so | egrep '^mod_ssl\/|^OpenSSL '
OpenSSL 1.0.1e 11 Feb 2013
OpenSSL 1.0.1e 11 Feb 2013
---------------------------------------

So, this update seems is a must update!
When we would have a updated version of CWP?

368
There are some problem with the pointing of the certificate.
I spend three days working on this.

The program creates correctly the certificates at '/etc/pki/tls/certs/', but the certificate directive in the file '/usr/local/cwpsrv/conf/cwpsrv.conf' with:
-----------------------------------------------------------
ssl_certificate     /etc/pki/tls/certs/hostname.crt;
-----------------------------------------------------------

when my server is working only with:
-----------------------------------------------------------
ssl_certificate     /etc/pki/tls/certs/hostname.bundle;
-----------------------------------------------------------

It's a bug..??!!

369
Ok, I've tried the following:
http://wiki.centos-webpanel.com/hostname-ssl-with-letsencrypt

but that page is not updated.

Seems the correct menu has changed:
Instead:
In cwp.admin left menu go to –> CWP Settings –> Change Hostname save there your hostname...

read:
In cwp.admin left menu go to –> Server Settings –> Change Hostname save there your hostname.

370
We have the option to ANY domain on that menu, but NOT to the main domain, the hostname domain.
(as 'hostname domain' I'm regarding the process to get the certificate from LetsEncrypt)

This was definitely disabled...??!!

There are videos on youtube, but this option simply don't work anymore like that.

371
Information / Re: install and configure Spamassassin
« on: September 03, 2017, 04:01:29 AM »
My SSD disk was fulfilled completely  in a week, with logfile '/spamfilter.log' (at root directory) with the logs like:
=================================================================
Thu Aug 17 00:05:54 2017 [27835] info: spamd: server successfully spawned child process, pid 27838
Thu Aug 17 00:05:54 2017 [27835] info: spamd: server successfully spawned child process, pid 27839
Thu Aug 17 00:05:54 2017 [27838] error: spamd: cannot run as nonexistent user or root with -u option
Thu Aug 17 00:05:54 2017 [27835] info: prefork: child states: SS
Thu Aug 17 00:05:54 2017 [27835] info: spamd: server successfully spawned child process, pid 27840
Thu Aug 17 00:05:54 2017 [27835] info: prefork: adjust: 0 idle children less than 1 minimum idle children. Increasing spamd children: 27840 started.
Thu Aug 17 00:05:54 2017 [27839] error: spamd: cannot run as nonexistent user or root with -u option
Thu Aug 17 00:05:54 2017 [27835] info: prefork: child states: SSS
Thu Aug 17 00:05:54 2017 [27835] info: spamd: server successfully spawned child process, pid 27841
Thu Aug 17 00:05:54 2017 [27835] info: prefork: adjust: 0 idle children less than 1 minimum idle children. Increasing spamd children: 27841 started.
=================================================================

Seems the criptical is the "error:" line, claiming "spamd: cannot run as nonexistent user or root with -u option".
I don't know where to correct it.

Regards,
Netino

372
CentOS-WebPanel Bugs / Re: clamd is stopped....
« on: August 16, 2017, 04:04:33 AM »
Seems clamd is trying to restart in a infinite loop.
Maybe is clashing with amavis trying to restart clamd too.
My solution was to stops clamd service at Dashboard.
Unfortunately, rebooting the server, needs to stops manually the clamd process.

Seeking the logs:
Aug 16 00:56:14 painel clamd[3342]: LOCAL: Socket file /var/run/clamd.amavisd/clamd.sock is in use by another process.
Aug 16 00:56:14 painel clamd[3360]: Received 0 file descriptor(s) from systemd.
Aug 16 00:56:14 painel clamd[3360]: clamd daemon 0.99.2 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
Aug 16 00:56:14 painel clamd[3360]: Running as user amavis (UID 990, GID 989)
Aug 16 00:56:14 painel clamd[3360]: Log file size limited to 1048576 bytes.
Aug 16 00:56:14 painel clamd[3360]: Reading databases from /var/lib/clamav
Aug 16 00:56:14 painel clamd[3360]: Not loading PUA signatures.
Aug 16 00:56:14 painel clamd[3360]: Bytecode: Security mode set to "TrustSigned".
Aug 16 00:56:19 painel clamd[3360]: Loaded 6321412 signatures.
Aug 16 00:56:20 painel clamd[3360]: LOCAL: Socket file /var/run/clamd.amavisd/clamd.sock is in use by another process.
Aug 16 00:56:21 painel clamd[3491]: Received 0 file descriptor(s) from systemd.
Aug 16 00:56:21 painel clamd[3491]: clamd daemon 0.99.2 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
Aug 16 00:56:21 painel clamd[3491]: Running as user amavis (UID 990, GID 989)
Aug 16 00:56:21 painel clamd[3491]: Log file size limited to 1048576 bytes.
Aug 16 00:56:21 painel clamd[3491]: Reading databases from /var/lib/clamav
Aug 16 00:56:21 painel clamd[3491]: Not loading PUA signatures.
Aug 16 00:56:21 painel clamd[3491]: Bytecode: Security mode set to "TrustSigned".
Aug 16 00:56:25 painel clamd[3491]: Loaded 6321412 signatures.
Aug 16 00:56:27 painel clamd[3491]: LOCAL: Socket file /var/run/clamd.amavisd/clamd.sock is in use by another process.
(...)

373
New Modules / Re: Reseller Account
« on: July 09, 2017, 05:32:53 PM »
Is the security of this module thought in this same way too?

374
New Modules / Re: Reseller Account
« on: July 08, 2017, 06:47:32 PM »
A reseller account would not be dependent of a domain.
If  that domain would dropped for any reason, the account will rest inconsistent.

375
Backup / Re: backup access rights (all users can access)
« on: July 08, 2017, 06:06:16 PM »
I second this change.
I right now test, and my server has this problem too.

Pages: 1 ... 23 24 [25] 26