Click to See Complete Forum and Search --> : php --with-pfpro doesn't work
sameerni
07-15-2003, 05:00 AM
i am using apache with ssl installed with it.
Version details.
Apache 1.3.27
mm 1.3.0
mod_ssl 2.8.14 for apache 1.3.27
openssl 0.9.7b
pfpro sdk 3.0
php 4.3.2
i installed php with following ./configure options.
./configure --prefix=/usr/local/php --with-apxs=/usr/local/apache/bin/apxs --with-mysql --with-pfpro=shared,/usr/local/lib --with-xslt --with-xml
it works fine but when it comes to any pfpro function, the pfpro_init() fails. The error it gives is :
Call to undefined function: pfpro_init() in /usr/local/apache/htdocs/blah/subscribe.php on line 445
The above configure options do not give any error, not while making configure tests and not on
# make
and
# make install steps
apache restarts wel. No error. Only pfpro_init() fails.
any suggestions?
tsinka
07-16-2003, 02:24 AM
Hi,
did you enable that module in php.ini. I see that you compiled it as shared. You have to enable shared php modules in the php.ini.
Please post the php.ini.
Thomas
sameerni
07-16-2003, 02:48 AM
thnx for info. i was not sure about that, whether to enable this module or not coz that is mentioned under windows heading in php.ini.
I would do that and then let you know what happens.
Currently i have not enabled it in php.ini.
Thank you once again.
sameerni
07-16-2003, 05:50 AM
hi,
i tried to run pfpro_init(); after adding
enable=pfpro.so
to php.ini but it didn't work.
here i am attaching php.ini file.
see if i have done something wrong.
tsinka
07-16-2003, 06:02 AM
Ok,
did you restart the web server afterwards ? I think so. Also check the error_log if there are any error messages.
tsinka
07-16-2003, 06:06 AM
Hi,
could it be that the extension_dir is wrong ?
you use
/usr/local/php/lib/php/extensions/no-debug-non-zts-20020429
Try
/usr/local/lib/php/extensions/no-debug-non-zts-20020429
Just a suggestion ...
sameerni
07-16-2003, 06:27 AM
yes, i restarted apache after every change in php.ini
no, the file is in same directory. i went there and checked. It is there. There I executed the command..
$ pwd > extpath.txt
and then copied the path in this extpath.txt file
to php.ini
i am running apache with command....
# /usr/local/apache/bin/apachectl sslstart
and it starts wel, ssl works for .php pages as wel
but pfpro functions don't work
+++++
i have another linux box where i compiled php --with-pfpro as a static module. it works. but i do not have ssl on this machine.
so, i see the problem is with ssl and php with pfpro only.
i am also searching for solution.
thank you for your reply.
any suggestions appreciated.
sameer
tsinka
07-16-2003, 09:29 AM
Hi,
I found a german description on pfpro on
http://www.php-resource.de/manual.php?p=ref.pfpro
The author writes that you have to use the beta version of the pfpro sdk if you want to use pfpro on a ssl enabled web server.
Thomas
tsinka
07-16-2003, 09:33 AM
Ok,
it's a german translation of the standard manual ... not an article ...
http://www.php.net/manual/en/ref.pfpro.php
sameerni
07-16-2003, 09:47 AM
i have already been through that manual. it didn't help.
Sameer.
sameerni
07-17-2003, 04:06 AM
i tried to install php with pfpro as a static module but then apache fails to start with ssl.
Any thoughts?
tsinka
07-17-2003, 07:38 AM
Do you get any error messages in the error_log or on the console if you try to start apache or does ist just not start without any messages ?
sameerni
07-17-2003, 07:44 AM
hi,
# /usr/local/apache/bin/apachectl start
this fails to start. and gives error.
but
# /usr/local/apache/bin/apachectl sslstart
works without any error.
sameer.
tsinka
07-17-2003, 07:49 AM
What error do you get ? In which order do you add the ssl and the php module ?
sameerni
07-17-2003, 07:56 AM
i tried both
first .so of php then ssl
and vice-versa.
right now i am loading first ssl and then php.
tsinka
07-17-2003, 07:58 AM
Which error do you get ?
sameerni
07-17-2003, 08:42 AM
i have to wait for an hour before i copy that error coz my guinea pig machine where i do testing job is in use currently. its a duel boot machne and currently running M$ windows!
sameerni
07-18-2003, 07:00 AM
hi thomas,
it worked. the pfpro with php and ssl is working fine.
i found my mistake. I was editing wrong php.ini file.
I should have been editing /usr/local/php/lib/php.ini
and i was editing /usr/local/lib/php.ini
that's where the problem was otherwise just making
extension_dir=DIR
enable=pfpro.so
worked.
Thank you very much.
Sameer.
PHP Builder
Copyright Internet.com Inc. All Rights Reserved.