A Web Server On Lan

free web hosting
Open Discussion > CONTRIBUTE > The Internet > Website Discussion

A Web Server On Lan

SaNJ
Hey friends ..

I m new to the forum and would like to ask for help. I have just started writing script for web pages.
I can make fairly good pages using HTML, PHP and for the backend database I use MySQL. I live in a
college hostel and my computer is connected to a LAN having about 300 computers.

What I want is to make my web pages available to the LAN users...when I try to do so a message appears..
u don't have permission to view <filename> on this server.

I m doing this just for curiosity and fun.

I think this would be quit simple.....I don't know much about networking...

So what are the things do I need to configure...

what I have is ...Apache 2.2.8
PHP 5.2.6
MySQL 5.0.51b
Windows XP SP2

Reply

sonesay
Can you post the full URL your typing in and from what machine are you trying to view it? Locally or from a remote computer?

Reply

bsdpowa
Can you please copy the content of your httpd.conf file here?

Reply

samlockart
That is strange. Yeah post the httpd.conf. I'll take a look for you.

Sam.

Reply

SaNJ
Thanks sonesay, bsdpowa, samlockart......for writing

Computers on the LAN are same like mine ....with SP2
What I write on others computers on LAN in the URL is something like this.....//190.168.0.33/filename.php
190.168.0.33 is my IP adress on LAN

and what get in return is a HTTP 403 forbidden error....

You don't have permission to access /index.php on this server.

I have seen some intranet...using this technique

Here is the httpd.conf



Reply

klusk
Just type the IP address http://<your IP> in your web browser.......that will be enough to display the Apache server
index page or the Index page you have used
i think you have not configured the httpd.conf file properly...because there should not be any permission error on LAN...
Check your windows firewall... because i think that is the only thing stopping anyone from accessing your computer...
if you are using a router to connect to the LAN which has a built in firewall then you need to configure it...if you are using switches or hubs then just the OS firewall is between you and the LAN users

Reply

SaNJ
Thanks klusk ....I have already tried ...what u said ...but the result was same

My windows firewall is off....and I have configured my bitdefender firewall to allow lan requests..
I have even tried with both the firewall disabled...still the same..

I think the problem is with the httpd.conf....

should I change the port no. to which the server listens...

I have uploaded the httpd.conf file in the above post ....can u help me out with it

Reply

sonesay
It doesn't look like a firewall problem to me because you are getting the 403 error which is return by the web server so it looks more like a permission error. Can you view the site locally with any problems? was there any changes you made to the config file? Any other changes you may have made that may affect it? Check the permissions on the files/folders as well of your www root. I cant think of anything else that could be affecting it.

QUOTE
<Directory "c:/wamp/www/">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride all

#
# Controls who can get stuff from this server.
#

# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from 190.168.0.1

</Directory>


I don't know much about the http.cofig and configuring blocks but that last few lines does it do anything?

 

 

 


Reply

seba1killer
Hi, if you are using windows and apache, first set your files to read for all users, then make the executable as the script need to execute on the server.
Then comment the last lines of the config file, the ones that say "no remove".
CODE
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride all

#
# Controls who can get stuff from this server.
#

# onlineoffline tag - don't remove
#Order Deny,Allow                            
#Deny from all
#Allow from 127.0.0.1
#Allow from 190.168.0.1

</Directory>

With that you are letting the other computers in the lan to access the files in the web server.
After doing the things i mentioned the computers in the lan should be able to connect.
Good luck.!!

Regards, Seba

Reply

iGuest
your firewall suggestion
A Web Server On Lan

Replying to klusk
Your firewall suggestion is great. That helped me solve my own little problem. Just by making a home network by the wizard is not sufficient, you have to down the firewall or make an exception. Thanks for the same

-reply by Amsang

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. create web hosting http server on lan - 6.77 hr back. (1)
  2. 403 forbidden when accessing wamp on another computer - 9.19 hr back. (1)
  3. network timeout when try access apache from outside lan - 10.65 hr back. (1)
  4. how to make server on lan - 21.65 hr back. (1)
  5. run wamp in lan - 25.99 hr back. (1)
  6. how to install web server on lan - 27.77 hr back. (1)
  7. apache server lan - 43.62 hr back. (1)
  8. access apache on lan - 44.77 hr back. (1)
  9. how to host html pages in lan - 45.32 hr back. (1)
  10. view wampserver from lan - 45.74 hr back. (1)
  11. how to host html pages in lan locally - 46.75 hr back. (1)
  12. 190.168.0.1 - 49.79 hr back. (1)
  13. how to use database server on lan in php - 50.60 hr back. (1)
  14. how to run wamp server on lan - 50.80 hr back. (1)
Similar Topics

Keywords : web, server, lan

  1. What Is A Dedicated Server?
    How to build a dedicated server (6)
  2. How Do I Impliment Ssl On Any Server That Supports It?
    More importantly, how do i explain how to do it to someone else? (5)
    Hi all I need to know how to impliment SSL on any supporting webserver but NOT a trap17 one. Im
    doing some coding for someone but i need to take credit card details so i should use SSL but i know
    they wont be hosted here they will find their own host so i need to know how to set up SSL on ANY
    webserver. I will make sure they get a server that supports SSL which will obviously help
    /wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> The problem is
    that i might not be personally setting up the webserver so i need to be able to explain this ....
  3. I Need Help To Use Htaccess To Allow Only My Server To See A Directory
    (4)
    Hi everyone Ive finally got a bit of an opportunity to do some php coding for an organisation which
    shouldnt be too hard. But i want to have some php files which will be used as includes in another
    php script but for added protection i dont want these php files to be visible by the public. I know
    i can use htaccess to easilly hide these files but what im worried about is will the head script be
    able to see the includes it needs if the htaccess file is hiding the entire directory? Obviously
    its no good if not even the local server can see its own scripts and i havent us....
  4. About Dns Settings And Private Domain Name Server.
    (2)
    Hello. I have bought a domain from Pknic.net.pk (official nic of pakistan).And am hosting this
    domain on godaddy.com... godaddy assigned dns like ns3.secureserver.net , ns4.secureserver.net...
    but is it possible to create the dns for my domain like , ns1.mydomain.pk and ns2.mydomain.pk etc.
    Who can make these dns ? the pknic, the company from where i register ? or the godaddy where im
    hosting? Regards Sami....
  5. Get My Pc Files Accessed Anywhere
    Getting my PC as a server (4)
    Does anyone know how i can get my PC so that i can look at my files anywhere. I have a PSP and i can
    listen to my music anywhere in the house using a RSS channel. I want it so i can do it anywhere with
    internet access. I know i have to get it as a web server, but how. I don't know how to unlock
    port 80 (thats the right port right?) Is it the ISP i have? Is it the DSL modem i have? Any help
    would be great thanks.....
  6. Help With Speed
    need to speed up for server (4)
    Hi everyone, For my site i host a server that is used to broadcast videos to my users. But the
    server is on a heavy load. It will host over 400 videos and will be constantly accessed by many
    people at once. The server is also used to give each user 25 MB of space to be uploaded,
    downloaded, changed and what ever. I am currently on 1.5 MBPS DSL. I would rather not hqave to
    spend more money on DSL and am wondering if there is any programs that will speed the server up by
    at least 10%. Or if there is a way that i can compress the videos so that they are accessed with l....
  7. Hosting Your Own Server
    i need help (4)
    OK hosting off apache is okay but i dont want to do it anymore. I was wondering if anyone knew a
    FREE operating system that would allow me to host a web site threw a DSL line from my 100 GB
    External Hard drive. Also if anyone knows how i know to host off of the Microsoft Windows Server
    2003 operating system. I already own a licence for this system and it is currently running on my
    home computer (i am on my laptop right now). If you know a operating system that i can use please
    post it with some instructions on how to get it and use it if you know them. And if you ha....
  8. Frontpage Server Extentions Errors
    any one else had these? (0)
    Hi all, im haveing some trouble with the frontpage extentions on trap17 or on my computer. Does
    anyone know how to fix them because its becoming a pain to not be able to publish correctly!
    Everytime i attempt to publish i get this error message: "The server sent a response which
    FrontPage could not parse. If you are trying to connect to a Windows SharePoint Services server,
    check with the server's administrator to make sure Windows SharePoint Services is installed
    properly." I already have the port unblocked in my firewall and in my router. But anyways i w....
  9. Gmail: 502 Server Error
    GMail: 502 Server Error (22)
    Hey The topic name says it all. Well I have been trying for the last half an hour to log into my
    GMail account, but it kept on occuring a Server 502 error. Just wondering if it is just me
    or....yeah. QUOTE Server Error The server encountered a temporary error and could not complete
    your request. Please try again in 30 seconds. Yep I have tried every minute..for the last half
    an hour...(The Time now is 12.13pm Australian Eastern Standard Time) ....

    1. Looking for web, server, lan

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for web, server, lan

*MORE FROM TRAP17.COM*
advertisement



A Web Server On Lan



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE