Newbie question - accessing PHP

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-16-2003
Pavel Vetesnik
 
Posts: n/a
Default Newbie question - accessing PHP

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


Reply With Quote
  #2 (permalink)  
Old 10-16-2003
Ian P. Christian
 
Posts: n/a
Default Re: Newbie question - accessing PHP

Pavel Vetesnik 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?

Kind REgards,

Ian P. Christian

Reply With Quote
  #3 (permalink)  
Old 10-16-2003
Pavel Vetesnik
 
Posts: n/a
Default Re: Newbie question - accessing PHP

>
> > 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


Reply With Quote
  #4 (permalink)  
Old 10-16-2003
Jon Kraft
 
Posts: n/a
Default Re: Newbie question - accessing PHP

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
Reply With Quote
  #5 (permalink)  
Old 10-17-2003
Pavel Vetesnik
 
Posts: n/a
Default Re: Newbie question - accessing PHP

> >> > 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


Reply With Quote
  #6 (permalink)  
Old 10-17-2003
Jon Kraft
 
Posts: n/a
Default Re: Newbie question - accessing PHP

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:37 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0