LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 09-14-2004, 02:24 AM   #1
Abbaddon
Member
 
Registered: Aug 2004
Location: Guam
Distribution: Ubuntu, Gentoo
Posts: 45

Rep: Reputation: 15
A few newb questions


I'm running Slack 10.0

I'm interested in running a web/ftp server.

What would I need to do in order for htis to work?

It's a full install.
 
Old 09-14-2004, 02:33 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL
Distribution: Funtoo
Posts: 6,926

Rep: Reputation: 128Reputation: 128
If you ask like that you aren't ready to run a server.
 
Old 09-14-2004, 02:34 AM   #3
realjustin
Member
 
Registered: Aug 2004
Location: /dev/null
Distribution: Slack 10, Debian
Posts: 99

Rep: Reputation: 15
In order to run a web server you must make sure Apache is running. Open up a terminal, or hit CTRL-ALT-F1 (CTRL-ALT-F7 will take you back into X Windows), and do

ls -l /etc/rc.d/rc.httpd

That will show the permissions of the executable that will serve your web page. If it shows something like

-rw-r--r-- 1 root ....

Then Apache is not running. To fix this, change into root user (su) and do

chmod a+x /etc/rc.d/rc.httpd

Then when you do ls -l /etc/rc.d/rc.httpd you will get something like

-rwxr-xr-x 1 root ....

For you the next step will be simply to restart your computer. If you don't want to restart you can do

/etc/rc.d/rc.httpd restart

And that will start Apache. I don't know if you've worked with apache before, but on Slack 10 the web pages are placed in /var/www/htdocs. To make sure it's working type into the address bar of a browser the IP of the machine you have installed Slack onto. It will show an Apache web page if you are sucessful. From here, you can throw anything you want into /var/www/htdocs and serve them. Getting your page onto the net somehow is another story, but there are a few cool ways, like checking out www.dyndns.org, or creating some scripts to constantly update any free web service you have an account with your server's IP. Then those free services (www.t35.com for one) will actually direct to your home server, and you won't have the stupid bandwidth caps or storage limits. If you get far into this, I can give you a set of scripts to do this for you.
 
Old 09-14-2004, 02:38 AM   #4
sether
Member
 
Registered: Aug 2004
Posts: 695

Rep: Reputation: 31
yeah, like chinaman said, maybe you're not ready to setup a server. but if you want to look into it, check out this tutorial for web servers: http://www.linuxplanet.com/linuxplanet/tutorials/212/1/ and this one for ftp: http://www.siliconvalleyccie.com/lin...ftp-server.htm
 
Old 09-14-2004, 02:43 AM   #5
Abbaddon
Member
 
Registered: Aug 2004
Location: Guam
Distribution: Ubuntu, Gentoo
Posts: 45

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by realjustin
In order to run a web server you must make sure Apache is running. Open up a terminal, or hit CTRL-ALT-F1 (CTRL-ALT-F7 will take you back into X Windows), and do

ls -l /etc/rc.d/rc.httpd

That will show the permissions of the executable that will serve your web page. If it shows something like

-rw-r--r-- 1 root ....

Then Apache is not running. To fix this, change into root user (su) and do

chmod a+x /etc/rc.d/rc.httpd

Then when you do ls -l /etc/rc.d/rc.httpd you will get something like

-rwxr-xr-x 1 root ....

For you the next step will be simply to restart your computer. If you don't want to restart you can do

/etc/rc.d/rc.httpd restart

And that will start Apache. I don't know if you've worked with apache before, but on Slack 10 the web pages are placed in /var/www/htdocs. To make sure it's working type into the address bar of a browser the IP of the machine you have installed Slack onto. It will show an Apache web page if you are sucessful. From here, you can throw anything you want into /var/www/htdocs and serve them. Getting your page onto the net somehow is another story, but there are a few cool ways, like checking out www.dyndns.org, or creating some scripts to constantly update any free web service you have an account with your server's IP. Then those free services (www.t35.com for one) will actually direct to your home server, and you won't have the stupid bandwidth caps or storage limits. If you get far into this, I can give you a set of scripts to do this for you.

Thanks, that worked. I'm quite familiar with dyndns. Apache is running. However how would I set something up for perhaps shell users using hte public_html with an addy like mydomain.com/~shelluser?
 
Old 09-14-2004, 03:10 AM   #6
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Usually that's set up with the default install of the WWW server. If not, check out the UserDir configuration option and add the appropriate setting to your httpd.conf. Something like:

UserDir public_html

and it you'll want to add a new set of directory rules for public_html directories, i.e.:

<Directory /h*/*/public_html>
// stuff
</Directory>

consult the Apache documentation for more details. If you're going to run a public WWW server, please take time to understand how to secure it so it can't be easily broken in to. Of late, Apache seems pretty safe out of the box (at least I find myself not tweaking much past the initial install), but it's good to know the concepts and such. The Apache Web site has good info. See also sites like securityfocus.com.
 
Old 09-14-2004, 06:26 AM   #7
bobbens
Member
 
Registered: Sep 2004
Location: Barcelona
Distribution: Debian, FreeBSD, Gentoo
Posts: 586

Rep: Reputation: 30
if you know spanish check out this very detailed guide: http://libertonia.escomposlinux.org/.../14/3425/90951 .
 
  


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
Newb Questions Parradux Linux - Newbie 7 02-27-2005 03:12 PM
newb questions SlipAway172 Solaris / OpenSolaris 4 01-14-2005 03:06 AM
Newb Questions Sybarite Fedora 5 07-28-2004 09:45 PM
Just some newb questions testament Linux - Newbie 15 07-04-2004 12:52 PM
stupid newb questions xanxui Linux - Newbie 6 08-22-2003 02:26 PM


All times are GMT -5. The time now is 07:51 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