|
|
|
|
![]() ![]() |
Jul 21 2008, 08:20 PM
Post
#1
|
|
|
Newbie [Level 3] ![]() ![]() ![]() Group: [HOSTED] Posts: 42 Joined: 19-July 08 Member No.: 65,236 |
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 |
|
|
|
Jul 21 2008, 09:42 PM
Post
#2
|
|
|
|||[ n00b King ]||| ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 688 Joined: 20-June 07 From: Auckland Member No.: 45,102 |
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?
|
|
|
|
Jul 21 2008, 09:56 PM
Post
#3
|
|
|
Advanced Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 113 Joined: 23-July 05 From: Europe Member No.: 9,774 |
Can you please copy the content of your httpd.conf file here?
|
|
|
|
Jul 22 2008, 01:36 PM
Post
#4
|
|
|
Member [Level 3] ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 97 Joined: 23-June 08 Member No.: 64,048 |
That is strange. Yeah post the httpd.conf. I'll take a look for you.
Sam. |
|
|
|
Jul 22 2008, 02:07 PM
Post
#5
|
|
|
Newbie [Level 3] ![]() ![]() ![]() Group: [HOSTED] Posts: 42 Joined: 19-July 08 Member No.: 65,236 |
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 This post has been edited by SaNJ: Jul 22 2008, 02:08 PM
Attached File(s)
|
|
|
|
Jul 22 2008, 02:55 PM
Post
#6
|
|
|
Member [Level 3] ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 95 Joined: 16-February 08 From: bombay Member No.: 57,972 |
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 This post has been edited by klusk: Jul 22 2008, 02:58 PM |
|
|
|
Jul 22 2008, 08:30 PM
Post
#7
|
|
|
Newbie [Level 3] ![]() ![]() ![]() Group: [HOSTED] Posts: 42 Joined: 19-July 08 Member No.: 65,236 |
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 |
|
|
|
Jul 22 2008, 08:47 PM
Post
#8
|
|
|
|||[ n00b King ]||| ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 688 Joined: 20-June 07 From: Auckland Member No.: 45,102 |
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? This post has been edited by sonesay: Jul 22 2008, 08:51 PM |
|
|
|
Jul 22 2008, 10:52 PM
Post
#9
|
|
|
Member [Level 1] ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 61 Joined: 1-June 08 Member No.: 62,997 |
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 |