Personalized php5 running via SSH not possible?

Personalized php5 running via SSH not possible?

Posted by: janioribeiro
Posted on: 2008-09-07 07:42:00

Hi dear,

This week I must make a personalized compilation of php5 because the DH version havent sockets actived.

Before coupule days of hard study i finally make that work fine.

Now I must run my script via ssh eg: php script.php...
BUT when I try the ssh use DH older php version 4v not 5v personalized by me.

HOW Can I make that run using my personalized php5 and php.ini onto cgi-bin?

Thanks
Janio

Re: Personalized php5 running via SSH not possible

Posted by: patricktan
Posted on: 2008-09-07 15:57:00

where did you install your PHP5? You can try to run PHP5 from your installation directory. For example, /home/username/php5/bin/php.exe

Re: Personalized php5 running via SSH not possible

Posted by: janioribeiro
Posted on: 2008-09-07 16:19:00

Hi,

$HOME/domain/cgi-bin/php.cgi
The problem is because is in Linux not windows, then I dont know how call php5 version in linux, in fact my linux is so bad...

Thanks!
Janio

Re: Personalized php5 running via SSH not possible

Posted by: patricktan
Posted on: 2008-09-07 20:55:00

try $HOME/domain/cgi-bin/php.cgi home/username/yourdomain.com/yourfile.php

Re: Personalized php5 running via SSH not possible

Posted by: janioribeiro
Posted on: 2008-09-08 05:29:00

Wich command I can use for run the cgi file ? run php.cgi ?

Thanks
Janio

Re: Personalized php5 running via SSH not possible

Posted by: patricktan
Posted on: 2008-09-09 04:48:00

I just read this article of How to install PHP5. It gives step by step instructions.

I am not an expert on this but this should be the solution of your problem.

Add these lines to your .htaccess file

AddHandler phpFive .php
Action phpFive /cgi-bin/php.cgi


Tags: php versionscript phpsocketsinicompilation