Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Sep 17, 2011 2:53 pm 
Offline
Senior Newbie

Joined: Sat Sep 17, 2011 1:52 pm
Posts: 10
I am trying to install wordpress on my linode, having completed all the basics. The problem is that I cannot access the domain. Both firefox and chrome show a connection reset.

Now I should mention I'm not very familiar with Linux, but I did exactly follow the documentation, I've checked these forums, and I find most things in order. I have no idea what could have gone wrong, so any help is appreciated.

If it helps, the domain is hokpok.com


Top
   
 Post subject:
PostPosted: Sat Sep 17, 2011 3:07 pm 
Offline
Senior Member

Joined: Wed Dec 01, 2010 10:39 am
Posts: 71
Website: http://www.pannix.net
Location: Belgium
Firefox gives indeed an "Unable to connect" error.
You will have to give some more information:
What did you install: OS (debian, ubuntu, centos, ...) apache or nginx, mysql, php
Have you registered the domain name and added the linode DNS servers?
Have you added your site to the linode dns servers
...

cheers


Top
   
 Post subject:
PostPosted: Sat Sep 17, 2011 3:13 pm 
Offline
Senior Newbie

Joined: Sat Sep 17, 2011 1:52 pm
Posts: 10
Sorry for not being specific.

I have Ubuntu 10.04, Apache2, mysql, php. And an incomplete wordpress install because i never could open the site.

I have set the DNS and it appears to be correct. Set the nameservers, and added to the DNS manager as well.


Top
   
 Post subject:
PostPosted: Sat Sep 17, 2011 3:25 pm 
Offline
Senior Member

Joined: Wed Dec 01, 2010 10:39 am
Posts: 71
Website: http://www.pannix.net
Location: Belgium
I do not know when you have done this, but it can take a couple of hours (up to a day) before DNS changes take effect.
What you can do is a wget from the commandline on your server:
wget http://www.hokpok.com
or
wget http://hokpok.com
or
wget http://yourip
If this doesn't work, there surely is something wrong with your webserver.

Have you tried with just an index.html (with some text) to see if that works? To see if apache is set up correctly?

Next step info.php file (<?php phpinfo(); ?>) to see if php is set up correctly.

Restarted apache?

I am learning how to set up a webserver with nginx, so this is probably as far as I can help you.


Top
   
 Post subject:
PostPosted: Sat Sep 17, 2011 3:42 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
A quick port scan shows nothing listening on port 80 so either
1) Your web server isn't running
2) Your firewall has port 80 closed
3) Your web server is running on a different port.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Sat Sep 17, 2011 3:49 pm 
Offline
Senior Newbie

Joined: Sat Sep 17, 2011 1:52 pm
Posts: 10
wget gives me an error.

Quote:
failed: Connection Refused


It does resolve the correct IP though (my linode's public IP)

Cannot access index.html either. Is there anything short of rebuilding that I can do?


Top
   
 Post subject:
PostPosted: Sat Sep 17, 2011 3:50 pm 
Offline
Senior Newbie

Joined: Sat Sep 17, 2011 1:52 pm
Posts: 10
@obs any way I can have port 80 running then? I don't think I installed a firewall.


Top
   
 Post subject:
PostPosted: Sat Sep 17, 2011 5:06 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
Type "ps -C apache2" (without the quotes) into your terminal. You should see at least a few lines that say "apache2". If not, Apache is not running.

If Apache is not running, try restarting it with the command "/etc/init.d/apache2 restart" (without the quotes). You might need to prepend "sudo" if you're not logged in as root. Do you get any error messages? If not, does it work now?


Top
   
 Post subject:
PostPosted: Sun Sep 18, 2011 2:37 am 
Offline
Senior Newbie

Joined: Sat Sep 17, 2011 1:52 pm
Posts: 10
It seems the problem really is with apache. Entering ps -C apache2 simply shows "PID TTY TIME CMD"

So I tried restarting apache with /etc/init.d/apache2 restart and it failed. This was the output I got:

Quote:
*Restarting web server apache2 [fail]


what should i do next?


Top
   
 Post subject:
PostPosted: Sun Sep 18, 2011 3:59 am 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
You probably have a syntax error in one of your Apache configuration files. Check for error messages in /var/log/apache2/error.log


Top
   
 Post subject:
PostPosted: Sun Sep 18, 2011 12:38 pm 
Offline
Senior Member
User avatar

Joined: Thu Jun 16, 2011 8:24 am
Posts: 412
Location: Cyberspace
Doesn't apache usually give a config file and line number when it has a problem with the configuration? It's been awhile since I've edited apache's config files on another server that I admin, it worked perfectly (a bit laggy at times) after I configured it awhile back, so I can't remember, but I though it always gave the config file and line of the incorrect setting?


Top
   
 Post subject:
PostPosted: Sun Sep 18, 2011 4:38 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
Piki wrote:
Doesn't apache usually give a config file and line number when it has a problem with the configuration?

It usually does, but I've read about cases where Apache just fails to start. There might not be anything in the logs, either.

Another possibility is that a PHP module is crashing. It happens from time to time, for no apparent reason. Opcode caching extensions (APC, eAccelerator, and XCache) are the usual suspects.


Top
   
 Post subject:
PostPosted: Sun Sep 18, 2011 7:51 pm 
Offline
Senior Member

Joined: Fri Jan 09, 2009 5:32 pm
Posts: 634
Piki wrote:
Doesn't apache usually give a config file and line number when it has a problem with the configuration? It's been awhile since I've edited apache's config files on another server that I admin, it worked perfectly (a bit laggy at times) after I configured it awhile back, so I can't remember, but I though it always gave the config file and line of the incorrect setting?


The init or startup scripts do not usually pass the error back, so you have to go look in the logs, but there, yes, you should get the file/line that is causing the issue.


Top
   
 Post subject:
PostPosted: Mon Sep 19, 2011 2:35 am 
Offline
Senior Newbie

Joined: Sat Sep 17, 2011 1:52 pm
Posts: 10
all i get there is "Unable to open logs."

Should I try to rebuild?


Top
   
 Post subject:
PostPosted: Mon Sep 19, 2011 2:51 am 
Offline
Junior Member

Joined: Mon Sep 19, 2011 2:48 am
Posts: 28
A quick search on google suggest you may want to make sure that the /etc/apache2/logs actually exists.

A couple people solved the same error by simply making that folder.

I hope this helps and good luck!

*EDIT

In your case, the path would actually be /var/log/apache2/

I dont know why the forum I chose to copy from used the above path.

Also check your disk space if you haven't, make sure your not out.

Good luck again.


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


Who is online

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