• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 204
  • Last Modified:

host web page on local server

i want to know if it is possible to host a web page on my linux console for the local network.
if so, how then do i go about doing this.
thanx.
0
isaj1
Asked:
isaj1
  • 4
  • 2
1 Solution
 
Gabriel OrozcoSolution ArchitectCommented:
your linux distro (99% of them) came with apache web server. just read some about apache. it's very easy to setup it to work with simple sites...

normally, your home page is located in /var/www/htdocs/index.html

you can change it to be your homepage.
alse be sure apache is running: ps -efa | grep httpd
should tell you that http is alive.

if it is not up and running, then if in redhat:
service httpd start
checkconfig httpd 235 on (i don't remember this rule exactly)

if in slackware: chmod +x /etc/rc.d/rc.httpd
or.. edit the file /etc/rc.d/rc.local and add apachectl start to it.

to start apache in any distro:
apachectl start


Good luck
0
 
isaj1Author Commented:
i seem not to have apache on my system. i use SuSe linux 7.3
how do i get to install this program.
another thing, is web design done as the root or is for all users.
0
 
Gabriel OrozcoSolution ArchitectCommented:
SuSE Linux 7.3 comes with apache 1.3.20
the binary is httpd.

look for it using this command:
rpm -qa | grep apache

or search for the binary:
find / -name 'httpd' -print

if you found it, then it's installed. you can also search for the file httpd.conf, which hosts the configuration on the apache web server.

your SuSE Linux CD have it if it's not installed.

--
As for the web design, you can create a user with home directory inside the root directory of the  apache webpages, and then such user can edit and create the structure from there.

also each user can have it's own directory (normally public_http) which can be made accesable with http://yourserver/~username/

you must read the documentation for apache. is very well designed and it will save you from a lot of headcaches.

maybe the page to look at for apache in SuSE 7.3 is this:
http://www.suse.com/us/private/download/updates/73_i386.html

Regards
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
isaj1Author Commented:
i do not have apache installed on my workstation.
help me go through the installation process.
thanx.
0
 
Gabriel OrozcoSolution ArchitectCommented:
it's not complex.

just mount your linux cd
change to it's directory and then move to the packages subdirectory, or find the samba rpm
(to find it very easy: find /mnt/cdrom -name '*samba*' -print, supossing your cd mount directory is /mnt/cdrom)

and once you found it, then issue
rpm -ivh sampa-package-name.rpm

and you have samba installed now.
now go to the config files, as adviced before, and edit them
0
 
CleanupPingCommented:
isaj1:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
Gabriel OrozcoSolution ArchitectCommented:
why a "C" ?
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now