PHP.cgi - Can we move it?

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
Ice9
Forum Newbie
Posts: 4
Joined: Tue Jan 18, 2005 5:56 pm

PHP.cgi - Can we move it?

Post by Ice9 »

Hi everyone,
To make a long story short, my main account runs on PHP4 (module), so I asked my host to compile PHP5 (cgi) in my cgi-bin, and it's all working fine. Whatever recently I needed to create a new website and I enabled the cgi-bin, of course, this new website does not contain PHP5 precompiled in it, logical.

Now since I never compiled one, first I would like to try to copy the php.cgi found in my main website and put it into that newly created website. However, each time I tried to do it, I got the "500 error" message.

Here is an example of what's in the htaccess file:

Code: Select all

AddHandler custom-php .php .pcgi
Action custom-php /cgi-bin/php.cgi
Is it any good, can it be done?
If not, as I said, I do not know how to compile my own PHP cgi, whatever I feel that I reached the point where I need to learn this part; I should at least try before running to my host like I did the first time. Even if I consider myself a web designer rather than a web programmer, I need to learn these things eventually.

Well, I want to learn and I need links and help, any help, except for you doing it for me. :twisted:

Thanks!
Post Reply