LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 09-27-2006, 07:38 AM   #1
GunNam
LQ Newbie
 
Registered: Sep 2006
Location: Los Angeles
Distribution: Ubuntu 10.10
Posts: 17

Rep: Reputation: 0
running LAMP


This is my first post and it's not only because I'm new to this site, I'm pretty new to linux. So now that you know that I'm an idiot, please be as descriptive as possible in your posts.

The version of ubuntu I'm using is 6.06.1 Server & Desktop, I can't get either to work, so I don't think it really matters...

I am trying to practice using PHP with a MySQL database. The free, online webservers I've used do not give me the liberty to create & edit my own mysql database, so I figured this is my best option - to run my own web server.

I should get some points here: I am a WindowsXP user, but decided that I want to try linux (actually 3rd attempt - "attempt is the key word.") I did some research and decided that ubuntu would be the easiest option for me, or so I thought.

I followed this article to the T: howtoforge.com/perfect_setup_ubuntu_6.06
HOWEVER, on page #3, I ran into the following ERROR MSG: SIODELRT: No such process. I received this error after editting the following:
vi /etc/network/interfaces

I followed the article exactly first, and then tried to edit it to match the IP address that my router gives this machine:
Original:
iface eth0 inet static
address 192.168.0.100
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1

The version I used since my IP is 192.168.15.102
iface eth0 inet static
address 192.168.15.102
netmask 255.255.255.0
network 192.168.15.0
broadcast 192.168.15.255
gateway 192.168.15.1

When I run "/etc/init.d/netowrking restart" I receive the SIOCDELRT: No such process error msg.

I changed the /etc/hosts in the following section (article) but running hostname doesn't give me myserver.com, it just says myserver... so I assume I'm doing something wrong. rebooting didn't help as the article states.


I am looking for the fastest way to get this up & running, but I'm also interested in learning linux, well atleast use it without being so frustrated.

If there is a way to run the desktop AND the LAMP server so I can use it on my network, that would be ideal. Any help is appreciated. Sorry for the longwinded question.
 
Old 09-28-2006, 12:35 AM   #2
leandean
Member
 
Registered: Oct 2005
Location: Burley, WA
Distribution: Sabayon, Debian
Posts: 278

Rep: Reputation: Disabled
First problem: /etc/init.d/network restart. No ..ing

Second problem: hostname <the name you want it to be> (as root). Not sure if this works on ubuntu as I've never run it.

Third problem: Remember, I've not run this distro. Yes. First time out do some research before you blindly install the apps. I would suggest using google/linux and enter lamp. There are plenty of how-to links there.

By the way, welcome!
 
Old 09-28-2006, 01:44 AM   #3
binary_y2k2
Member
 
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
1st the only difference between the server and desktop version is the desktop version install a desktop, so you can install the desktop version and still run LAMP.
2nd /etc/hosts is like an internal DNS server (kind of), you can call your pc anything you want, that won't affect it.

If you want to check that you have the correct IP address just use the command
Code:
ifconfig eth0
and to check the gateway
Code:
route -n
If you just want to use the server locally (not have it accessible from the internet) then you can set the server name in apache to "localhost" and that will work fine, but if you do want to be accessible from the internet and run your own web server you need to register a domain name and set-up the DNS records with your register.
 
Old 09-29-2006, 12:53 AM   #4
GunNam
LQ Newbie
 
Registered: Sep 2006
Location: Los Angeles
Distribution: Ubuntu 10.10
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks for the responses. I will try this stuff out and read some more tutorials.

leandean... picking ubunto was actually a decision made after researching several distros. Ubuntu looked like it would be the easiest to install since I'm a linux newbie.
 
Old 09-29-2006, 06:31 AM   #5
GunNam
LQ Newbie
 
Registered: Sep 2006
Location: Los Angeles
Distribution: Ubuntu 10.10
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by binary_y2k2
1st the only difference between the server and desktop version is the desktop version install a desktop, so you can install the desktop version and still run LAMP.
2nd /etc/hosts is like an internal DNS server (kind of), you can call your pc anything you want, that won't affect it.

