Installing Custom PHP & PDFLib

Installing Custom PHP & PDFLib

Posted by: hellboy
Posted on: 2008-07-01 00:09:00

Hello all,

I am trying to install PHPLib an open source library which will be used to generate dynamic PDF file. I read the dreamhost wiki and it said that I need to install the Custom PHP as the I will not be able to install the PDFLib in the default PHP that the dreamhost installed. I have tried to install the Custom PHP using the process explained in the dreamhost wiki after making some modifications in the code I run the script using PUTTY and the command runs without any error. But When I see the phpinfo page into my server I see Configuration path as /etc/php5/cgi but as far as I understand by reading the help on installing PHPLib it should be something like /user/php5......

Can you help me please. I am stuck in this part like forever.

Thanks in advance.

Re: Installing Custom PHP & PDFLib

Posted by: silkrooster
Posted on: 2008-07-01 14:06:00

Did you update your htaccess file to point to the new install?

My website

Re: Installing Custom PHP & PDFLib

Posted by: hellboy
Posted on: 2008-07-02 03:47:00

We are talking about the code below?

Options ExecCGI
AddHandler php-cgi .php
Action php-cgi /cgi-bin/php.cgi

<FilesMatch "^php5?\.(ini|cgi)$">
Order Deny,Allow
Deny from All
Allow from env=REDIRECT_STATUS
</FilesMatch>

Yes I did try that too but when I try to browse the site there is error. You can find that error below:

******************************************************

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, emailaddress@mydomain.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

****************************************************

ThanksEdited by rlparker on 08/19/08 02:09 PM (server time).