RE: [PHP] newbie has include path error new problem

2001-07-04 Thread Daniel Goldin \(E-mail\)

Mike,

I do believe you are right. Here are my apache logs for today, after I
attempted to  connect to localhost:

[Wed Jul  4 09:43:33 2001] [crit] (98)Address already in use: make_sock:
could not bind to port 80
[Wed Jul  4 09:43:37 2001] [crit] (98)Address already in use: make_sock:
could not bind to port 80
[Wed Jul  4 09:44:05 2001] [crit] (98)Address already in use: make_sock:
could not bind to port 80

Thanks again for taking the time to help me chase down this problem.

daniel

-Original Message-
From: mike cullerton [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 03, 2001 9:55 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] newbie has include path error  new problem


hey daniel,

   i think we're chasing a red herring here, and i'm not sure i remember the
original problem... ;)

   so, you can't load http://localhost or http://127.0.0.1

correct?

what do your apache error logs say? i'm beginning to think your networking
is fine.

mike

on 7/3/01 12:17 PM, Daniel Goldin at [EMAIL PROTECTED] wrote:

 Here what I get:

 Kernel IP routing table
 Destination Gateway Genmask Flags Metric RefUse
 Iface
 199.34.58.0 *   255.255.255.0   U 0  00
eth0
 127.0.0.0   *   255.0.0.0   U 0  00 lo
 default 199.34.58.7 0.0.0.0 UG0  00
eth0


 If thids doesn't work I will hit the manuals a secomnd time, although I
 admit my first time browsing through the extensive documentation on
ethernet
 devices and network administration had made me a bit flummoxed.

 Anyway, thank you so much for your time. You and others on this list have
 been fantastic dealing what has turned into an off-topic problem.

 Best to all,

 daniel


 -- mike cullerton



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] newbie has include path error new problem

2001-07-03 Thread Daniel Goldin

Here what I get:

Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse
Iface
199.34.58.0 *   255.255.255.0   U 0  00 eth0
127.0.0.0   *   255.0.0.0   U 0  00 lo
default 199.34.58.7 0.0.0.0 UG0  00 eth0


If thids doesn't work I will hit the manuals a secomnd time, although I
admit my first time browsing through the extensive documentation on ethernet
devices and network administration had made me a bit flummoxed.

Anyway, thank you so much for your time. You and others on this list have
been fantastic dealing what has turned into an off-topic problem.

Best to all,

daniel

-Original Message-
From: mike cullerton [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02, 2001 11:22 PM
To: 'PHP List'
Subject: Re: [PHP] newbie has include path error  new problem


cool,

   you should be able to get the route table with either 'route' or 'netstat
-r' on a redhat box. they both return the same thing on my slackware box.

[use@box user]$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse
Iface
localnet*   255.255.255.0   U 0  00 eth0
loopback*   255.0.0.0   U 0  00 lo
default gw.mydomain 0.0.0.0 UG1  00 eth0

see how loopback points to the 'lo' interface? does yours?

like scott mentioned, you should read the man pages on route and ifconfig.
you can find good help at http://www.linuxdoc.org/

mike

on 7/2/01 9:53 PM, Daniel Goldin (E-mail) at [EMAIL PROTECTED] wrote:

 I'm on a redhat 7.1 box on a pentium 3 pc. I set up networking via netcfg.
 Here are the settings (names have been modified):

 Names

 Hostname localhost.localdomain


 Hosts

 IP   Name  Nickname
 -
 127.0.0.1   localhost.localdomain   localhost
 199.33.57.1 windowshost
 198.77.110.8internet.com ghc000


 Interface

 interface   IP Proto
 --
 lo   127.0.0.1None
 eth0 199.33.57.3  None


 Routing

 Default Gateway   199.33.57.7
 default gateway deviceeth0


 Again, I appreciate your help.

 best,

 daniel

 -Original Message-
 From: mike cullerton [mailto:[EMAIL PROTECTED]]
 Sent: Monday, July 02, 2001 3:06 PM
 To: 'PHP List'
 Subject: Re: [PHP] newbie has include path error  new problem


 on 7/2/01 3:59 PM, Daniel Goldin (E-mail) at [EMAIL PROTECTED] wrote:

 Yes, I could load a page from localhost until I set up networking.

 No, I cannot load a page from 127.0.0.1. Tried that.

 Embarrassed to ask. What is a routing table and how do I find it?

 no need to be embarrased for not knowing what a routing table is, most
 people wouldn't. a routing table is used by a networked computer to
 determine how to reach remote hosts. it tells the machine what interface
to
 use for a particular host and physical layer address to send to.

 what kind of a machine are you on?

 what steps (specifically) did you take to 'set up networking'?

 -- mike cullerton



 -- mike cullerton



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] newbie has include path error new problem

2001-07-02 Thread Peter Houchin - SunRentals Australia

if the windows machine is the host machine ie for your internet http://localhost/ 
will only be for the windows machine so if you are tring to get to that address from 
your linux machine you won't be able to ... however if your machines ip was say 
123.123.123.123(windows machine) then from your linux machine go 
http://123.123.123.123/ and you should be able to see the pages

-Original Message-
From: mike cullerton [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02, 2001 3:29 PM
To: php-general
Subject: Re: [PHP] newbie has include path error  new problem


i'm guessing your problems are unrelated.

for your network problem, it seems that you didn't really achieve
'networking linux box to windows host' correctly. can you currently ping
localhost? what does your route table look like?

as for the php problem. it's definitely a problem with your path. in your
error message
 Warning: Failed opening '/etc/httpd/php/prepend.php' for
 inclusion (include_path=) in unknown in line 0.
php thinks your include_path is ''. that means you have no include path, not
even '.'

mine is something like
.:/var/www/php:/var/www/docs/include:/usr/local/lib/php

this is defined in php.ini

what's really interesting, is that you call prepend.php with an absolute
path. you shouldn't even need the include path.

i'd look in php.ini. where do you actually store prepend.php?

mike

on 7/1/01 11:00 PM, Daniel Goldin (E-mail) at [EMAIL PROTECTED] wrote:

 Thanks for your help. The server document root is: /etc/httpd/htdocs.
 Perhaps I need to point to this document in root in php.ini file?
 
 Anyway, I cannot try that now as I have finally achieved networking linux
 box to windows host that acts as our internet server. Now when I try to
 connect to: http://localhost I get this error
 
 425 HTTP ERROR
 
 Unable to connect to remote host
 
 I tried stopping the network, but that only caused Netscape to choke. Hmm.
 (help?)
 
 Best,
 
 Daniel
 
 -Original Message-
 From: Justin French [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, June 30, 2001 12:36 AM
 To: [EMAIL PROTECTED]
 Cc: php
 Subject: Re: [PHP] newbie has include path error
 
 
 Hi,
 
 If you can surf local host for standard HTML pages and other php pages
 (without includes in them) eg:
 
 http://localhost/file.html
 
 Then the problem isn't the server really, it seems to me that the server
 document root for your files should be something like:
 
 /usr/local/apache/ not /etc/httpd/php/prepend.php
 
 Can you ftp into your server?  What's the path to your document root for
 all your html / php files?  I doubt it's /etc/httpd/php/file.html, if it
 isn't this, then the problem is somewhere in your php cnfig to indicate
 where the document root is.
 
 Eh, it's kidna hard to explain...  maybe someone else can explain it
 better :)
 
 
 Justin French
 Creative Director
 Indent.com.au
 
 
 
 Daniel Goldin wrote:
 
 I had php/apache/mysql working perfectly for awhile on my redaht 7.1 box.
 Compiled them all from source and was very proud, as I am at best an
 amateur
 programmer. In other words, I love this stuff, but it doen't come
 naturally.
 
 Recently I've been fiddling with networking (to little avail), installed a
 new ethernet card and did some other stuff... Anyway, now when I go into
 http://localhost (apache is running), I get this error:
 
 Warning: Failed opening '/etc/httpd/php/prepend.php' for
 inclusion (include_path=) in unknown in line 0.
 
 I've tried putting in this include path in my php.ini file to no effect.
 Please help. I have several projects I'm working on that require php and I
 have no way of working on them on my development box.
 
 Any help gratefully appreciated. Also, I apologize for being too chatty.
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


 -- mike cullerton



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] newbie has include path error new problem

2001-07-02 Thread Daniel Goldin \(E-mail\)

Appreciate your help. Yes I can ping localhost. I do believe I can solve the
php problem once I solve the networking problem as I've discovered that the
prepend path was set incorrectly.

Best,

Daniel

-Original Message-
From: mike cullerton [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 01, 2001 10:29 PM
To: php-general
Subject: Re: [PHP] newbie has include path error  new problem


i'm guessing your problems are unrelated.

for your network problem, it seems that you didn't really achieve
'networking linux box to windows host' correctly. can you currently ping
localhost? what does your route table look like?

as for the php problem. it's definitely a problem with your path. in your
error message
 Warning: Failed opening '/etc/httpd/php/prepend.php' for
 inclusion (include_path=) in unknown in line 0.
php thinks your include_path is ''. that means you have no include path, not
even '.'

mine is something like
.:/var/www/php:/var/www/docs/include:/usr/local/lib/php

this is defined in php.ini

what's really interesting, is that you call prepend.php with an absolute
path. you shouldn't even need the include path.

i'd look in php.ini. where do you actually store prepend.php?

mike

on 7/1/01 11:00 PM, Daniel Goldin (E-mail) at [EMAIL PROTECTED] wrote:

 Thanks for your help. The server document root is: /etc/httpd/htdocs.
 Perhaps I need to point to this document in root in php.ini file?

 Anyway, I cannot try that now as I have finally achieved networking linux
 box to windows host that acts as our internet server. Now when I try to
 connect to: http://localhost I get this error

 425 HTTP ERROR

 Unable to connect to remote host

 I tried stopping the network, but that only caused Netscape to choke. Hmm.
 (help?)

 Best,

 Daniel

 -Original Message-
 From: Justin French [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, June 30, 2001 12:36 AM
 To: [EMAIL PROTECTED]
 Cc: php
 Subject: Re: [PHP] newbie has include path error


 Hi,

 If you can surf local host for standard HTML pages and other php pages
 (without includes in them) eg:

 http://localhost/file.html

 Then the problem isn't the server really, it seems to me that the server
 document root for your files should be something like:

 /usr/local/apache/ not /etc/httpd/php/prepend.php

 Can you ftp into your server?  What's the path to your document root for
 all your html / php files?  I doubt it's /etc/httpd/php/file.html, if it
 isn't this, then the problem is somewhere in your php cnfig to indicate
 where the document root is.

 Eh, it's kidna hard to explain...  maybe someone else can explain it
 better :)


 Justin French
 Creative Director
 Indent.com.au



 Daniel Goldin wrote:

 I had php/apache/mysql working perfectly for awhile on my redaht 7.1 box.
 Compiled them all from source and was very proud, as I am at best an
 amateur
 programmer. In other words, I love this stuff, but it doen't come
 naturally.

 Recently I've been fiddling with networking (to little avail), installed
a
 new ethernet card and did some other stuff... Anyway, now when I go into
 http://localhost (apache is running), I get this error:

 Warning: Failed opening '/etc/httpd/php/prepend.php' for
 inclusion (include_path=) in unknown in line 0.

 I've tried putting in this include path in my php.ini file to no effect.
 Please help. I have several projects I'm working on that require php and
I
 have no way of working on them on my development box.

 Any help gratefully appreciated. Also, I apologize for being too chatty.

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



 -- mike cullerton



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] newbie has include path error new problem

2001-07-02 Thread Daniel Goldin \(E-mail\)

Hmm. I tried http://123.123.123.123/ (using windows machine) and I got a
request for authorization. When I filled in my Linux username and pass, it
returned an authorization failed message. Any advice.

Best,

daniel



-Original Message-
From: Peter Houchin - SunRentals Australia [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 01, 2001 11:37 PM
To: php-general
Subject: RE: [PHP] newbie has include path error  new problem


if the windows machine is the host machine ie for your internet
http://localhost/ will only be for the windows machine so if you are tring
to get to that address from your linux machine you won't be able to ...
however if your machines ip was say 123.123.123.123(windows machine) then
from your linux machine go http://123.123.123.123/ and you should be able to
see the pages

-Original Message-
From: mike cullerton [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02, 2001 3:29 PM
To: php-general
Subject: Re: [PHP] newbie has include path error  new problem


i'm guessing your problems are unrelated.

for your network problem, it seems that you didn't really achieve
'networking linux box to windows host' correctly. can you currently ping
localhost? what does your route table look like?

as for the php problem. it's definitely a problem with your path. in your
error message
 Warning: Failed opening '/etc/httpd/php/prepend.php' for
 inclusion (include_path=) in unknown in line 0.
php thinks your include_path is ''. that means you have no include path, not
even '.'

mine is something like
.:/var/www/php:/var/www/docs/include:/usr/local/lib/php

this is defined in php.ini

what's really interesting, is that you call prepend.php with an absolute
path. you shouldn't even need the include path.

i'd look in php.ini. where do you actually store prepend.php?

mike

on 7/1/01 11:00 PM, Daniel Goldin (E-mail) at [EMAIL PROTECTED] wrote:

 Thanks for your help. The server document root is: /etc/httpd/htdocs.
 Perhaps I need to point to this document in root in php.ini file?

 Anyway, I cannot try that now as I have finally achieved networking linux
 box to windows host that acts as our internet server. Now when I try to
 connect to: http://localhost I get this error

 425 HTTP ERROR

 Unable to connect to remote host

 I tried stopping the network, but that only caused Netscape to choke. Hmm.
 (help?)

 Best,

 Daniel

 -Original Message-
 From: Justin French [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, June 30, 2001 12:36 AM
 To: [EMAIL PROTECTED]
 Cc: php
 Subject: Re: [PHP] newbie has include path error


 Hi,

 If you can surf local host for standard HTML pages and other php pages
 (without includes in them) eg:

 http://localhost/file.html

 Then the problem isn't the server really, it seems to me that the server
 document root for your files should be something like:

 /usr/local/apache/ not /etc/httpd/php/prepend.php

 Can you ftp into your server?  What's the path to your document root for
 all your html / php files?  I doubt it's /etc/httpd/php/file.html, if it
 isn't this, then the problem is somewhere in your php cnfig to indicate
 where the document root is.

 Eh, it's kidna hard to explain...  maybe someone else can explain it
 better :)


 Justin French
 Creative Director
 Indent.com.au



 Daniel Goldin wrote:

 I had php/apache/mysql working perfectly for awhile on my redaht 7.1 box.
 Compiled them all from source and was very proud, as I am at best an
 amateur
 programmer. In other words, I love this stuff, but it doen't come
 naturally.

 Recently I've been fiddling with networking (to little avail), installed
a
 new ethernet card and did some other stuff... Anyway, now when I go into
 http://localhost (apache is running), I get this error:

 Warning: Failed opening '/etc/httpd/php/prepend.php' for
 inclusion (include_path=) in unknown in line 0.

 I've tried putting in this include path in my php.ini file to no effect.
 Please help. I have several projects I'm working on that require php and
I
 have no way of working on them on my development box.

 Any help gratefully appreciated. Also, I apologize for being too chatty.

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



 -- mike cullerton



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] newbie has include path error new problem

2001-07-02 Thread mike cullerton

so, let me see if i understand the situation. you could load a webpage from
localhost. then you set up networking to access the internet thru a windows
machine acting as a gateway. now you can't load a page from localhost?
correct?

is localhost still your machine? can you load a page from http://127.0.0.1

again, what does your routing table look like?

on 7/2/01 3:29 PM, Daniel Goldin (E-mail) at [EMAIL PROTECTED] wrote:

 Appreciate your help. Yes I can ping localhost. I do believe I can solve the
 php problem once I solve the networking problem as I've discovered that the
 prepend path was set incorrectly.
 
 
 for your network problem, it seems that you didn't really achieve
 'networking linux box to windows host' correctly. can you currently ping
 localhost? what does your route table look like?


 -- mike cullerton



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] newbie has include path error new problem

2001-07-02 Thread Daniel Goldin \(E-mail\)

Yes, I could load a page from localhost until I set up networking.

No, I cannot load a page from 127.0.0.1. Tried that.

Embarrassed to ask. What is a routing table and how do I find it?

Best,

Daniel

-Original Message-
From: mike cullerton [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02, 2001 2:37 PM
To: [EMAIL PROTECTED]
Cc: 'PHP List'
Subject: Re: [PHP] newbie has include path error  new problem


so, let me see if i understand the situation. you could load a webpage from
localhost. then you set up networking to access the internet thru a windows
machine acting as a gateway. now you can't load a page from localhost?
correct?

is localhost still your machine? can you load a page from http://127.0.0.1

again, what does your routing table look like?

on 7/2/01 3:29 PM, Daniel Goldin (E-mail) at [EMAIL PROTECTED] wrote:

 Appreciate your help. Yes I can ping localhost. I do believe I can solve
the
 php problem once I solve the networking problem as I've discovered that
the
 prepend path was set incorrectly.


 for your network problem, it seems that you didn't really achieve
 'networking linux box to windows host' correctly. can you currently ping
 localhost? what does your route table look like?


 -- mike cullerton



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] newbie has include path error new problem

2001-07-02 Thread scott [gts]

you will probably need to use two programs to 
properly configure your linux box for networking

you have to configure a default gateway to tell the
linux networking stuff how to get out to the internet.

read the man pages on 'route' and 'ifconfig', the
binaries should be here: 
  /sbin/route
  /sbin/ifconfig

 -Original Message-
 From: Daniel Goldin [mailto:[EMAIL PROTECTED]]On Behalf Of Daniel
 Goldin (E-mail)
 Sent: Monday, July 02, 2001 6:00 PM
 To: 'mike cullerton'
 Cc: 'PHP List'
 Subject: RE: [PHP] newbie has include path error  new problem
 
 
 Yes, I could load a page from localhost until I set up networking.
 
 No, I cannot load a page from 127.0.0.1. Tried that.
 
 Embarrassed to ask. What is a routing table and how do I find it?
 
 Best,
 
 Daniel
 
 -Original Message-
 From: mike cullerton [mailto:[EMAIL PROTECTED]]
 Sent: Monday, July 02, 2001 2:37 PM
 To: [EMAIL PROTECTED]
 Cc: 'PHP List'
 Subject: Re: [PHP] newbie has include path error  new problem
 
 
 so, let me see if i understand the situation. you could load a webpage from
 localhost. then you set up networking to access the internet thru a windows
 machine acting as a gateway. now you can't load a page from localhost?
 correct?
 
 is localhost still your machine? can you load a page from http://127.0.0.1
 
 again, what does your routing table look like?
 
 on 7/2/01 3:29 PM, Daniel Goldin (E-mail) at [EMAIL PROTECTED] wrote:
 
  Appreciate your help. Yes I can ping localhost. I do believe I can solve
 the
  php problem once I solve the networking problem as I've discovered that
 the
  prepend path was set incorrectly.
 
 
  for your network problem, it seems that you didn't really achieve
  'networking linux box to windows host' correctly. can you currently ping
  localhost? what does your route table look like?
 
 
  -- mike cullerton
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] newbie has include path error new problem

2001-07-02 Thread mike cullerton

on 7/2/01 3:59 PM, Daniel Goldin (E-mail) at [EMAIL PROTECTED] wrote:

 Yes, I could load a page from localhost until I set up networking.
 
 No, I cannot load a page from 127.0.0.1. Tried that.
 
 Embarrassed to ask. What is a routing table and how do I find it?

no need to be embarrased for not knowing what a routing table is, most
people wouldn't. a routing table is used by a networked computer to
determine how to reach remote hosts. it tells the machine what interface to
use for a particular host and physical layer address to send to.

what kind of a machine are you on?

what steps (specifically) did you take to 'set up networking'?

 -- mike cullerton



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] newbie has include path error new problem

2001-07-02 Thread Daniel Goldin \(E-mail\)

I'm on a redhat 7.1 box on a pentium 3 pc. I set up networking via netcfg.
Here are the settings (names have been modified):

Names

Hostname localhost.localdomain


Hosts

IP   Name  Nickname
-
127.0.0.1   localhost.localdomain   localhost
199.33.57.1 windowshost
198.77.110.8internet.com ghc000


 Interface

interface   IP Proto
--
lo   127.0.0.1None
eth0 199.33.57.3  None


  Routing

Default Gateway   199.33.57.7
default gateway deviceeth0


Again, I appreciate your help.

best,

daniel

-Original Message-
From: mike cullerton [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02, 2001 3:06 PM
To: 'PHP List'
Subject: Re: [PHP] newbie has include path error  new problem


on 7/2/01 3:59 PM, Daniel Goldin (E-mail) at [EMAIL PROTECTED] wrote:

 Yes, I could load a page from localhost until I set up networking.

 No, I cannot load a page from 127.0.0.1. Tried that.

 Embarrassed to ask. What is a routing table and how do I find it?

no need to be embarrased for not knowing what a routing table is, most
people wouldn't. a routing table is used by a networked computer to
determine how to reach remote hosts. it tells the machine what interface to
use for a particular host and physical layer address to send to.

what kind of a machine are you on?

what steps (specifically) did you take to 'set up networking'?

 -- mike cullerton



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] newbie has include path error new problem

2001-07-02 Thread mike cullerton

cool,

   you should be able to get the route table with either 'route' or 'netstat
-r' on a redhat box. they both return the same thing on my slackware box.

[use@box user]$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse
Iface
localnet*   255.255.255.0   U 0  00 eth0
loopback*   255.0.0.0   U 0  00 lo
default gw.mydomain 0.0.0.0 UG1  00 eth0

see how loopback points to the 'lo' interface? does yours?

like scott mentioned, you should read the man pages on route and ifconfig.
you can find good help at http://www.linuxdoc.org/

mike

on 7/2/01 9:53 PM, Daniel Goldin (E-mail) at [EMAIL PROTECTED] wrote:

 I'm on a redhat 7.1 box on a pentium 3 pc. I set up networking via netcfg.
 Here are the settings (names have been modified):
 
 Names
 
 Hostname localhost.localdomain
 
 
 Hosts
 
 IP   Name  Nickname
 -
 127.0.0.1   localhost.localdomain   localhost
 199.33.57.1 windowshost
 198.77.110.8internet.com ghc000
 
 
 Interface
 
 interface   IP Proto
 --
 lo   127.0.0.1None
 eth0 199.33.57.3  None
 
 
 Routing
 
 Default Gateway   199.33.57.7
 default gateway deviceeth0
 
 
 Again, I appreciate your help.
 
 best,
 
 daniel
 
 -Original Message-
 From: mike cullerton [mailto:[EMAIL PROTECTED]]
 Sent: Monday, July 02, 2001 3:06 PM
 To: 'PHP List'
 Subject: Re: [PHP] newbie has include path error  new problem
 
 
 on 7/2/01 3:59 PM, Daniel Goldin (E-mail) at [EMAIL PROTECTED] wrote:
 
 Yes, I could load a page from localhost until I set up networking.
 
 No, I cannot load a page from 127.0.0.1. Tried that.
 
 Embarrassed to ask. What is a routing table and how do I find it?
 
 no need to be embarrased for not knowing what a routing table is, most
 people wouldn't. a routing table is used by a networked computer to
 determine how to reach remote hosts. it tells the machine what interface to
 use for a particular host and physical layer address to send to.
 
 what kind of a machine are you on?
 
 what steps (specifically) did you take to 'set up networking'?
 
 -- mike cullerton
 


 -- mike cullerton



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] newbie has include path error new problem

2001-07-01 Thread Daniel Goldin \(E-mail\)

Thanks for your help. The server document root is: /etc/httpd/htdocs.
Perhaps I need to point to this document in root in php.ini file?

Anyway, I cannot try that now as I have finally achieved networking linux
box to windows host that acts as our internet server. Now when I try to
connect to: http://localhost I get this error

425 HTTP ERROR

Unable to connect to remote host

I tried stopping the network, but that only caused Netscape to choke. Hmm.
(help?)

Best,

Daniel

-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 30, 2001 12:36 AM
To: [EMAIL PROTECTED]
Cc: php
Subject: Re: [PHP] newbie has include path error


Hi,

If you can surf local host for standard HTML pages and other php pages
(without includes in them) eg:

http://localhost/file.html

Then the problem isn't the server really, it seems to me that the server
document root for your files should be something like:

/usr/local/apache/ not /etc/httpd/php/prepend.php