If you want to check that you have the correct IP address just use the command
Code:
ifconfig eth0
and to check the gateway
Code:
route -n
If you just want to use the server locally (not have it accessible from the internet) then you can set the server name in apache to "localhost" and that will work fine, but if you do want to be accessible from the internet and run your own web server you need to register a domain name and set-up the DNS records with your register.
I realized that I could just install "Install LAMP Server" off the ubuntu server ISO disk, which is what I just got done doing. Afterwards, since I also want to learn how to use it a little better, I decided to download their lightweight desktop - xubuntu, which went pretty well.

Running the commands you mentioned yielded the following results. The route -n command confuses me a little bit. Here are the results: (Some items were deleted for what I believe could be dangerous to post)
admin@rbm:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.15.1 0.0.0.0 UG 0 0 0 eth0
admin@rbm:~$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr * deleted *
inet addr:192.168.15.102 Bcast:192.168.15.255 Mask:255.255.255.0
inet6 addr: * delete * Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:230082 errors:0 dropped:0 overruns:0 frame:0
TX packets:112427 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:343580372 (327.6 MiB) TX bytes:8069852 (7.6 MiB)
Interrupt:11 Base address:0xa000

I'm currently locating some apache tutorials so I can understand what you're talking about regarding setting it to localhost.

thanks for the help. it's making the learning process go a little smoother than the last time.
 
Old 09-29-2006, 07:02 AM   #6
binary_y2k2
Member
 
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
what the route and ifconfig command tells me there is that you have set-up the network the was your 1st post describes, so that's ok. Apache can be complex, and I can only just about get it to work locally but, as the saying goes, google is your friend.
 
Old 09-29-2006, 12:12 PM   #7
GunNam
LQ Newbie
 
Registered: Sep 2006
Location: Los Angeles
Distribution: Ubuntu 10.10
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by binary_y2k2
what the route and ifconfig command tells me there is that you have set-up the network the was your 1st post describes, so that's ok. Apache can be complex, and I can only just about get it to work locally but, as the saying goes, google is your friend.
Unfortunately, google is NOT my friend, neither is LINUX, UBUNTU, XUBUNTO OR NVIDIA. I've been up ALL NIGHT trying to load a FREAKIN NVIDIA DRIVER. WTF#@@%@#%E%$#@!%@

Sorry, I'll be back to normal once I get some sleep or kill someone or both... but for some reason, I don't want to sleep until I've accomplished just that... successfully loading 1 freakin driver. OMG#@%@
 
Old 09-29-2006, 12:31 PM   #8
got_nix
Member
 
Registered: Oct 2004
Location: Jamaica
Distribution: Ubuntu 6.0.6 (Dapper Drake)
Posts: 59

Rep: Reputation: 15
:s.. lamp is fairly simple to setup really. php mysql and apache get install the pcakges to get em talking to each other php-mysql i did a blog entry on it the other day i'll see if i can find it and link it or paste it here
 
Old 09-29-2006, 12:58 PM   #9
GunNam
LQ Newbie
 
Registered: Sep 2006
Location: Los Angeles
Distribution: Ubuntu 10.10
Posts: 17

Original Poster
Rep: Reputation: 0
I finally got the nvidia driver loaded! YES! Now on to what I was supposed to be doing... getting familiar with mysql & php by running my own webserver (local/intranet).

got nix: I think I have LAMP set up, I just haven't got around to messing around with it because I had a driver issue. I installed the "LAMP Server" off the server ISO disk. I need to get around to setting up the IP addresses so I can see it from my other box so I can upload some of my practice examples and see if they work. That blog will be very much appreciated if you can find it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: LAMP vs. LAMP LXer Syndicated Linux News 0 08-22-2006 11:33 PM
Lamp depam Linux - Software 3 08-09-2006 06:53 AM
Why should use LAMP ? LinuxLover Linux - General 8 03-29-2006 10:55 PM
Lamp mikage14 LinuxQuestions.org Member Success Stories 2 05-08-2004 03:20 AM
Little LAMP help ElementNine Linux - Software 4 01-19-2004 03:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 04:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration