Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23

Thread: apache php problem

  1. #11
    Join Date
    Aug 2013
    Beans
    46

    Re: apache php problem

    ive not long tried changing the domains name servers a A record. do i need to update dns on the vps side to? didnt need to on 12.04


    --- www.c.com ping statistics ---
    98 packets transmitted, 98 received, 0% packet loss, time 99314ms
    rtt min/avg/max/mdev = 0.036/0.045/0.055/0.003 ms
    root@localhost:~# dig www.c.com

    ; <<>> DiG 9.16.1-Ubuntu <<>> www.c.com;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54542
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1


    ;; OPT PSEUDOSECTION:
    ; EDNS: version: 0, flags:; udp: 65494
    ;; QUESTION SECTION:
    ;www.c.com. IN A


    ;; ANSWER SECTION:
    www.celticalliance.com. 0 IN A 77...........(ip removed)


    ;; Query time: 0 msec
    ;; SERVER: 127.0.0.53#53(127.0.0.53)
    ;; WHEN: Fri Oct 15 23:09:01 UTC 2021
    ;; MSG SIZE rcvd: 67


  2. #12
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: apache php problem

    As long as the IP matches, you should be fine.

    You can try troubleshooting it with curl:

    Code:
     curl http://example.com
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  3. #13
    Join Date
    Aug 2013
    Beans
    46

    Re: apache php problem

    i didnt know about curl, every days a school day

    curl: (6) Could not resolve host: c.com

  4. #14
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: apache php problem

    Try it with the www and see if it gets a response.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  5. #15
    Join Date
    Aug 2013
    Beans
    46

    Re: apache php problem

    it doesnt return anything, another one does



    301 Moved Permanently</title>
    </head><body>
    <h1>Moved Permanently</h1>
    <p>The document has moved <a href="http://www.e.co.uk//

    i had to remove some of the code as the forum wouldnt let me post

  6. #16
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: apache php problem

    That looks norm if you are doing a redirect.. are you doing a redirect from one site to another?
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  7. #17
    Join Date
    Aug 2013
    Beans
    46

    Re: apache php problem

    there is a rewrite in that config


    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^www\.e\.co.uk$ [NC]
    RewriteRule ^(.*)$ http://www.e.co.uk/$1 [R=301,L
    thats the only site out 4 thats returning anything at the moment, no pages are loading. thanks for the help

  8. #18
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: apache php problem

    At least one is the sites is working. If the other sites are the same except the document root and server name are different, they should be working too.

    You could check your apache logs. They should be in /var/log/apache2/
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  9. #19
    Join Date
    Aug 2013
    Beans
    46

    Re: apache php problem

    none of the sites load, ill have to give the dns more time and hope its that. i have some php errors on the log, thats it. the forum needs to be updated after the php upgrade to 7 but am not going to touch it untill i start to see something loading. its a strange one.

  10. #20
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: apache php problem

    If you want to bypass DNS for the time being, you can add an entry to your /etc/hosts file and see if the site loads or not.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

Page 2 of 3 FirstFirst 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •