?
Solved

host web page on local server

Posted on 2003-02-24
7
Medium Priority
?
200 Views
Last Modified: 2010-03-18
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
Comment
Question by:isaj1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 19

Expert Comment

by:Gabriel Orozco
ID: 8014821
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
 

Author Comment

by:isaj1
ID: 8026482
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
 
LVL 19

Expert Comment

by:Gabriel Orozco
ID: 8028096
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
Independent Software Vendors: 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!

 

Author Comment

by:isaj1
ID: 8031951
i do not have apache installed on my workstation.
help me go through the installation process.
thanx.
0
 
LVL 19

Accepted Solution

by:
Gabriel Orozco earned 100 total points
ID: 8034473
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
 

Expert Comment

by:CleanupPing
ID: 9077786
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
 
LVL 19

Expert Comment

by:Gabriel Orozco
ID: 9101509
why a "C" ?
0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question