Can you ftp into your server?  What's the path to your document root for
all your html / php files?  I doubt it's /etc/httpd/php/file.html, if it
isn't this, then the problem is somewhere in your php cnfig to indicate
where the document root is.

Eh, it's kidna hard to explain...  maybe someone else can explain it
better :)


Justin French
Creative Director
Indent.com.au



Daniel Goldin wrote:

 I had php/apache/mysql working perfectly for awhile on my redaht 7.1 box.
 Compiled them all from source and was very proud, as I am at best an
amateur
 programmer. In other words, I love this stuff, but it doen't come
naturally.

 Recently I've been fiddling with networking (to little avail), installed a
 new ethernet card and did some other stuff... Anyway, now when I go into
 http://localhost (apache is running), I get this error:

 Warning: Failed opening '/etc/httpd/php/prepend.php' for
 inclusion (include_path=) in unknown in line 0.

 I've tried putting in this include path in my php.ini file to no effect.
 Please help. I have several projects I'm working on that require php and I
 have no way of working on them on my development box.

 Any help gratefully appreciated. Also, I apologize for being too chatty.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] newbie has include path error new problem

2001-07-01 Thread mike cullerton

i'm guessing your problems are unrelated.

for your network problem, it seems that you didn't really achieve
'networking linux box to windows host' correctly. can you currently ping
localhost? what does your route table look like?

as for the php problem. it's definitely a problem with your path. in your
error message
 Warning: Failed opening '/etc/httpd/php/prepend.php' for
 inclusion (include_path=) in unknown in line 0.
php thinks your include_path is ''. that means you have no include path, not
even '.'

mine is something like
.:/var/www/php:/var/www/docs/include:/usr/local/lib/php

this is defined in php.ini

what's really interesting, is that you call prepend.php with an absolute
path. you shouldn't even need the include path.

i'd look in php.ini. where do you actually store prepend.php?

mike

on 7/1/01 11:00 PM, Daniel Goldin (E-mail) at [EMAIL PROTECTED] wrote:

 Thanks for your help. The server document root is: /etc/httpd/htdocs.
 Perhaps I need to point to this document in root in php.ini file?
 
 Anyway, I cannot try that now as I have finally achieved networking linux
 box to windows host that acts as our internet server. Now when I try to
 connect to: http://localhost I get this error
 
 425 HTTP ERROR
 
 Unable to connect to remote host
 
 I tried stopping the network, but that only caused Netscape to choke. Hmm.
 (help?)
 
 Best,
 
 Daniel
 
 -Original Message-
 From: Justin French [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, June 30, 2001 12:36 AM
 To: [EMAIL PROTECTED]
 Cc: php
 Subject: Re: [PHP] newbie has include path error
 
 
 Hi,
 
 If you can surf local host for standard HTML pages and other php pages
 (without includes in them) eg:
 
 http://localhost/file.html
 
 Then the problem isn't the server really, it seems to me that the server
 document root for your files should be something like:
 
 /usr/local/apache/ not /etc/httpd/php/prepend.php
 
 Can you ftp into your server?  What's the path to your document root for
 all your html / php files?  I doubt it's /etc/httpd/php/file.html, if it
 isn't this, then the problem is somewhere in your php cnfig to indicate
 where the document root is.
 
 Eh, it's kidna hard to explain...  maybe someone else can explain it
 better :)
 
 
 Justin French
 Creative Director
 Indent.com.au
 
 
 
 Daniel Goldin wrote:
 
 I had php/apache/mysql working perfectly for awhile on my redaht 7.1 box.
 Compiled them all from source and was very proud, as I am at best an
 amateur
 programmer. In other words, I love this stuff, but it doen't come
 naturally.
 
 Recently I've been fiddling with networking (to little avail), installed a
 new ethernet card and did some other stuff... Anyway, now when I go into
 http://localhost (apache is running), I get this error:
 
 Warning: Failed opening '/etc/httpd/php/prepend.php' for
 inclusion (include_path=) in unknown in line 0.
 
 I've tried putting in this include path in my php.ini file to no effect.
 Please help. I have several projects I'm working on that require php and I
 have no way of working on them on my development box.
 
 Any help gratefully appreciated. Also, I apologize for being too chatty.
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


 -- mike cullerton



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]