[x] Welcome to LinuxSolved.com Linux help forums, here we are a community of Linux users helping each other. It is helpful to both ie. new linux users as well experienced one. We always have our experts to help you and ofcourse members help each other, so you can ask for help any time by Registering.: Click to Register

Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Linux Forums - Linux Help,Advice & support community:LinuxSolved.com  |  Forum  |  Network Troublshooting  |  Linux Servers Support  |  Topic: Apache over LAN
The LinuxSolved.com GNU/Linux User Communit - Forum
Welcome to LinuxCommunity You have just arrived to a friendly linux community which is helping Linux Users from Years.. You can be its part if you have not already joined it. Registration is FREE and is gateway to unlimited help and support to all your linux related needs. If you are an GNU/Linux supporter then you have come to the right place.
Pages: [1]
  Print  
Author Topic: Apache over LAN  (Read 1125 times)
0 Members and 1 Guest are viewing this topic.
creator
Linux Noob !
*
Offline Offline

Posts: 7


View Profile
« on: April 24, 2004, 02:31:05 PM »

Hi guys!
i use an apache web server. I have a few pho scripts.
I want apache to service clients over a lan. how do i do it? I know prolly this is a FA, but this is really *imp* i got present my project over a LAN in college on monday ..please guys let me know!!
thanks n advance Smiley
Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2205


View Profile
« Reply #1 on: April 25, 2004, 02:52:36 AM »

you havn't told that what is your distribution.. mostly it is installed during installation..  if redhat then do
Code:
service httpd status
it it says it is not running then try to start it.. using
Code:
service httpd start
if it is in your system it will start.
It is not then consider  a rpm of apache that will make it easier to install.

If it is there and running then you can put your files ie. html, php in /var/www/html/  and open in your browser .. like..
http://localhost/filename.htm or on lan http://ip addredss/file.htm, currently it is confugered for only one account but you can make it to do several sites.. called virtual sites. do to so i suggest you to read some apache documantaion.. that will also help u to do more..
make sure you have also installed php support.. to run php
Logged
creator
Linux Noob !
*
Offline Offline

Posts: 7


View Profile
« Reply #2 on: April 25, 2004, 07:25:01 AM »

I am running PCQ Linux 2004 Smiley I have many php scripts running already..it works fine for loopback interface.. http://127.0.0.1/file.php works fine...I want to know if i need to make any changes..files have to access over a LAN?
Because I have to demonstrate this project of mine over a LAN ...how do i simulate it at home(on a single PC)? And what changes do I need to make when I want it to run over a LAN
I am running apache 2.0.4
Thanks in advance!
Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2205


View Profile
« Reply #3 on: April 25, 2004, 07:37:48 AM »

look your httpd.conf and find the following entries..
Code:
<VirtualHost *>

DocumentRoot /www/example1
ServerName www.example1.com

# Other directives here


</VirtualHost>
these are usually commented out , uncomment them and u have ur virtual website running. You also need to set your internal DNS to resolve that website to that ip. that is another story.. u have to add a zone. i suggest you to look a basic tutorial so that u can get clear idea how it works..
Logged
dragoncity99
LST CareTaker
Experienced
*****
Offline Offline

Posts: 494


View Profile
« Reply #4 on: April 29, 2004, 11:42:10 AM »

Hi friend,

    Do this steps and u should be okay and up going.


1. Open httpd.conf file in "/etc/httpd/conf" directory.
2. Look for a line like this:

         "Servername new.host.domain: 80"

    change it to Servername <ur server's ip address> : <port>
    i.e.====>   Servername 192.168.1.1:80

   If in front of it has a # symbol delete it.


3. Save and exit.

4. Type service httpd start

5. Bingo, u r done.  Open any web browser and type in ur webserver's ip address.

I assume u use Redhat 9.
Coz (service httpd start) only works in Red hat/Fedora
Logged
Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
   

 Logged
Pages: [1]
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Apache server how to help me Linux Servers Support segun1ng 1 1106 Last post February 20, 2004, 11:01:29 AM
by dragoncity99
Apache & PHP Linux Servers Support creator 3 1149 Last post May 05, 2005, 04:51:03 AM
by gauravbajaj
Apache Linux Servers Support dragoncity99 4 987 Last post February 23, 2004, 05:49:54 PM
by dragoncity99
apache + asp General Networking Support in Linux muthu 1 684 Last post September 17, 2005, 02:16:48 PM
by Ricky
sample configure apache DNS server Linux Servers Support sothy 0 376 Last post March 09, 2007, 02:55:39 AM
by sothy
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 21, 2008, 12:23:04 AM

Login with username, password and session length
Navigation
Recent Discussions
[November 20, 2008, 11:30:52 PM]

[November 19, 2008, 07:52:41 PM]

[November 19, 2008, 07:52:36 PM]

[November 17, 2008, 10:42:59 AM]

[November 16, 2008, 12:49:47 AM]

[November 16, 2008, 12:48:58 AM]

[November 15, 2008, 08:29:02 AM]

[November 15, 2008, 08:24:41 AM]

[November 14, 2008, 05:11:50 AM]

[November 13, 2008, 03:28:22 AM]
Members
Total Members: 6222
Latest: shule
Stats
Total Posts: 8269
Total Topics: 2253
Online Today: 13
Online Ever: 111
(June 28, 2007, 06:47:29 AM)
Users Online
Users: 0
Guests: 5
Total: 5
Privacy Policy| Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks
Theme & TinyPortal v0.9.8 © Bloc