[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: php 5.2 as cgi not working in debian 6.0



On Wed, 2 Nov 2011 16:02:12 +0000 (UTC)
Camaleón <noelamac@gmail.com> wrote:


> 
> So instead using "/opt" you installed over "/usr/local/bin".

Yes, that's the location where I like to place php 5.2

>  
> > and at /etc/apache/php52.conf
>          ^^^^^^^^^^^^^^^^^^^^^^
>
> Is that path/file right? :-?

urghh... sorry for the typo mistake. It should be  /etc/apache2/php52.conf
and it is already there at /etc/apache2/apache2.conf file as per the right path.

> 
> > ScriptAlias /php5-cgi  /usr/lib/cgi-bin/php52/php5-cgi 
>                                                         ^
> 
> There's a missing trailing slash, not sure if that can affect.

Applied the tailing slash and restarted apache, but no effect....

> 
> > Action application/x-httpd-php5 /php5-cgi
>                                    ^^^^^^^^
> 
> And look if the filename extesion (.fgci) is a must for this setup, maybe 
> the web server is expecting such mimetype to be properly processed :-?
> 
> (...)
> 
Ok.. then let me change it

/usr/lib/cgi-bin/php52/php5.fcgi

and the /etc/apache2/php52.conf looks like

` ` ` `
ScriptAlias /cgi-bin  /usr/lib/cgi-bin/php52/php5-cgi/
Action application/x-httpd-php5 /cgi-bin/php52/php5-cgi/php52.fcgi
` ` ` ` `

restarted apache... but no success :-( 


Reply to: