To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > Misc Help > Windows Help

Windows Help Help with the Windows operating system

Reply
 
Thread Tools Rate Thread Display Modes
Old 08-10-2000, 09:08 PM   #1
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
include_path in PHP4 for Apache virtual host

I am trying to enter in the include_path value within the Apache virtual directory. With PHP3 you could simply add:

php3_include_path /home/myaccount/html


And that would work. However, with PHP4 this and php_include_path do not work.

The manual is a bit vague on the topic.

Is there another way to set these values on a virtual host by virtual host basis? I would prefer not to use .htaccess, but any advice there would also be helpful.
Anon is offline   Reply With Quote
Old 09-20-2000, 12:07 AM   #2
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: include_path in PHP4 for Apache virtual host

Hi,

I was also having a trouble setting up some php variables through .htaccess file. But, I got it working finally. :)

php_value include_path ".:/path/to/php_lib:/another_path/to/php_lib2"

hope it helps.

--Kana
Anon is offline   Reply With Quote
Old 09-20-2000, 11:41 AM   #3
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: include_path in PHP4 for Apache virtual host

I have 5 virtualhost definitions: web1.domain.com-web5.domain.com. How can I set the include_path to something that is dependent upon the virtualhost. For example, for web1 I want the include_path to be ".:/web1/bin", and so on...

Anon is offline   Reply With Quote
Old 09-21-2000, 02:38 PM   #4
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: include_path in PHP4 for Apache virtual host

(Assuming you are using apache, and .htaccess is enabled)
I would add .htaccess file under the DocumentRoot directory of each virtual_hosts where php files and html files live.
In each .htaccess, you can specify the value of include_path differently.
Anon is offline   Reply With Quote
Old 09-21-2000, 03:01 PM   #5
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: include_path in PHP4 for Apache virtual host

In the httpd.conf file where I define the VirtualHost entries, I just added something like this:


NameVirtualHost 10.1.1.1
<VirtualHost 10.1.1.1>
blah...blah
php_admin_value include_path ".:/usr/www/my.domain.com/bin:/usr/local/apache/php"
</VirtualHost>
Anon is offline   Reply With Quote
Old 09-21-2000, 09:21 PM   #6
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: include_path in PHP4 for Apache virtual host

I'm not sure what variable should be used for "php_admin_value". But when I specified "include_path" in .htaccess file,
I used "php_value" rather than "php_admin_value". Anyway, other that, your specification in your httpd.conf looks good to me.
Anon is offline   Reply With Quote
Old 09-21-2000, 10:46 PM   #7
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: include_path in PHP4 for Apache virtual host

I just checked the php manual of how to configure.
And, defining php values in httpd.conf does require to use "php_admin_include". So, your specification should be fine. :)
Anon is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 07:44 AM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.