Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: DNS Records [sloved]
PostPosted: Sat Aug 18, 2012 6:46 am 
Offline
Senior Newbie

Joined: Tue Jul 31, 2012 3:16 am
Posts: 7
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
Quote:
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:
Quote:
sudo nano /etc/apache2/sites-available/mysite.com
File contents:
Quote:
# domain: mysite.com
# public: /home/user_name/public/mysite.com/

<VirtualHost *:80>
# 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$
</VirtualHost>

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
Quote:
sudo a2ensite mysite.com
Then I restart apache
Quote:
sudo service apache2 restart


I still can't acces my site :(
Anyone got any ideas I could try?


Last edited by liverpaul on Sat Aug 18, 2012 6:55 am, edited 1 time in total.

Top
   
 Post subject: Re: DNS Records
PostPosted: Sat Aug 18, 2012 6:54 am 
Offline
Senior Newbie

Joined: Tue Jul 31, 2012 3:16 am
Posts: 7
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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: mattltm and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group