Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Apr 04, 2012 9:33 am 
Offline
Newbie

Joined: Wed Apr 04, 2012 6:55 am
Posts: 4
I am new to linode.
I have linode account.
I have rebuilded linode with Ubuntu 10.04 LTS.
I am connected via putty to linode.
How can I host My website on my linode using Lamp?

I have done some steps.
- Set the hostname
- Install and configure the Apache Web Server
etc.

I am following this guide.
http://library.linode.com/lamp-guides/u ... tual-hosts



Please help.


Top
   
 Post subject:
PostPosted: Wed Apr 04, 2012 11:11 am 
Offline
Newbie

Joined: Tue Apr 03, 2012 5:40 pm
Posts: 3
What are you stuck on and what have you tried that didn't work?


Top
   
 Post subject:
PostPosted: Thu Apr 05, 2012 5:29 am 
Offline
Newbie

Joined: Wed Apr 04, 2012 6:55 am
Posts: 4
Thanks for reply Matth.

Let me explain what steps I have already done.

http://library.linode.com/getting-started
According to this manual
After having linode account,
I have
- Deployed a Linux Distribution Ubuntu 10.04 LTS
- Started My Linode using reboot
- As I am on windows xp, I have downloaded PUTTY, Using that connected to my linode
- After that Installed Security Updates using given commands in manual
- then Set the Hostname to teamnim

After that using http://library.linode.com/lamp-guides/u ... 0.04-lucid
I have made following updations
Set up a LAMP Server on Ubuntu 10.04
- Set the Hostname
- Install and Configure the Apache Web Server
- Configure Name-based Virtual Hosts
- Install and Configure the MySQL Database Server
- Install and Configure PHP

But when I run '/etc/init.d/apache2 restart' OR '/etc/init.d/apache2 reload'
I get following message

* Restarting web server apache2
apache2: apr_sockaddr_info_get() failed for teamnim
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
... waiting apache2: apr_sockaddr_info_get() failed for teamnim
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

Also if I type any command with sudo
I got this error: sudo: unable to resolve host teamnim

/etc/PHP5/apache2/PHP.ini
This command gives me error : -bash: /etc/PHP5/apache2/PHP.ini: No such file or directory

Please help


Top
   
 Post subject:
PostPosted: Thu Apr 05, 2012 5:50 am 
Offline
Senior Member

Joined: Fri Feb 17, 2012 8:20 pm
Posts: 365
1. What do you get as output when you do "hostname -f"?
2. Regarding sudo, EVERY command? so "sudo ls" gives you that error as well? Follow this
3. php.ini isn't an executable. You have to open it with something (an editor, like nano) - also, it's case sensitive. So:
nano /etc/php5/apache2/php.ini
Add sudo infront of that if you have no writing permissions.

Are you sure it isn't easier to get someone to admin your Linode? Correct me if I'm wrong, but you don't seem like someone who has a lot of experience with the CLI. It might be better to get someone to do it for you.

Unless of course it's a playbox, but if it's important websites that have to run it that might be wiser.


Top
   
 Post subject:
PostPosted: Thu Apr 05, 2012 6:27 am 
Offline
Newbie

Joined: Wed Apr 04, 2012 6:55 am
Posts: 4
@Nuvini Thanks for reply

Using Putty I connected to linode.
And on that command prompt I logged in.
My root is root@teamnim
If I execute this command
root@teamnim:/# hostname -f
I get
hostname: Name or service not known

If I execute sudo ls
root@teamnim:/# sudo ls

sudo: unable to resolve host teamnim
bin cdrom etc home lost+found mnt proc sbin srv tmp var
boot dev example.org lib media opt root selinux sys usr


Yes you are absolutely right that I am fresher for all these things.
I have website that is developed in PHP-Mysql.
and want to host this website on linode. That's it.
for that I have followed documention. Accordingly made configurations, settings.


Top
   
 Post subject:
PostPosted: Thu Apr 05, 2012 7:02 am 
Offline
Senior Member

Joined: Fri Feb 17, 2012 8:20 pm
Posts: 365
Hi,

Since some things seem messed up, and you have only just started with your Linode, it's probably better to make sure it's done right and use a stackscript.

The Linode stackscripts do the configuration automatically, so you're certain it's set up properly.
Doing this will WIPE everything you have so far, but at least it will 100% work.

Please check here: http://www.linode.com/stackscripts/view ... criptID=10

After that, the only thing you might need to do is manually change the hostname /Virtual host to reflect your hostname, if you don't have a reverse DNS yet.
If you do have a domain, set up the Reverse DNS first: https://manager.linode.com/linodes/remote_access/Nuvini

After that, I believe the stackscript puts the webroot at /srv/www/<virtualhostname>/public_html/

Good luck,

PS. If I were you I'd use Debian 6. The hostname error you had was apperantly a bug limited to Ubuntu.
The workings are pretty much the same command-wise, since Ubuntu is based on Debian.


Top
   
 Post subject:
PostPosted: Thu Apr 05, 2012 9:48 am 
Offline
Senior Member

Joined: Mon Dec 20, 2010 11:37 pm
Posts: 76
manisha wrote:
Using Putty I connected to linode.
And on that command prompt I logged in.
My root is root@teamnim
If I execute this command
root@teamnim:/# hostname -f


It seems your path is / when you log in instead of /root... something strange happend with your installation.

I would install the system 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 0 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