DNS Records [sloved]

Hi,

A few things to note:

  • Any red text is in place of my real site details.

  • All my website files are in the folder: /home/user_name/public/mysite.com/public

  • My server was set up using Linodes user guides.

  • I'm a beginner :shock:

I followed Linode's guide for 'Adding DNS Records' and it's been over 24 hours and my site is blank.

I contacted http://www.namecheap.com (my domain registrar) and everything looks fine from their end. Linode told me > It looks like your DNS records are propagated and pointing to the right IP address They suggested I make sure vhosts are correctly set up and sent me here for extra help.

I'm a beginner, so I assume vhosts is my virtual hosts, right? Here's my virtual hosts file by typing: > sudo nano /etc/apache2/sites-available/mysite.com File contents:
> # domain: mysite.com

public: /home/user_name/public/mysite.com/

# Admin email, Server Name (domain name), and any aliases

ServerAdmin webmaster@mysite.com

ServerName www.mysite.com

ServerAlias mysite.com

Index file and Document Root (where the public files are located)

DirectoryIndex index.html index.php

DocumentRoot /home/user_name/public/mysite.com/public

Log file locations

LogLevel warn

ErrorLog /home/user_name/public/mysite.com/log/error.log

CustomLog /home/user_name/public/mysite.com/log/access.log comb$
I created the above file following Linode's guides, so I think it's setup ok, maybe?

Then I (re)create a symbolic link to my public directory
> sudo a2ensite mysite.com Then I restart apache
> sudo service apache2 restart

I still can't acces my site :(

Anyone got any ideas I could try?

1 Reply

UPDATE:

I fixed it!!!

Typical, I spend hours trying to fix the problem and then I post a question and I solve it almost immediately :lol:

It turns out it was a permissions issue. I had set Wordpress' wp-config' file to 640 (as recommended in a forum), but once I changed it to 644 my site magically appeared! :mrgreen:

Thanks anyway

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct