iloveitaly
12-31-2004, 02:33 PM
I am doing work for this client and his host doesn't support the DOMXML php extension, which is one of the main extensions i use.
So the host said you can compile your own CGI PHP and use .htaccess.
I've never really compiled anything before (except for a few simple C projects), so i downloaded the PHP source and followed some instructions (http://www.onlamp.com/pub/a/php/2000/11/17/php_admin.html?page=1). After it finished compiling all i had (as far as i could see) were 3 different php related exacutables. One was names 'php', so i uploaded it to the server added this:
AddHandler custom-php .php .pcgi
Action custom-php /cgi-bin/php
to a .htaccess file and tested a simple php file. No go. It just displayes the php files source. I cant figure out what i did wrong. I only uploaded one single php binary, is that what i was suppossed to do? Any ideas on why this isn't working?
Thanks
So the host said you can compile your own CGI PHP and use .htaccess.
I've never really compiled anything before (except for a few simple C projects), so i downloaded the PHP source and followed some instructions (http://www.onlamp.com/pub/a/php/2000/11/17/php_admin.html?page=1). After it finished compiling all i had (as far as i could see) were 3 different php related exacutables. One was names 'php', so i uploaded it to the server added this:
AddHandler custom-php .php .pcgi
Action custom-php /cgi-bin/php
to a .htaccess file and tested a simple php file. No go. It just displayes the php files source. I cant figure out what i did wrong. I only uploaded one single php binary, is that what i was suppossed to do? Any ideas on why this isn't working?
Thanks