DNS Records [sloved]
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/publicMy 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 > 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/
File contents:
> # domain:
public: /home/
user_name /public/mysite .com/
# Admin email, Server Name (domain name), and any aliases ServerAdmin webmaster@
mysite .comServerName www.
mysite .comServerAlias
mysite .comIndex file and Document Root (where the public files are located)
DirectoryIndex index.html index.php
DocumentRoot /home/
user_name /public/mysite .com/publicLog file locations
LogLevel warn
ErrorLog /home/
user_name /public/mysite .com/log/error.logCustomLog /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
Then I restart apache
> sudo service apache2 restart
I still can't acces my site
Anyone got any ideas I could try?
1 Reply
I fixed it!!!
Typical, I spend hours trying to fix the problem and then I post a question and I solve it almost immediately
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!
Thanks anyway