jana Posted October 7, 2006 Share Posted October 7, 2006 i am new to php. i hav installed wamp and created a simple script tst.php as<?php echo "hello world";?>on machine (10.0.0.1) and worked fine on this machine when i tried the same script on 10.0.0.2 as (http://10.0.0.2/tst.php) an error apperas as "[color=red][size=10pt]ForbiddenYou don't have permission to access /tst.php on this server.Apache/2.0.59 (Win32) PHP/5.1.6 Server at 10.0.0.1 Port 80[/size][/color]"can anyone tell me how to solve this? Quote Link to comment https://forums.phpfreaks.com/topic/23255-need-help/ Share on other sites More sharing options...
tleisher Posted October 7, 2006 Share Posted October 7, 2006 Make sure your CHMOD settings are set to at least 666. Quote Link to comment https://forums.phpfreaks.com/topic/23255-need-help/#findComment-105505 Share on other sites More sharing options...
jana Posted October 9, 2006 Author Share Posted October 9, 2006 where i can find the chmod settings? Quote Link to comment https://forums.phpfreaks.com/topic/23255-need-help/#findComment-106062 Share on other sites More sharing options...
tomfmason Posted October 9, 2006 Share Posted October 9, 2006 Windows has no CHMOD to set. Do you have two machines or ?? because each one of those ip's that you posted would be a different machine. Unless you have set up another virtual ip for that particular directory.Good Luck,Tom Quote Link to comment https://forums.phpfreaks.com/topic/23255-need-help/#findComment-106064 Share on other sites More sharing options...
jana Posted October 9, 2006 Author Share Posted October 9, 2006 yes, i do hav more than 10 machines interconnected via LAN. Quote Link to comment https://forums.phpfreaks.com/topic/23255-need-help/#findComment-106169 Share on other sites More sharing options...
tomfmason Posted October 9, 2006 Share Posted October 9, 2006 Ok then. You will, most likely need to change your vhost configuration in the http.conf. Instead of having something like this.[code]<VirtualHost *:80>ServerName localhostDocumentRoot "C:\wamp\www"</VirtualHost>[/code]change * to the ip on the local network of the server. also make sure that you do not have it set to listen like this.[code]LISTEN localhost:80[/code]rather [code]Listen 80[/code]That should fix the problem.Hope that helps,Tom Quote Link to comment https://forums.phpfreaks.com/topic/23255-need-help/#findComment-106177 Share on other sites More sharing options...
tomfmason Posted October 9, 2006 Share Posted October 9, 2006 If you have the newest version of wamp then disregard my previous post had make the following changes to the http.conf.[code]ServerName localhost:80[/code]localhost should be changed with the ip address of the serverand in:[code]<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.0/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</Directory>[/code]change Allow from 127.0.0.1 to Allow from AllGood Luck,Tom Quote Link to comment https://forums.phpfreaks.com/topic/23255-need-help/#findComment-106178 Share on other sites More sharing options...
jana Posted October 9, 2006 Author Share Posted October 9, 2006 Thanx alot. its working fine Quote Link to comment https://forums.phpfreaks.com/topic/23255-need-help/#findComment-106196 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.