This is a discussion on Newbie question - accessing PHP within the PHP Language forums, part of the PHP Programming Forums category; Greetings, I've just installed PHP 4 (current stable release) on our server with IIS4. PHP seems to work and ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Greetings,
I've just installed PHP 4 (current stable release) on our server with IIS4. PHP seems to work and typical testing script (<? PHPInfo(); ?>) works fine. But I am able to run it only if I am sitting at the server computer (I run http://localhost/test.php). How can I run it from computers attached to the server from our company network? I tried ------- http://<ip address>/test.php ------- but no luck. I think that access rights are correctly set. Please can you help me with it? TIA, Pavel |
|
|||
|
>
> > but no luck. I think that access rights are correctly set. > > What error are you getting? > Whats in the error log? > You don't have any silly firewalls installed? It is HTTP 404 - file not found. Some firewall is installed, but I am accessing within our company network, so I don't think it will block me to access that. I think that problem is simply with wrong address. Like on the local machine you can't type "C:\www\test.php" but "http://localhost/test.php". There must be something like "http://foreign_machine/test.php". I guess..... Pavel |
|
|||
|
Pavel Vetesnik <Pavel.Vet@volny.cz> wrote:
>> >> > but no luck. I think that access rights are correctly set. >> >> What error are you getting? >> Whats in the error log? >> You don't have any silly firewalls installed? > > It is HTTP 404 - file not found. > Some firewall is installed, but I am accessing within our company network, > so I don't think it will block me to access that. > I think that problem is simply with wrong address. Like on the local > machine you can't type "C:\www\test.php" but "http://localhost/test.php". > There must be something like "http://foreign_machine/test.php". I > guess..... Hi Pavel, Most likely your IIS is not configured to listen on the machine's IP address but only on localhost (127.0.0.1). Don't know exactly how to do it but as far as I can remember you have entries for websites somewhere in your IIS Manager, e.g. "Default Web Site", which probably points to localhost. Either change that or create another entry for the machine's IP. HTH; JOn |
|
|||
|
> >> > but no luck. I think that access rights are correctly set.
> >> > >> What error are you getting? > >> Whats in the error log? > >> You don't have any silly firewalls installed? > > > > It is HTTP 404 - file not found. > > Some firewall is installed, but I am accessing within our company network, > > so I don't think it will block me to access that. > > I think that problem is simply with wrong address. Like on the local > > machine you can't type "C:\www\test.php" but "http://localhost/test.php". > > There must be something like "http://foreign_machine/test.php". I > > guess..... > > Hi Pavel, > > Most likely your IIS is not configured to listen on the machine's IP address > but only on localhost (127.0.0.1). Don't know exactly how to do it but as > far as I can remember you have entries for websites somewhere in your IIS > Manager, e.g. "Default Web Site", which probably points to localhost. > Either change that or create another entry for the machine's IP. > > HTH; > JOn OK, thanks for the tip - I'll check it out. Don't you know, how is access from the workstation then? http://<ip_of _the_server>/test.php ? Pavel |
|
|||
|
Pavel Vetesnik <Pavel.Vet@volny.cz> wrote:
>> > It is HTTP 404 - file not found. >> > Some firewall is installed, but I am accessing within our company > network, >> > so I don't think it will block me to access that. >> > I think that problem is simply with wrong address. Like on the local >> > machine you can't type "C:\www\test.php" but > "http://localhost/test.php". >> > There must be something like "http://foreign_machine/test.php". I >> > guess..... >> >> Most likely your IIS is not configured to listen on the machine's IP > address >> but only on localhost (127.0.0.1). Don't know exactly how to do it but as >> far as I can remember you have entries for websites somewhere in your IIS >> Manager, e.g. "Default Web Site", which probably points to localhost. >> Either change that or create another entry for the machine's IP. > > OK, thanks for the tip - I'll check it out. > Don't you know, how is access from the workstation then? http://<ip_of > _the_server>/test.php ? On the local machine it should work both. JOn |