troubleshooting Question

PHP website on Linux - server DNS address could not be found.

Avatar of CipherIS
CipherISFlag for United States of America asked on
LinuxPHPDNS
18 Comments4 Solutions960 ViewsLast Modified:
I am creating a test environment of a website.  I copied what was in production and made modifications for the test environment.  I performed the following steps.

1.  On the server where the production website exists created directory test.mysite.com (example).
2.  Copied files from prod.mysite.com to test.mysite.com after making changes (e.g. dbase connections to point to test dbase instead of prod).
3.  edit apache2.conf file to include the test.mysite.com (example below).
<VirtualHost *:80>
        Header set Access-Control-Allow-Origin "*"
        DocumentRoot "/home/webserver/www/apitest.mysite.com"
        ServerName apitest.mysite.com
        <Directory "/home/webserver/www/apitest.mysite.com">
                Require all granted
        </Directory>
</VirtualHost>
<VirtualHost *:80>
        DocumentRoot "/home/webserver/www/test.mysite.com"
        ServerName test.mysite.com
        <Directory "/home/webserver/www/test.mysite.com">
                Require all granted
        </Directory>
</VirtualHost>

I also made sure that the file permissions for each folder matched the production permissions.

When I type URL test.mysite.com I receive server DNS address could not be found.
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 4 Answers and 18 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 4 Answers and 18 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros