Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Dec 14, 2013 9:22 pm 
Offline
Senior Newbie

Joined: Sat Dec 14, 2013 7:59 pm
Posts: 7
My issue seems simple, but cannot for the life of me figure this out.

Simply put, my Linode server is still showing "It Works" page, even after I uploaded a "index.html" file to the ""home/myuser/" directory.

After doing a bunch of things with Linode support, this is what they finally said:

"I apologize, I'm unsure why your virtual host configuration isn't being used. It is certainly odd that despite the changes we continue to see the "It works!" page. Please consult the community."

So, that's where I am at.

I did just try to redo VirtualHosts again, and during it, it gave me three errors which seem to be at the root of this issue:


sudo a2dissite default
ERROR: Site default does not exist!

mkdir public mkdir:
cannot create directory ‘public’: File exists

sudo a2ensite mysite.com
ERROR: Site mysite.com does not exist!


You guys are my only hope.


Last edited by Arteia on Sat Dec 14, 2013 11:24 pm, edited 1 time in total.

Top
   
PostPosted: Sat Dec 14, 2013 10:11 pm 
Offline
Senior Newbie

Joined: Sat Dec 14, 2013 7:59 pm
Posts: 7
I should mention, there are no "public" or "www" folders to upload to on my server either, that's why I uploaded the index.html file to "home/myuser/".

Maybe that is part of the issue?


Top
   
PostPosted: Sun Dec 15, 2013 9:03 am 
Offline
Senior Member

Joined: Mon Jan 02, 2012 12:45 pm
Posts: 365
What distribution & version are you using?

If you're looking for the 'www' dir it is /var/www (at least it is on Ubuntu). There's also located at /srv/www (your Linode's 'linode' name is in that directory).

What files are in your /etc/apache2/site-available & /etc/apache2/site-enabled folders?


Top
   
PostPosted: Sun Dec 15, 2013 7:14 pm 
Offline
Senior Newbie

Joined: Sat Dec 14, 2013 7:59 pm
Posts: 7
Main Street James wrote:
What distribution & version are you using?

If you're looking for the 'www' dir it is /var/www (at least it is on Ubuntu). There's also located at /srv/www (your Linode's 'linode' name is in that directory).

What files are in your /etc/apache2/site-available & /etc/apache2/site-enabled folders?





Using Ubuntu 13.10

/etc/apache2/site-available & /etc/apache2/site-enabled are both completely empty.


Top
   
PostPosted: Sun Dec 15, 2013 7:35 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
Wipe attempt #1.

Start fresh, install a shiny new OS.

Follow the LAMP install howto: https://library.linode.com/lamp-guides/ ... e-pangolin

(I'm assuming the Ubuntu 12.04 is similar enough to 13.10 - I stick to Enterprise OS's like CentOS)

Get it to work AS SHOWN, then worry about customizing it to suit your needs.

I have no clue why you're trying to move things (i.e. web pages) from their NORMAL location.

It's not rocket science, but it is picky when it comes to paying attention to details. Keep in mind, until you're very very good with SysAdmin skills, you do things the way the computer wants, not the way you want/think the computer should work.

_________________
Either provide enough details for people to help, or sit back and listen to the crickets chirp.
Security thru obscurity is a myth - and really really annoying.


Top
   
PostPosted: Mon Mar 24, 2014 5:22 pm 
Offline
Senior Newbie

Joined: Mon Mar 24, 2014 8:56 am
Posts: 11
Yes I also got tripped up following the official docs: https://library.linode.com/hosting-website
but using Ubuntu 13.10 (not 12.04). The version of apache it comes with seems to do things differently.
In sites-available there is a '000-default' instead of just 'default'
It's possible to change the command to disable that instead (a2dissite 000-default) and then reload apache2, but that only changes the behaviour so that your first virtual host is served up instead. So I just left it alone.

What I have is myserver.example.com which I use as FQDN for the server (only used as a FQDN and for SSH and the like) and ideally I'd like http://myserver.example.com to just refuse to do anything (more secure) and only have someothersubdomain.example.com served via virtual hosts, but I'm not up to speed on that yet.

You also need, as mentioned elsewhere in the forums:
Code:
<Directory "directory here">
Order allow,deny
Allow from all
Require all granted
</Directory>

adding to the .conf file for your virtual host in this version of Ubuntu/Apache, or you'll just get access denied errors.


Top
   
PostPosted: Mon Mar 24, 2014 8:07 pm 
Offline
Senior Member

Joined: Tue Aug 02, 2011 2:45 pm
Posts: 55
You can try:
Code:
apache2ctl -S

That will list all your virtual hosts and their config files. In case something weird got configured. It would be super convenient if that command listed the webroot directories but you'll have to go hunting in the listed config files for that.

Are you sure you replaced the default index file? You didn't upload an index.php or some other similarly named named file instead did you?


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


Who is online

Users browsing this forum: No registered users and 5 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