LinuxQuestions.org
Help answer threads with 0 replies.
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 01-20-2008, 08:35 PM   #1
Earnest Lux
LQ Newbie
 
Registered: Jan 2008
Location: Perth Western Australia
Distribution: Mandriva 2007
Posts: 10

Rep: Reputation: 0
Smile Apache _ NO IDEA NEWBIE_Help


I am totally new to Linux and never really understood config.sys in windows 3. It seems that Linux Mandrva 2007 (OS) is 10 million config.sys thingies to me.

1. Apache is loaded and running according to OS installer

2. OS won't let me edit httpd.conf, but it appears to be pre-configured

3. There are "test" index.html files in /var/www/html/index.html ..whatever that say "it works"

4.Hoto's and man's are a complete mystery to a "never have programmed" type like me. Does anyone print an "Apache for Dummies" book.(monosyllables only)

QUESTION??? How do I get Win XP machines and IE to access that "It Works" index.html in /var/www/html/...whatever on my Linux box on my internal network?

I'm missing some important information on the way that machines address each other on a network.

Apologies for my Fog of the Vauge.
 
Old 01-20-2008, 09:01 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,417

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
Please add your Linux version to your profile so we can give appropriate advice (aka distribution name and version).
If you know how to open an xterm ie get a command line open, please type these cmds in and show us the output:

uname -a

cat /etc/issue

Ps you may find these links useful:
http://www.tldp.org/LDP/abs/html/
http://linux.oneandoneis2.org/LNW.htm
http://wiki.linuxquestions.org/wiki/...ndows_software
http://rute.2038bug.com/index.html.gz

Last edited by chrism01; 01-20-2008 at 09:03 PM.
 
Old 01-20-2008, 09:26 PM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
You need to be root in order for you to be able to edit httpd.conf (the full path name is /etc/httpd/conf/httpd.conf). You can switch to root via the command line by entering the command "su -". An alternative would be to run a gui text editor as root whilst logged in as a normal user e.g. ALT-F2 -> kdesu kwrite. If you want other machines to access your web server, you have to run the Mandriva Control Center (labelled as "Configure Your computer" or if using the command line enter the command "drakconf"). Go to the Security Section -> Firewall and make sure http (or port 80) is in the list of allowed services/ports. After that you can use the ip address or host name of your machine to access the website.

Last edited by reddazz; 01-20-2008 at 09:27 PM.
 
Old 01-20-2008, 10:30 PM   #4
Earnest Lux
LQ Newbie
 
Registered: Jan 2008
Location: Perth Western Australia
Distribution: Mandriva 2007
Posts: 10

Original Poster
Rep: Reputation: 0
Talking Thankou

Thanks to Chrism01 and reddazz. Links look like the recepie, will do those things a bit later as machine installing Ubuntu at moment.
 
Old 01-20-2008, 11:03 PM   #5
Earnest Lux
LQ Newbie
 
Registered: Jan 2008
Location: Perth Western Australia
Distribution: Mandriva 2007
Posts: 10

Original Poster
Rep: Reputation: 0
Cool Results Of Commands

UNAME -A

Linux.penguin.mars 2.6.17-5mdv #1 SMP "TIME&DATE" I686 iNTEL P4 3.2gH
GNU/LINUX


cat /etc/issue

"no such file or directory"


Firewall is off (LAN to WAN has Astaro firewall)

KDE There are no options in firewall for http or port 80 (everything else)

drakconf at command line level appears to be giving a long stream of errors, but it fires up the conf GUI immediately.


Cool cat is similar to old DOS dir command ?
Feel like I'm making some progress now.
This will keep me occupied for a few days.
 
Old 01-20-2008, 11:11 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,417

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
Actually,

DOS dir => Linux ls
DOS type => Linux cat

See the rute manual link etc ....
Incidentally cd = cd, but path delimiters (aka slashes) are the opposite 'leaning' ie DOS is backslash ('\'), Linux uses fwd slash ('/')
 
Old 01-20-2008, 11:30 PM   #7
Earnest Lux
LQ Newbie
 
Registered: Jan 2008
Location: Perth Western Australia
Distribution: Mandriva 2007
Posts: 10

Original Poster
Rep: Reputation: 0
Thumbs up It Works

ifconfig gave me address of 10.10.10.198

put this in IE

IT WORKS

can't get any combination of Linux Penguin and Mars to produce a response from IE but not to worry.

That was the start I needed.
Many Thanks.
 
Old 01-21-2008, 01:22 AM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,417

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
You need to understand DNS, but in brief, there's file in Linux called /etc/hosts, which you need to be root user to edit (like MS Admin user).
Try

cat /etc/hosts

If you add the ip address and the machine name to the file on the client machine, then restart the network software or the whole machine, it should be able to find the webserver machine. eg

10.10.10.198 webservername

You'll need to be root to edit the httpd.conf file to add the website name.

Try this page for help: http://www.yolinux.com/TUTORIALS/Lin...iteConfig.html

Last edited by chrism01; 01-21-2008 at 01:25 AM.
 
  


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
Good idea/bad idea: interface colors introuble General 5 10-30-2006 02:33 PM
LXer: Freespire: Great Idea? Awful Idea? LXer Syndicated Linux News 1 05-04-2006 07:10 AM
Idea on how to improve apache security at www.linuxfanatics.org linuxfanatics Linux - Security 2 03-06-2005 05:45 PM
is it a better idea to migrate from the latest apache 1.3 to the latest apache 2.0? kublador Slackware 5 08-30-2004 05:06 PM
a crazy idea: apache dns ? antken General 7 07-21-2003 09:07 PM

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

All times are GMT -5. The time now is 08:18 AM.

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