Hi,
A small update, the file is in 755
(otherwise Suexec don't let the script work) 

Philippe 

Philippe writes: 

> Hi,
> My file end in .cgi, it's in 777
> It isn't handled by Apache because it don't work if I don't put 
> #!/usr/local/bin/php
> It's in cgi-bin directory, and yes others cgi languages work well (I've 
> already tested perl)  
> 
> Philippe  
> 
> Curt A. Gilman writes:  
> 
>> Philippe,  
>> 
>> Does the file name end in .php or something similar? If so, it is 
>> probably
>> being handled by the Apache PHP module, since you have it installed, and 
>> not
>> by the CGI. You could try changing the name to .cgi or something else and
>> see what happens.  
>> 
>> Also, have you remembered to put the file in executable mode with chmod?  
>> 
>>     for example:    chmod a+x foo.bar  
>> 
>> Is it in a cgi-bin folder or similar folder where scripts will be 
>> executed?
>> Do other CGI scripts in the same folder work?  
>> 
>> __________
>> Curt A. Gilman
>> Richmond, Virginia, USA
>> [EMAIL PROTECTED]  
>> 
>> "Philippe" <[EMAIL PROTECTED]> wrote in message
>> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>>> Hi,
>>> I've FreeBSD 4.2/Apache 1.3.9/PHP 4.0.6
>>> I've installed PHP in Apache, it works very well
>>> I need to have too PHP 4.0.6 in CGI mode (With Suexec but I don't think
>> it's
>>> the problem) but I've a problem.
>>> In CGI mode, the path of PHP is always written at the top of the result  
>>> 
>>> I'll take for example this script :
>>>  ----
>>> #!/usr/local/bin/php
>>> <?
>>> print "Hello World";
>>> ?>
>>>  ----  
>>> 
>>> When the file is called by the browser, the result is :
>>>  ----
>>> #!/usr/local/bin/php
>>> Hello World
>>>  ----  
>>> 
>>> Does someone know the problem and the solution ?
>>> Have I forgotten something ?  
>>> 
>>> Thanks for your help  
>>> 
>>> Philippe  
>>> 
>>   
>> 
>  
> 
> -- 
> PHP General 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 General 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]

Reply via email to