Server Administration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesServer Administration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old August 14th, 2004, 11:14 AM
k_hbl k_hbl is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 6 k_hbl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
auto_prepend_file 500 error

Hello,

Some time back I have uploaded my application to server,I have added

php_value auto_prepend_file
/home/myhome/public_html/lib/config.php

to .htaccess, I am getting internal server error ( 500 Internal Server
Error)

The errorlog shows,

[Sat Aug 14 06:58:25 2004] [alert] [client 202.9.148.62] /home/myhome/public_html/.htaccess: Invalid command 'php_value', perhaps mis-spelled or defined by a module not included in the server configuration

Can any one help me?

Thanks in advance.
Kiran

Reply With Quote
  #2  
Old August 14th, 2004, 05:31 PM
bluephoenix's Avatar
bluephoenix bluephoenix is offline
Levelheaded Curmudgeon
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Syracuse, NY
Posts: 507 bluephoenix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 13 m 2 sec
Reputation Power: 2
Send a message via AIM to bluephoenix
RE: auto_prepend_file 500 error

You said a long time back... was this working and things just suddenly stopped working? Have you upgraded anything recently?

Let's start with the basics:

Quote:
Invalid command 'php_value', perhaps mis-spelled or defined by a module not included in the server configuration


php_value seems to be spelled correctly. Is PHP running as an Apache module?

-Tim

Reply With Quote
  #3  
Old August 15th, 2004, 01:54 AM
postalcow postalcow is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Ford CIty, PA USA
Posts: 1,267 postalcow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via Yahoo to postalcow
RE: auto_prepend_file 500 error

In theory it should work, post your PHP code lets look at that.

Reply With Quote
  #4  
Old August 15th, 2004, 11:55 AM
k_hbl k_hbl is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 6 k_hbl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: auto_prepend_file 500 error

Here is code of configuration,

php Code:
Original - php Code
  1.  
  2. <?php
  3.  
  4.   define('THIS_PATH','/home/myhome/public_html/');
  5.   define('LIB_DIR',THIS_PATH.'/lib');
  6.   define('THIS_DOMAIN','http://www.myhome.com');
  7.   define('SMARTY_DIR',THIS_PATH.'/lib/smarty/');
  8.  
  9. /* Database settings */
  10.   define('DB_HOST','localhost');
  11.   define('DB_USER','myusername');
  12.   define('DB_PASS','mypassword');
  13.   define('DB_NAME','mydbname');
  14.   define('DEBUGGING',0);
  15.   define("PREFIX","myprefix_");
  16.    
  17.   require(LIB_DIR."/prepend.php");
  18.  $TITLE = "mySite Title";
  19.  
  20.  function debug($str) {
  21.     if(DEBUGGING == 1) {
  22.         print_r($str);
  23.     }
  24.  }
  25.  
  26.  
  27. ?> 


I have worked on local machine,
OS: Win2K pro Using UnifromServer (miniserve.sourceforge.net)

I tried with
php Code:
Original - php Code
  1.  
  2. <IfModule mod_php4.c>
  3.         php_value auto_prepend_file '/home/apnawap/public_html/lib/config.php'
  4. </IfModule>


Now no error 500, but I am not getting value in auto_prepend when I run phpinfo

Thanks,
kiran

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesServer Administration > auto_prepend_file 500 error


Thread Tools  Search this Thread 
Search this Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway