Having a hard time to point my EC2 Instance to my main domain

Hey,

just been racking my brain trying to look how to point my instance to my domain. I've scoured the forums and I've felt I've done everything to no avail. Hoping for some assistance. I know with the domain mapping plugin its asking me to replace my wp plugin manually. But generally having a hard time connecting through Filezilla. Need a better walk through thanks!

  • Nastia

    Hello Brandon , welcome to WPMU DEV Community!

    I hope you are doing well!

    I am not familiar with Amazon web services well, although I think it shouldn't be much different from the usual cPanel.

    I've will guide you through the Domain Mapping set up.

    First, the following code need to be added inside the wp-config.php file:
    define( 'SUNRISE', 'on' );

    Just above the following:

    /* That's all, stop editing! Happy blogging. */

    After this, move the sunrise.php fromt /wp-content/plugins/domain-mapping/ to the /wp-content/ folder.

    So the path to that file will be:

    /wp-content/sunrise.php

    Depends on what domain name you wish to map, create CName or A record: CName if you wish to map sub.site.com, and A record for site.com.

    Point the domain name to the WordPress site root. More instructions can be found here:
    https://premium.wpmudev.org/project/domain-mapping/#product-usage

    If you've done all these things, and you still can't map a domain, please grant access from WPMU DEV > Support so I can have a closer look?

    Please see the detailed instructions on the link below:
    https://premium.wpmudev.org/manuals/wpmu-dev-dashboard-enabling-staff-login/

    Inside the Support Access field, please provide the following information:
    - the subsite you wish to map
    - the mapped domain name

    Let me know when you'll grant access!

    Cheers,
    Nastia

  • Nastia

    Hello Brandon , I hope you are doing well today!

    Please note, that you have two Domain Mapping plugins active. This might cause some issues. If you wish to choose our Domin Mapping plugin, please deactivate the "WordPress MU Domain Mapping" plugin.

    Also for future reference, I don't know how to access my wp-config.php file to make the edit.

    I am afraid I am not familiar with Amazon Hosting Services and since it is premium I can't test it but based on this tutorial I see that it is possible to access the wp-config.php and edit it with a text editor.

    You will require a software for FTP client :
    - for OS X is Transmit and Cyberduck.
    - if you are a windows user try Cyberduck or CloudBerry.

    You should have FTP credentials to access your directory. Ig you haven't received these via email when you first registered to hosting services please contact your host to find out how you can get those.

    For more information about FTP clients and how they work please see this manual:
    https://premium.wpmudev.org/manuals/wpmu-manual-2/introduction-to-ftp-and-using-ftp-clients/

    So once you have access to your site's directory, download the wp-config.php ( it is located in a main directory of your site along with files like wp-admin, wp-includes)

    You can edit the wp-config.php with any TXT Editor to add the define( 'SUNRISE', 'on' ); line , as long as it saved as wp-config.php file.

    Ones the line is added, upload the wp-config.php back replacing the old one. Always have a backup of your site, so in case something goes wrong you can restore the site, so keep a backup of wp-config.php file as well.

    In case you still have troubles editing the wp-config.php, please send your credentials to me, so I could edit them for you.

    You can send credentials by using our secure contact form http://premium.wpmudev.org/contact/

    Subject: “Attn: Nastia”
    - WordPress admin username
    - WordPress admin password
    - Login URL
    - FTP credentials (host/username/password)
    - Link back to this thread for reference
    - Any other relevant URLs

    Important! Select “I have a different question” for your topic - this and the subject line to ensure that it gets assigned to me.

    I would like my godemics site to point to http://www.godemics.com.

    For this, you need to access Amazon S3 Management Console, register http://www.godemics.com domain, if you haven't done it yet, and point the root to the folder where the WordPress site is installed. To test if it is pointing to the right directory, just enter the http://www.godemics.com in your browser and it should open your main site wich is ec2-52-52-103-201.us-west-1

    You can map a domain without www, the Domain Mapping plugin redirects automatically to the mapped domain if a visitor adds www in front.

    Let me know if you have any further questions!

    Cheers,
    Nastia

  • Sajid

    Hello Brandon,
    Hope you are doing good today :slight_smile:

    I can now access your WordPress website on following URL:
    http://godemics.com/

    That seems that you have figured it out. In case you are still looking for a solution, then you can always change the link of your website from WP Dashboard -> Settings -> General -> Site Address (URL) and/or WordPress Address (URL).

    Best Regards,
    Sajid

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.