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 12-15-2001, 02:11 AM   #1
starkvegas
 
Join Date: Dec 2001
Posts: 6
Invalid command 'php_value'

I have php version 4.06 running on apache.

I recently switched over to the cgi executable from the sapi version of php for windows. When I did, I started getting an Internal Server Error from Apache. I checked my apache error log and this is what I see.

[Fri Dec 14 23:54:24 2001] [alert] [client 127.0.0.1] c:/apache/htdocs/mysql_host/.htaccess: Invalid command 'php_value', perhaps mis-spelled or defined by a module not included in the server configuration


This is what is in my .htaccess file:

php_value include_path ".;c:apache/htdocs/mysql_host/"

It worked fine before I switched to the cgi version and php works with the cgi version when I remove the php_value from my .htaccess file.

My configuration is set to allowoverride all. The strange thing is that I didn't get this error when the sapi modules. I don't want to switch back because I noticed instability using the sapi modules.

Any idea as to what is causing this error.

Randall
starkvegas is offline   Reply With Quote
Old 12-15-2001, 05:25 AM   #2
mithril
Senior Member
 
Join Date: Feb 2001
Posts: 802
RE: Invalid command 'php_value'

Don't believe you can use the php_value, php_admin_value, php_flag, or php_admin_flad directives if you're runing as CGI. Those are Apache directives, but in CGI mode Apache calls the php binary, which turn reads php.ini. Since the binary doesn't read httpd.conf it has no effect on PHP. As PHP isn't loaded into Apache, Apache doesn't know what to do with the directives and borks. HTH.

-geoff
mithril 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 10:18 PM.






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.