LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-25-2006, 04:51 PM   #1
cweepy
Member
 
Registered: Mar 2006
Location: Il, USA
Distribution: SUSE, Slackware
Posts: 42

Rep: Reputation: 15
SUSE 10.0 for hosting a website internally (LAN)....


Hello, so I installed SUSE 10.0 and went to set up the "HTTP Server" thinking it was the same as a web server, which now I'm not even sure is what it's actually called!

My problem is I'm trying to start an e-business and I want to build the website myself (using PHP nuke), then pay someone to host it. For developmental purposes I wish to create a website server within my LAN so I can see how it's working on my Windows machine (save me the Windows bashes thx!). Well when I attempted to use the HTTP feature in YaST2 with SUSE it apparently reprogrammed my router (may have been coincedental ISP problems) and brought down all 4 computers. This took me a good chunk of time to fix. Now I'm afraid to try it again. Is HTTP = Web Server = Website Server? If not, what should I do and what is it actually called?


Thanks.
 
Old 05-25-2006, 05:10 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
http servers are web servers yes, you'll have installed apache, the worlds most used http server ever - so you're in good hands! there is no way at all that installing and starting apache could interfere with a router, just not possible. essentially once apache is installed and it's httpd service is started goint to http://yourwebserver will show you a default apache page, which you can then move forward to configure as you see fit. you will benefit from reading up a little. http://apache.org
 
Old 05-25-2006, 06:42 PM   #3
cweepy
Member
 
Registered: Mar 2006
Location: Il, USA
Distribution: SUSE, Slackware
Posts: 42

Original Poster
Rep: Reputation: 15
Thanks, I just started it up again error-free. I think my problem was that I had assigned it the default gateway IP or comcast had coincidentally hiccupped at the same time I was making my first attempt.

Now, does anyone know of a HOWTO for setting up the server permissions part after activating APACHE and PHP? Right now I get an "Access Forbidden!" message.
 
Old 05-25-2006, 07:04 PM   #4
carl0ski
Member
 
Registered: Sep 2004
Location: Melbourne, Victoria Australia
Distribution: Support those that support you :)
Posts: 872
Blog Entries: 12

Rep: Reputation: 30
Quote:
Originally Posted by cweepy
Hello, so I installed SUSE 10.0 and went to set up the "HTTP Server" thinking it was the same as a web server, which now I'm not even sure is what it's actually called!

My problem is I'm trying to start an e-business and I want to build the website myself (using PHP nuke), then pay someone to host it. For developmental purposes I wish to create a website server within my LAN so I can see how it's working on my Windows machine (save me the Windows bashes thx!). Well when I attempted to use the HTTP feature in YaST2 with SUSE it apparently reprogrammed my router (may have been coincedental ISP problems) and brought down all 4 computers. This took me a good chunk of time to fix. Now I'm afraid to try it again. Is HTTP = Web Server = Website Server? If not, what should I do and what is it actually called?


Thanks.
1st yast setup a static IP for your site (i used x.x.x.2 here)

In Yast2 two the HTTP Server wizard does everything
installs Apache and you select the network card (you only need one)

Next Next.
open the above IP address in your windows machine
a page declaring It Works should appear

your website is here by default
/srv/www/htdocs/index.html

paste all your website there and your all done
 
Old 05-25-2006, 08:38 PM   #5
cweepy
Member
 
Registered: Mar 2006
Location: Il, USA
Distribution: SUSE, Slackware
Posts: 42

Original Poster
Rep: Reputation: 15
So I've got the website to work, but to avoid unintended changes to the actual server, I'd like to set the permissions for user "cweep" to allow changes to the /srv/ directory including all subdirectories. What now? Also I'd like to thank those of you that have helped me up to this point.
 
Old 05-25-2006, 09:03 PM   #6
lotusjps46
Member
 
Registered: Apr 2003
Location: Dallas
Distribution: Vector Linux, Suse 10.1
Posts: 186

Rep: Reputation: 30
This might work; Open a shell and become root (type "su" and your root password).

Type "konqueror &" without the quotes. A file manager window should open. BE very CAREful. You are root in that file manager and you can bork anything.

Maneuver to "/" at the top of the file tree. Right-click on /srv, and select Properties. Click the tab for Permissions. Check the box for "Apply Changes to All Subfolders and Their Contents". Set whatever permissions you want for Owner, Group, and Others. Hit OK, and you are there.

Let us know how it goes. Do you want to set it up so that you can see the site anywhere on the web?

Good luck.

C
 
Old 05-25-2006, 09:03 PM   #7
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
Congrats on getting the website up.

Your last post made no sense to me. You don't want to mess up the local server, so you want to give yourself (cweep) permission to write in places cweep shouldn't be able to?

It could be done easily. You should type "man chown" into the terminal, and read up on how to change the owner of files. I'll give you 90% of the command, and you'll have to read to find out the missing 10 -
Code:
chown cweep:cweep (missing tag(s) here) /srv/
There will probably be a huge problem with doing this. Apache has a user associated with it. It defaults to www-data on most systems. If Apache runs as www-data, and you change the ownership of the files it is supposed to server to cweep, Apache most likely will fail.

You could change the user Apache runs as, but that can/will cause problems down the road when you try to install something else to integrate with Apache, and it expects to work with the www-data user, and instead finds things run/owned by cweep.

The best solution is to leave Apache as is, and not to change the ownership of the webpages to your account. It makes no difference who owns it really, if you can change it, you can mess it up, so it doesn't matter if you make the mistake as root, or make it as cweep if cweep owns the files.

If you still have deep concerns about things, try this: create 2 sites on the machine (test.site.com and good.site.com), or siteA.com and siteB.com if subdomains aren't your thing. Only work on one of the sites, and leave the other as a saftey valve. If you hose something on the test site, just delete all of it, and copy over the good data from the other site. Try again to get what you wanted to happen.

Write back with any questions/problems.

Peace,
JimBass
 
Old 05-25-2006, 10:46 PM   #8
cweepy
Member
 
Registered: Mar 2006
Location: Il, USA
Distribution: SUSE, Slackware
Posts: 42

Original Poster
Rep: Reputation: 15
Well I would rather limit the margin for error to the /srv/ directory while I'm using PHP Nuke to make my website. So what I'd like to do is allow user "cweep" to edit that website, which is contained in /srv/. I tried using the GUI but I can't seem to find the area that provides the option to change those permissions. Currently user "cweep" is only a part of the "users" group. I know how to create users and groups, but allowing them permission to the certain directories is the problem. I'm not attempting to change APACHE, but instead to get the PHPNuke files into the directory and change them using the GUI without switching to root.

Maybe that will help to clarify?
 
Old 05-25-2006, 11:07 PM   #9
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
That doesn't change what I said earlier though. To work in the live site directory, you should be root. Allowing cweep to own and control those files is not any safer than forcing yourself to be root. Besides, changing the owner to cweep will mess with apache. You can change the owner with the command I gave you, just by adding one tag, but again, don't do it.

Read "man chown" without quotes from a terminal, and you'll be set. Become root, copy the files to where they need to be, change the owners on them to whoever the owner should be, and you're set.

Peace,
JimBass
 
Old 05-26-2006, 08:57 PM   #10
cweepy
Member
 
Registered: Mar 2006
Location: Il, USA
Distribution: SUSE, Slackware
Posts: 42

Original Poster
Rep: Reputation: 15
Alright, thanks guys. All I have left to do is install MySQL...haha! That should be an adventure. Is installing it really as hard as it looks? Is there other DB management software out there that might work better?

SUSE has an application that installs packages automatically, is this compatible w/ MySQL or similiar software?


P.S. I decided to go with the advice given to me and work on the site as root, no permissions were changed.

Last edited by cweepy; 05-26-2006 at 09:08 PM.
 
Old 05-26-2006, 09:11 PM   #11
Zonko
LQ Newbie
 
Registered: Apr 2004
Location: Ireland
Distribution: Slackware 10.2
Posts: 9

Rep: Reputation: 0
There's a good chance SUSE already has MySQL out of the box - although to be honest, I don't know. You'll find getting it up and running is fairly straight forward though, even if you have a little trouble getting your head around it to begin with.
 
Old 05-26-2006, 09:17 PM   #12
cweepy
Member
 
Registered: Mar 2006
Location: Il, USA
Distribution: SUSE, Slackware
Posts: 42

Original Poster
Rep: Reputation: 15
I'm not sure if you meant "out of the box" literally or not, but I downloaded this (the EVAL version) so I'm fairly certain it might not have come with it. Any good step-by-step HOWTO's you know of?
 
Old 05-26-2006, 09:27 PM   #13
Zonko
LQ Newbie
 
Registered: Apr 2004
Location: Ireland
Distribution: Slackware 10.2
Posts: 9

Rep: Reputation: 0
At the moment, I'm going through lots of HOWTOs on www.tldp.org for my own purposes, you may want to check it out yourself, it's got enough to keep me occupied for a few weekends.
 
Old 05-27-2006, 03:05 AM   #14
cweepy
Member
 
Registered: Mar 2006
Location: Il, USA
Distribution: SUSE, Slackware
Posts: 42

Original Poster
Rep: Reputation: 15
Didn't find any MySQL HOWTO's there, but I did find one at www.reallylinux.com/docs/basicmysql.shtml. This HOWTO is for 5.0. Thanks for all the help guys!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
hosting a website jitheshmurali Linux - Networking 2 04-24-2006 02:50 PM
website hosting from home - Help!!!! hifriend1 Linux - Networking 13 02-22-2006 09:17 AM
hosting my own website metallica1973 Linux - Networking 4 10-16-2005 03:49 PM
website hosting jkmartha Linux - Newbie 1 05-06-2005 05:01 AM
multiple website hosting matneyc Linux - Newbie 4 12-20-2004 04:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:18 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration