Personalized php5 running via SSH not possible?

software development

#1

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


#2

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

$50 off and 3 free domains with code: [color=#CC0000]DH3[/color] Sign Up NOW or More Codes Here


#3

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


#4

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

$50 off and 3 free domains with code: [color=#CC0000]DH3[/color] Sign Up NOW or More Codes Here


#5

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

Thanks
Janio


#6

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

$50 off and 3 free domains with code: [color=#CC0000]DH3[/color] Sign Up NOW or More Codes Here