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

Pages: 1 [2] 3
16
CentOS-WebPanel Bugs / Re: folder cannot be accessed by IP
« on: July 22, 2018, 10:34:12 AM »
Hi Bullten,

I have tried as your advice:

$ vi /usr/local/apache/conf/sharedip.conf

I changed: <VirtualHost xxx.xxx.xxx.xxx:80>

to: <VirtualHost *:80>

then restart apache:

$ systemctl reload named && systemctl restart named


The issue is still the same.

Any advice?

Thanks

17
CentOS-WebPanel Bugs / Re: folder cannot be accessed by IP
« on: July 22, 2018, 08:15:39 AM »
Thanks for your reply.

I may not be very clear with my question above. Basically, I would like to display my website or an application in a browser via either domain name or IP:

http://www.mydomain.com/apps/
http://my_server_ip/apps/


they both should display the same page content.

What config is required to achieve this?

Cheers

18
CentOS-WebPanel Bugs / Re: folder cannot be accessed by IP
« on: July 21, 2018, 06:48:34 PM »
Update: I have tried to issue this:

$ chown -R nobody.nobody /usr/local/apache/htdocs/

as suggested on this link:

http://forum.centos-webpanel.com/apache/how-to-setup-website-on-the-ip-address/


It does not work on my server.

Any advice is very appreciated.

Cheers

19
CentOS-WebPanel Bugs / folder cannot be accessed by IP
« on: July 21, 2018, 06:32:04 PM »
Hi sir,

I am a newbie to CWP panel, but I have great support from this community which is amazing.

I managed to install and configure (including DNS) CWP successfully with the support from the community. However, I still have another issue whether it is a bug or I have missed some configurations.

The issue: after successful installation & config of CWP, I both my domain and its IP can display default CWP page; they are:

http://www.mydomain.com
http://my_server_IP


However, after I uploaded an application to a folder for example:

http://www.mydomain.com/apps/


I can only access that folder via my domain for example: http://www.mydomain.com/apps/

but I cannot access it by IP: http://my_server_IP/apps/ which generates this errors:

Not Found
The requested URL /apps/ was not found on this server.


Here is my DNS record settings:

; Panel %version%
; Zone file for ns1.mydomain.com
$TTL 14400
mydomain.com.      86400        IN      SOA     ns1.mydomain.com. admin.mydomain.com. (
            2013071600      ; serial, todays date+todays
            86400           ; refresh, seconds
            7200            ; retry, seconds
            3600000         ; expire, seconds
            86400 )         ; minimum, seconds
    
mydomain.com.   86400   IN   NS   ns1.mydomain.com.
mydomain.com.   86400   IN   NS   ns2.mydomain.com.
 
ns1   86400   IN   A   167.114.xxx.xxx
ns2   86400   IN   A   167.114.xxx.xxx
 
mydomain.com.   86400   IN   A   167.114.xxx.xxx
 
localhost   86400   IN   A   127.0.0.1
 
mydomain.com.   86400   IN   MX   0   mydomain.com.
 
server   IN   A   167.114.xxx.xxx
www   IN   A   167.114.xxx.xxx


What config or settings are required so that I can access that folder via both domain and IP?

Cheers
Daro


20
CentOS-WebPanel Bugs / Re: Php errros in CWP panel
« on: July 21, 2018, 06:12:02 PM »
Thank you for all who have tried to help me especially Bullten. I found his advice on another link and was able to fix the issue with binding.

Just simply go to CWP panel --> DNS Functions --> Edit Nameservers IPs --> then press Save Changes to rebuild DNS records

Then in SSH, this command now works:

$ systemctl restart named


However, I have another issue. Because this ticket is too long, I will open another ticket.

Many thanks again for this great community.

Cheers
Daro

21
CentOS-WebPanel Bugs / Re: Php errros in CWP panel
« on: July 20, 2018, 08:04:46 AM »
Thanks. I mean what is the equivalent to

service named restart   (that is for CentOs 6)

on CentOs 7?

22
CentOS-WebPanel Bugs / Re: Php errros in CWP panel
« on: July 19, 2018, 11:46:02 AM »
Thanks.

What is the equivalent to:

service named restart


23
CentOS-WebPanel Bugs / Re: Php errros in CWP panel
« on: July 19, 2018, 09:56:23 AM »
Thanks, studio4host.

Bullen has fixed it. He may put his guides here soon to benefit everyone.

Cheers

24
CentOS-WebPanel Bugs / Re: Php errros in CWP panel
« on: July 18, 2018, 05:29:33 PM »
Update: I have deleted a user I created in CWP panel to remove DNS record. And created it again to rebuild DNS records.

The issue is still the same; binding does not work.

Or I can give you SSH credentials to have a look? Do you have an email address?

Cheers

25
CentOS-WebPanel Bugs / Re: Php errros in CWP panel
« on: July 18, 2018, 05:20:15 PM »
Hi,

Can you give me instruction on how to rebuild zone?

Cheers

26
CentOS-WebPanel Bugs / Re: Php errros in CWP panel
« on: July 18, 2018, 01:04:55 PM »
thanks for your advice.

I have changed to the followings:


; Panel %version%
; Zone file for ns1.baiagmumr5g.eu
$TTL 14400
ns1.baiagmumr5g.eu.      86400      IN      SOA      ns1.baiagmumr5g.eu.      admin.baiagmumr5g.eu.      (
                  2013071600 ;serial, todays date+todays
                  86400 ;refresh, seconds
                  7200 ;retry, seconds
                  3600000 ;expire, seconds
                  86400 ;minimum, seconds
      )
 
baiagmumr5g.eu.   14400   IN   NS   ns1.baiagmumr5g.eu.
baiagmumr5g.eu.   14400   IN   NS   ns2.baiagmumr5g.eu.
 
ns1   14400   IN   A   167.114.98.75
ns2   14400   IN   A   167.114.98.75
 
baiagmumr5g.eu.   14400   IN   A   167.114.98.75
 
localhost   14400   IN   A   127.0.0.1
 
baiagmumr5g.eu.   14400   IN   MX   0   baiagmumr5g.eu.
 
server   IN   A   167.114.98.75
www   IN   A   167.114.98.75
 
baiagmumr5g.eu.   IN   TXT   "v=spf1 a mx ptr a:baiagmumr5g.eu ip4:167.114.98.75 ?all"

_adsp._domainkey.baiagmumr5g.eu.   IN   TXT   "dkim=all"

_domainkey.baiagmumr5g.eu.   IN   TXT   "o=~; r=abuse@baiagmumr5g.eu"

_dmarc.baiagmumr5g.eu.   IN   TXT   "v=DMARC1; p=quarantine; sp=r; pct=100; aspf=r; adkim=s"


But it still does not work.

Cheers

27
CentOS-WebPanel Bugs / Re: Php errros in CWP panel
« on: July 18, 2018, 11:22:08 AM »
Here is the DNS record I have set in CWP panel:

$TTL    38400
@       IN      SOA     ns1.baiagmumr5g.eu.   admin.baiagmumr5g.eu. (
                        20170922110026 ; serial
                        90M ; refresh
                        15M ; retry
                        14D ; expire
                        3600 ; default_ttl
                        )
 
baiagmumr5g.eu.   14400   IN   NS   ns1.baiagmumr5g.eu.
baiagmumr5g.eu.   14400   IN   NS   ns2.baiagmumr5g.eu.
 
ns1   14400   IN   A   167.114.98.75
ns2   14400   IN   A   167.114.98.75
 
baiagmumr5g.eu.   14400   IN   A   167.114.98.75
 
localhost   14400   IN   A   127.0.0.1
 
baiagmumr5g.eu.   14400   IN   MX   0   baiagmumr5g.eu.
 
server   IN   A   167.114.98.75
www   IN   A   167.114.98.75
 
baiagmumr5g.eu.   IN   TXT   "v=spf1 a mx ptr a:baiagmumr5g.eu ip4:167.114.98.75 ?all"

_adsp._domainkey.baiagmumr5g.eu.   IN   TXT   "dkim=all"

_domainkey.baiagmumr5g.eu.   IN   TXT   "o=~; r=abuse@baiagmumr5g.eu"

_dmarc.baiagmumr5g.eu.   IN   TXT   "v=DMARC1; p=quarantine; sp=r; pct=100; aspf=r; adkim=s"


Can you please what is wrong with that?

Cheers

28
CentOS-WebPanel Bugs / Re: Php errros in CWP panel
« on: July 18, 2018, 10:06:30 AM »
Here it is:


[root@vps196134 ~]# systemctl status named.service
● named.service - Berkeley Internet Name Domain (DNS)
   Loaded: loaded (/usr/lib/systemd/system/named.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Wed 2018-07-18 03:02:07 EDT; 3h 3min ago
  Process: 3650 ExecStop=/bin/sh -c /usr/sbin/rndc stop > /dev/null 2>&1 || /bin/kill -TERM $MAINPID (code=exited, status=0/SUCCESS)
  Process: 13170 ExecReload=/bin/sh -c /usr/sbin/rndc reload > /dev/null 2>&1 || /bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS)
  Process: 12029 ExecStart=/usr/sbin/named -u named -c ${NAMEDCONF} $OPTIONS (code=exited, status=0/SUCCESS)
  Process: 3660 ExecStartPre=/bin/bash -c if [ ! "$DISABLE_ZONE_CHECKING" == "yes" ]; then /usr/sbin/named-checkconf -z "$NAMEDCONF"; else echo "Checking of zone files is disabled"; fi (code=exited, status=1/FAILURE)
 Main PID: 12031 (code=exited, status=0/SUCCESS)

Jul 18 03:02:07 vps196134.vps.ovh.ca bash[3660]: zone ns2.baiagmumr5g.eu/IN: loaded serial 2013071600
Jul 18 03:02:07 vps196134.vps.ovh.ca bash[3660]: dns_rdata_fromtext: /var/named/baiagmumr5g.eu.db:2: near '20170922110026': out of range
Jul 18 03:02:07 vps196134.vps.ovh.ca bash[3660]: /var/named/baiagmumr5g.eu.db:36: file does not end with newline
Jul 18 03:02:07 vps196134.vps.ovh.ca bash[3660]: zone baiagmumr5g.eu/IN: loading from master file /var/named/baiagmumr5g.eu.db failed: out of range
Jul 18 03:02:07 vps196134.vps.ovh.ca bash[3660]: zone baiagmumr5g.eu/IN: not loaded due to errors.
Jul 18 03:02:07 vps196134.vps.ovh.ca bash[3660]: _default/baiagmumr5g.eu/IN: out of range
Jul 18 03:02:07 vps196134.vps.ovh.ca systemd[1]: named.service: control process exited, code=exited status=1
Jul 18 03:02:07 vps196134.vps.ovh.ca systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
Jul 18 03:02:07 vps196134.vps.ovh.ca systemd[1]: Unit named.service entered failed state.
Jul 18 03:02:07 vps196134.vps.ovh.ca systemd[1]: named.service failed.



Thanks

29
CentOS-WebPanel Bugs / Re: Php errros in CWP panel
« on: July 18, 2018, 07:03:04 AM »
Sorry there is a mistyped command above. Here is a correct one:

[root@vps196134 ~]# service named restart
Redirecting to /bin/systemctl restart named.service
Job for named.service failed because the control process exited with error code. See "systemctl status named.service" and "journalctl -xe" for details.


Cheers

30
CentOS-WebPanel Bugs / Re: Php errros in CWP panel
« on: July 17, 2018, 07:58:40 PM »
a. Here are the outputs of the commands:

[root@vps196134 ~]# yum list installed | grep bind
bind.x86_64                           32:9.9.4-61.el7                  @base
bind-libs.x86_64                      32:9.9.4-61.el7                  @base
bind-libs-lite.x86_64                 32:9.9.4-61.el7                  @base
bind-license.noarch                   32:9.9.4-61.el7                  @base
bind-utils.x86_64                     32:9.9.4-61.el7                  @base

[root@vps196134 ~]# serivce named restart
-bash: serivce: command not found



b. And here the DNS config I did in CWP panel:

$TTL    38400
@       IN      SOA     ns1.mydomain.com.   admin.mydomain.com. (
                        20170922110026 ; serial
                        90M ; refresh
                        15M ; retry
                        14D ; expire
                        3600 ; default_ttl
                        )
 
mydomain.com.   14400   IN   NS   ns1.mydomain.com.
mydomain.com.   14400   IN   NS   ns2.mydomain.com.
 
ns1   14400   IN   A   xxx.xxx.xxx.xxx
ns2   14400   IN   A   xxx.xxx.xxx.xxx
 
mydomain.com.   14400   IN   A   xxx.xxx.xxx.xxx
 
localhost   14400   IN   A   127.0.0.1
 
mydomain.com.   14400   IN   MX   0   mydomain.com.
 
server   IN   A   xxx.xxx.xxx.xxx
www   IN   A   xxx.xxx.xxx.xxx
 
mydomain.com.   IN   TXT   "v=spf1 a mx ptr a:mydomain.com ip4:xxx.xxx.xxx.xxx ?all"

_adsp._domainkey.mydomain.com.   IN   TXT   "dkim=all"

_domainkey.mydomain.com.   IN   TXT   "o=~; r=abuse@mydomain.com"

_dmarc.mydomain.com.   IN   TXT   "v=DMARC1; p=quarantine; sp=r; pct=100; aspf=r; adkim=s"


default._domainkey   IN   TXT   ( "v=DKIM1; k=rsa; "
     "p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCCRwGE8OCQk/skzSse3837B4/PLCtW6FfYESiyFshpKlF8bOGl7MfpKXibbTfBdur0puNmGOPhSSPxzEsnHjmYp7xHErzgYVd/Wgqp9HdyQRBfqyVJXmSbhuhjFe7zCYyrp4gZY1maDa5T6p8nIj/acuXrmgJNLOeAcbW7RjS8EQIDAQAB" )  ; ----- DKIM key default for mydomain.com
nh4rtd9f  IN CNAME www.mydomain.com.


Cheers

Pages: 1 [2] 3