Re: [PHP-DB] include_path in appache.conf

2010-04-05 Thread ad

Thanks Niel.

Niel Archer wrote:

Try asking on the general list. This is not Db related at all, so your
chances of getting answers here are pretty slim.

  
This may be an apache question but I'd like to find the php answer first 
if one exists.


I have several virtual hosts on a dedicated server. 
In a IFmodule mod_php5c container in an httpd.conf  include file I have 
the following to create a unique include path for each virtual host:


IfModule mod_php5.c>
  php_value include_path ".:/home/virtual/site#/path/to/include"
  php_admin_flag safe_mode off


For one of the virtual hosts I've set up a dev site in a subdomain at 
dev.site#.com for development.
In the root directory of this development site I have an .htacces file 
to create another unique include_path solely for this development subdomain.


php_value include_path  ".:/home/virtual/site#/path/to/dev/includes"

Also in the httpd.conf I have

Allow from all
AllowOverride All
Order allow,deny



The configuration is CentOS 5.3, Apache/2.2.3, PHP 5.1.6

I recently upgraded the OS from FC6 and the PHP version and I have not 
been able to get the include_path to change for this dev.subdomain.  
Even after restarting apache it PHPinfo tells me it is reading the 
server php.ini and the virtual host include path for the httpd.conf but 
it is ignoring the .htaccess file. 

I've even tried putting the php.ini with specific settings in the 
/home/virtual/site#/root directory to no avail.


Any ideas how to make this work or even a better set up?

Thanks in advance.





--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
Niel Archer
niel.archer (at) blueyonder.co.uk



  



--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] include_path in appache.conf

2010-04-05 Thread Niel Archer
Try asking on the general list. This is not Db related at all, so your
chances of getting answers here are pretty slim.

> This may be an apache question but I'd like to find the php answer first 
> if one exists.
> 
> I have several virtual hosts on a dedicated server. 
> In a IFmodule mod_php5c container in an httpd.conf  include file I have 
> the following to create a unique include path for each virtual host:
> 
> IfModule mod_php5.c>
>   php_value include_path ".:/home/virtual/site#/path/to/include"
>   php_admin_flag safe_mode off
> 
> 
> For one of the virtual hosts I've set up a dev site in a subdomain at 
> dev.site#.com for development.
> In the root directory of this development site I have an .htacces file 
> to create another unique include_path solely for this development subdomain.
> 
> php_value include_path  ".:/home/virtual/site#/path/to/dev/includes"
> 
> Also in the httpd.conf I have
> 
> Allow from all
> AllowOverride All
> Order allow,deny
> 
> 
> 
> The configuration is CentOS 5.3, Apache/2.2.3, PHP 5.1.6
> 
> I recently upgraded the OS from FC6 and the PHP version and I have not 
> been able to get the include_path to change for this dev.subdomain.  
> Even after restarting apache it PHPinfo tells me it is reading the 
> server php.ini and the virtual host include path for the httpd.conf but 
> it is ignoring the .htaccess file. 
> 
> I've even tried putting the php.ini with specific settings in the 
> /home/virtual/site#/root directory to no avail.
> 
> Any ideas how to make this work or even a better set up?
> 
> Thanks in advance.
> 
> 
> 
> 
> 
> -- 
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

--
Niel Archer
niel.archer (at) blueyonder.co.uk



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP-DB] include_path problem

2003-09-03 Thread Jacob A. van Zanen
I have not really followed this thread so if it is mentioned
already.

Is the include_path directive twice in the file?



-Original Message-
From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 03, 2003 3:42 PM
To: 'Bruce Levick'
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP-DB] include_path problem


On 03 September 2003 14:10, Bruce Levick contributed these pearls of
wisdom:

> There is an include_path for unix and an include_path for windows. 
> They both differ slightly but aren't of the same value that is being
> returned in the
> php info page or the error that I am receiving.
> 
> This is the info displayed for my php.ini file. My OS is on G:.
> 
> G:\WINDOWS\php.ini
> 
> This is the Include_path directory shown in the phpinfo page. 
> .;c:\php4\pear
> 
> Thanks very much for your help on this. Let me know if you need me to 
> post anything else that might help.

Well, I think I'm about out of ideas then -- so long as the ini file
you're editing is G:\WINDOWS\php.ini, this all looks spot on.

Just as a very last resort, can you post an extract from your
G:\WINDOWS\php.ini that shows the lines which set include_path, plus a
few lines either side -- just to check that there's nothing in their
context that might be mucking things up.

I suppose it might also be interesting to see the entire line from your
phpinfo that shows the include_path settings (i.e. both master and local
values).

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services, JG125, James
Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS,
LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP-DB] include_path problem

2003-09-03 Thread Ford, Mike [LSS]
On 03 September 2003 14:10, Bruce Levick contributed these pearls of wisdom:

> There is an include_path for unix and an include_path for
> windows. They both
> differ slightly but aren't of the same value that is being
> returned in the
> php info page or the error that I am receiving.
> 
> This is the info displayed for my php.ini file. My OS is on G:.
> 
> G:\WINDOWS\php.ini
> 
> This is the Include_path directory shown in the phpinfo page.
> .;c:\php4\pear 
> 
> Thanks very much for your help on this. Let me know if you
> need me to post
> anything else that might help.

Well, I think I'm about out of ideas then -- so long as the ini file you're editing is 
G:\WINDOWS\php.ini, this all looks spot on.

Just as a very last resort, can you post an extract from your G:\WINDOWS\php.ini that 
shows the lines which set include_path, plus a few lines either side -- just to check 
that there's nothing in their context that might be mucking things up.

I suppose it might also be interesting to see the entire line from your phpinfo that 
shows the include_path settings (i.e. both master and local values).

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP-DB] include_path problem

2003-09-03 Thread Bruce Levick
There is an include_path for unix and an include_path for windows. They both
differ slightly but aren't of the same value that is being returned in the
php info page or the error that I am receiving.

This is the info displayed for my php.ini file. My OS is on G:.

G:\WINDOWS\php.ini

This is the Include_path directory shown in the phpinfo page.
.;c:\php4\pear

Thanks very much for your help on this. Let me know if you need me to post
anything else that might help.

-Original Message-
From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 7:18 PM
To: 'Bruce Levick'
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP-DB] include_path problem


On 03 September 2003 01:32, Bruce Levick contributed these pearls of wisdom:

> Well yes I have restarted my webserver, and the php.ini file
> is under the
> "windows directory" (shown in phpinfo page) and I am
> definatelty editing it.
>
> The current value for my include_path is ".;c:\php\includes"
> which is different to whats showing up on the phpinfo page and
> also
> the error that is
> coming up.
>
> The wierd thing is I can change anything else in the php.ini
> file and it
> updates on the phpinfo page. Just not the include_path
> attributes. Its as if
> I am not changing the correct service as there is nothing in
> the php.ini
> file that relates to the directory ".;c:\php4\pear".

Couple more stabs in the dark, then:

- Check there is only one entry for include_path.
- Make sure it's not commented out! (No ; at the start of the line.)

Also, just to be absolutely sure, can you post exactly what your phpinfo
shows for the php.ini setting?

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP-DB] include_path problem

2003-09-03 Thread Ford, Mike [LSS]
On 03 September 2003 01:32, Bruce Levick contributed these pearls of wisdom:

> Well yes I have restarted my webserver, and the php.ini file
> is under the
> "windows directory" (shown in phpinfo page) and I am
> definatelty editing it.
> 
> The current value for my include_path is ".;c:\php\includes"
> which is different to whats showing up on the phpinfo page and
> also 
> the error that is
> coming up.
> 
> The wierd thing is I can change anything else in the php.ini
> file and it
> updates on the phpinfo page. Just not the include_path
> attributes. Its as if
> I am not changing the correct service as there is nothing in
> the php.ini
> file that relates to the directory ".;c:\php4\pear".

Couple more stabs in the dark, then:

- Check there is only one entry for include_path.
- Make sure it's not commented out! (No ; at the start of the line.)

Also, just to be absolutely sure, can you post exactly what your phpinfo shows for the 
php.ini setting?

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP-DB] include_path problem

2003-09-02 Thread Bruce Levick
Well yes I have restarted my webserver, and the php.ini file is under the
"windows directory" (shown in phpinfo page) and I am definatelty editing it.

The current value for my include_path is ".;c:\php\includes" which is
different to whats showing up on the phpinfo page and also the error that is
coming up.

The wierd thing is I can change anything else in the php.ini file and it
updates on the phpinfo page. Just not the include_path attributes. Its as if
I am not changing the correct service as there is nothing in the php.ini
file that relates to the directory ".;c:\php4\pear".

I am running xppro, IIS, php 4.3.2

Any other ideas??

Cheers Bruce


-Original Message-
From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 7:10 PM
To: 'Bruce Levick'; [EMAIL PROTECTED]
Subject: RE: [PHP-DB] include_path problem


On 02 September 2003 08:00, Bruce Levick wrote:

> Hi guys,
> I am re-developing the look and feel of a site and trying to set it up
> localy. Its all setup and ready to go but I am getting a
> pear.php include
> failure.
>
> Warning: main(/PEAR.php): failed to open stream: No such file
> or directory
> in G:\Inetpub\wwwroot\DB.php on line 25
>
> Fatal error: main(): Failed opening required '/PEAR.php'
> (include_path='.;c:\php4\pear') in G:\Inetpub\wwwroot\DB.php
> on line 25
>
>
> The include path "c:\php4\pear" is incorrect. This is showing up in my
> phpinfo file and I can't seem to get it to change in my
> php.ini file. There
> are include_path options in the php.ini file but nothing like
> the directory
> path in the error I am receiving.

OK; '.;c:\php4\pear' is the default value for include_path, so PHP is not
seeing your edited php.ini.  Let's try a couple of basic questions (forgive
me if these are obvious to you, but you haven't covered them in your
message):

1) Did you restart your Web server after editing php.ini?

2) Where does the phpinfo() output say your php.ini file should be (look at
the "Configuration File (php.ini) Path" entry right near the top)?  And is
your php.ini there?

If the answer to both of these is yes, and you're still having problems, get
back to the list with some more detail and maybe someone will have some
other bright ides.

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP-DB] include_path problem

2003-09-02 Thread Ford, Mike [LSS]
On 02 September 2003 08:00, Bruce Levick wrote:

> Hi guys,
> I am re-developing the look and feel of a site and trying to set it up
> localy. Its all setup and ready to go but I am getting a
> pear.php include
> failure.
> 
> Warning: main(/PEAR.php): failed to open stream: No such file
> or directory
> in G:\Inetpub\wwwroot\DB.php on line 25
> 
> Fatal error: main(): Failed opening required '/PEAR.php'
> (include_path='.;c:\php4\pear') in G:\Inetpub\wwwroot\DB.php
> on line 25
> 
> 
> The include path "c:\php4\pear" is incorrect. This is showing up in my
> phpinfo file and I can't seem to get it to change in my
> php.ini file. There
> are include_path options in the php.ini file but nothing like
> the directory
> path in the error I am receiving.

OK; '.;c:\php4\pear' is the default value for include_path, so PHP is not
seeing your edited php.ini.  Let's try a couple of basic questions (forgive
me if these are obvious to you, but you haven't covered them in your
message):

1) Did you restart your Web server after editing php.ini?

2) Where does the phpinfo() output say your php.ini file should be (look at
the "Configuration File (php.ini) Path" entry right near the top)?  And is
your php.ini there?

If the answer to both of these is yes, and you're still having problems, get
back to the list with some more detail and maybe someone will have some
other bright ides.

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] include_path

2001-09-17 Thread Andreas D. Landmark

At 17.09.2001 23:22, Bas Jobsen wrote:
>place connect.php in teh same dir as confirmregistration.php (/mall/)

or even simpler... create connect.php or change the require() to a include()

>- Original Message -
>From: "its me" <[EMAIL PROTECTED]>
>Subject: [PHP-DB] include_path
>
> > Fatal error: Failed opening required 'connect.php'
>(include_path='.:/usr/local/lib/php') in
>/home/sites/site92/web/mall/confirmregistration.php on line 3
> > and
> >
> > Fatal error: Failed opening required 'connect.php' (include_path='') in
>/home/sites/site92/web/mall/confirmregistration.php on line 3
> >
> >
> > and my script  is:
> >
> >  > session_start();
> > require("connect.php");
> > ?>
> >
> >
> >

-- 
Andreas D Landmark / noXtension
Real Time, adj.:
 Here and now, as opposed to fake time, which only occurs there
and then.


-- 
PHP Database 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-DB] include_path

2001-09-17 Thread Bas Jobsen

place connect.php in teh same dir as confirmregistration.php (/mall/)
- Original Message -
From: "its me" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 18, 2001 12:50 AM
Subject: [PHP-DB] include_path


> Fatal error: Failed opening required 'connect.php'
(include_path='.:/usr/local/lib/php') in
/home/sites/site92/web/mall/confirmregistration.php on line 3
>
>
> and
>
>
> Fatal error: Failed opening required 'connect.php' (include_path='') in
/home/sites/site92/web/mall/confirmregistration.php on line 3
>
>
> and my script  is:
>
>  session_start();
> require("connect.php");
> ?>
>
>
>
> so?
>
>
>
> 
> 
>
> --
> PHP Database 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 Database 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]