UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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.
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.
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#@%@
: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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.