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.


Topics - Boris

Pages: [1]
1
PHP / Configure PHP 7 with NGINX in CWP
« on: February 17, 2018, 08:34:01 AM »
Hi
I have compiled php 7.1 using CentOS web panel successfully and files are generated inside /opt/alt/php71. I have checked the per folder/per site configuration for multiple php version in http://wiki.centos-webpanel.com/php-selector

Since i am using NGINX, i need to configure php7-fpm as well but i have the default php-fpm from the earlier php version in /etc/php-fpm.d The phpinfo page served by NGINX still shows old php version with loaded configuration file /etc/php.ini and Scan this dir for additional .ini files in /etc/php.d. I want old php version 5.6 to be the default and the newer php 7.1 to be configured for one subdomain using NGINX/FPM.

Will appreciate if anyone guides me

Regards


2
E-Mail / Can send mail but cannot receive
« on: February 06, 2018, 08:36:14 AM »
Hi
I have issues with receiving email for my domain mydomain.com From postfix mail log, i can see the the received mail had been removed by queue manager but could not find its final destination in roundcube and there is no error log for roundcube. I have compiled mail server with AntiSpam/AntiVirus (recommended), rDNS Check (recommended):  and Install DKIM & SPF (recommended): options.

/var/log/maillog
 
Feb  6 08:18:59 tuxlab postfix/smtpd[10435]: connect from mail-oi0-x236.google.com[2607:f8b0:4003:c06::236]
Feb  6 08:18:59 tuxlab postfix/smtpd[10435]: Anonymous TLS connection established from mail-oi0-x236.google.com[2607:f8b0:4003:c06::236]: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
Feb  6 08:18:59 tuxlab postfix/trivial-rewrite[10442]: warning: do not list domain mydomain.com in BOTH mydestination and virtual_mailbox_domains
Feb  6 08:19:00 tuxlab postfix/smtpd[10435]: 1A92682E8: client=mail-oi0-x236.google.com[2607:f8b0:4003:c06::236]
Feb  6 08:19:00 tuxlab postfix/cleanup[10446]: 1A92682E8: message-id=<CAJtoDzc1xNGMkUPvRtGzh+nCk=Sbf3Ck-xWgRkLVNiVPewQDoQ@mail.gmail.com>
Feb  6 08:19:00 tuxlab opendkim[7226]: 1A92682E8: mail-oi0-x236.google.com [2607:f8b0:4003:c06::236] not internal
Feb  6 08:19:00 tuxlab opendkim[7226]: 1A92682E8: not authenticated
Feb  6 08:19:00 tuxlab opendkim[7226]: 1A92682E8: DKIM verification successful
Feb  6 08:19:00 tuxlab postfix/qmgr[9099]: 1A92682E8: from=<testuser@gmail.com>, size=2751, nrcpt=1 (queue active)
Feb  6 08:19:00 tuxlab postfix/smtpd[10435]: disconnect from mail-oi0-x236.google.com[2607:f8b0:4003:c06::236]
Feb  6 08:19:00 tuxlab postfix/smtpd[10450]: connect from unknown[127.0.0.1]
Feb  6 08:19:00 tuxlab postfix/trivial-rewrite[10442]: warning: do not list domain mydomain.com in BOTH mydestination and virtual_mailbox_domains
Feb  6 08:19:00 tuxlab postfix/smtpd[10450]: DCB078422: client=unknown[127.0.0.1]
Feb  6 08:19:00 tuxlab postfix/cleanup[10446]: DCB078422: message-id=<CAJtoDzc1xNGMkUPvRtGzh+nCk=Sbf3Ck-xWgRkLVNiVPewQDoQ@mail.gmail.com>
Feb  6 08:19:00 tuxlab opendkim[7226]: DCB078422: no signing table match for 'testuser@gmail.com'
Feb  6 08:19:00 tuxlab opendkim[7226]: DCB078422: DKIM verification successful
Feb  6 08:19:00 tuxlab postfix/qmgr[9099]: DCB078422: from=<testuser@gmail.com>, size=3272, nrcpt=1 (queue active)
Feb  6 08:19:00 tuxlab postfix/smtpd[10450]: disconnect from unknown[127.0.0.1]
Feb  6 08:19:00 tuxlab postfix/trivial-rewrite[10442]: warning: do not list domain mydomain.com in BOTH mydestination and virtual_mailbox_domains
Feb  6 08:19:00 tuxlab postfix/trivial-rewrite[10442]: warning: do not list domain mydomain.com in BOTH mydestination and virtual_mailbox_domains
Feb  6 08:19:00 tuxlab postfix/trivial-rewrite[10442]: warning: do not list domain mydomain.com in BOTH mydestination and virtual_mailbox_domains
Feb  6 08:19:00 tuxlab postfix/local[10453]: DCB078422: to=<root@mydomain.com>, orig_to=<support@mydomain.com>, relay=local, delay=0.06, delays=0.05/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Feb  6 08:19:00 tuxlab postfix/qmgr[9099]: DCB078422: removed
Feb  6 08:19:00 tuxlab amavis[7218]: (07218-03) Passed CLEAN {RelayedInbound}, [2607:f8b0:4003:c06::236]:34891 [2607:f8b0:4003:c06::236] <testuser@gmail.com> -> <support@mydomain.com>, Queue-ID: 1A92682E8, Message-ID: <CAJtoDzc1xNGMkUPvRt                       Gzh+nCk=Sbf3Ck-xWgRkLVNiVPewQDoQ@mail.gmail.com>, mail_id: cIWwRVEn_IHU, Hits: -0.798, size: 2843, queued_as: DCB078422,                        dkim_sd=20161025:gmail.com, 665 ms
Feb  6 08:19:00 tuxlab postfix/smtp[10447]: 1A92682E8: to=<support@mydomain.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.98, delays=0.29/0.02/0/0.67, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued                        as DCB078422)
Feb  6 08:19:00 tuxlab postfix/qmgr[9099]: 1A92682E8: removed


/var/log/dovecot.log

Feb 06 08:15:13 imap(support@mydomain.com): Warning: autocreate plugin is deprecated, use mailbox { auto } setting instead
Feb 06 08:15:13 dict: Error: Failed to initialize dictionary 'quotadict': dict mysql: Can't open configuration file /etc/dovecot/dovecot-dict-quota.conf: Permission denied
Feb 06 08:15:13 dict: Error: Failed to initialize dictionary 'quotadict': dict mysql: Can't open configuration file /etc/dovecot/dovecot-dict-quota.conf: Permission denied
Feb 06 08:15:13 imap(support@mydomain.com): Error: write(/var/run/dovecot/dict) failed: Broken pipe


Does it related to the 'permission denied' error ? I have checked the permission of the /etc/dovecot folder and it looks correct.


# ls -l /etc/dovecot/

total 24
drwxr-xr-x 2 root root 4096 Feb  3 05:40 conf.d
-rw-r--r-- 1 root root 2908 Feb  6 08:25 dovecot.conf
-rw-r--r-- 1 root root 2894 Feb  6 07:20 dovecot.conf_bkp
-rw-r----- 1 root mail  274 Feb  6 08:25 dovecot-dict-quota.conf
-rw-r----- 1 root mail  731 Feb  6 08:25 dovecot-mysql.conf
-rw-r--r-- 1 root root   54 Mar 27  2017 trash.conf

Can anyone point me where could be the error ?

Regards

3
Apache / Apache proxy pass to admin panel
« on: February 03, 2018, 10:12:30 AM »
Hi
I can access CentOS web panel using the IP like http://11.22.33.44:2031/admin and now i want to access it using subdomain/apache reverse proxy. I placed the following apache configuration for reverse proxy in conf.d folder but when i access the subdomain http://panel.mydomain.org the page is redirected to the default site.

I have not created the subdomain in centos web panel although i have it in my hosting providers DNS manager.

# /usr/local/apache/conf.d/panel.conf

<VirtualHost 11.22.33.44:80>

    ServerName panel.mydomain.org

    LogLevel debug
    ErrorLog /usr/local/apache/logs/panel-error.log

    ## don't loose time with IP address lookups
    HostnameLookups Off

    ## needed for named virtual hosts
    UseCanonicalName Off

    ## configures the footer on server-generated documents
    ServerSignature Off

    ProxyRequests Off
    ProxyPreserveHost On

    <Proxy /admin>
      Order deny,allow
      Allow from all
    </Proxy>

    ProxyPass /admin/  http://localhost:2031/admin/
    ProxyPassReverse /admin/ http://localhost:2031/admin/

</VirtualHost>

Any insights will be appreciated.
Thanks

4
DNS / CwntOS web panel - DNS/NameServer configuration
« on: February 03, 2018, 03:09:47 AM »
Hi
I have installed CentOS web panel in CentOS 7 and configured nameserver in the panel that points to ns1.linode.com and ns2.linode.com. I have also created subdomain support.demohost.org with A record in Linode DNS manager.

Being said that, i have installed zammad in CentOS 7 that runs in the port 3000/6042 and there is a default nginx(Port 80) reverse proxy configuration file so that i can access it in the browser using http://support.demohost.org. I get correct result using curl support.demohost.org in the server's terminal. But when i try to access it in the browser outside server, i am redirected to the default site i.e demohost.org

I have not created any subdomain using CentOS web panel.
Any insights will be highly appreciated.
Regards

https://imagebin.ca/v/3qO8rPaB34wb

5
Apache / Custom subdomain path
« on: February 02, 2018, 03:59:07 PM »
Hi
I have installed zammad in /opt/zammad and its public folder is in /opt/zammd/public. Now if i create a subdomain the path should be in /home directory. How can i add custom path i.e /opt/zammd/public while subdomain creation ?
Regards

Pages: [1]