On Fri, Aug 27, 2010 at 8:16 PM, Tears ! <unix...@gmail.com> wrote:

> Dear Users,
>
> I am facing strange problem regarding (php value auto_prepend_file) with
> mod_fcgid. through .htaccess This is the error
>
> [Fri Aug 27 18:12:50 2010] [error] [client 119.158.109.31] PHP Warning:
> Unknown: failed to open stream: No such file or directory in Unknown on line
> 0
> [Fri Aug 27 18:12:50 2010] [error] [client 119.158.109.31] Unknown(0) :
> Warning - Unknown: failed to open stream: No such file or directory
> [Fri Aug 27 18:12:50 2010] [error] [client 119.158.109.31] PHP Fatal
> error:  Unknown: Failed opening required 'server.php
> [Fri Aug 27 18:12:50 2010] [error] [client 119.158.109.31] '
> (include_path='.:/usr/local/www/include') in Unknown on line 0
> [Fri Aug 27 18:12:50 2010] [error] [client 119.158.109.31] Unknown(0) :
> Fatal error - Unknown: Failed opening required 'server.php
> [Fri Aug 27 18:12:50 2010] [error] [client 119.158.109.31] '
> (include_path='.:/usr/local/www/include')
> *
> server.php files is available in /usr/local/www/include/*
>
> I am using htscanner for .htacess files for php_modfcgid
>
> *here is .htacess file*
>
> <IfModule Mod_php.c>
>   php_value auto_prepend_file server.php
> </IfModule>
>
>
>
> Here is my virtualhost setting
>
> <VirtualHost *:80>
>     ServerAdmin u...@example.org
>     DocumentRoot "/usr/local/www/mydata"
>     ServerName lime.example.org
>     ErrorLog "/var/log/apache/lime-error_log"
>     CustomLog "/var/log/apache/lime-access_log" common
> </VirtualHost>
>
> *here is the php-cgi
> *
> #!/bin/sh
> PHP_CGI=/usr/local/bin/php-cgi
> PHP_FCGI_CHILDREN=16
> PHP_FCGI_MAX_REQUESTS=1000
> export PHP_FCGI_CHILDREN
> export PHP_FCGI_MAX_REQUESTS
> exec $PHP_CGI
>
> *this is php.conf under /usr/local/apache/Include/
> *
> AddHandler php5-fastcgi .php
> Action php5-fastcgi /cgi-bin/php.fcgi
> DirectoryIndex index.php
>
> **
> would you please help how i can solve this issue because this is working
> through mod_php
>
>
Hi Umar,

Your log is saying that php can't locate your prepend file "server.php".
maybe you need to use a full path for it.


-- 

Marc
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Mod-fcgid-users mailing list
Mod-fcgid-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users

Reply via email to