I try to move an php application to a new server.
While on the old server a curl php call works correctly on the new server I get the error:
{"error":"Referrer Header Required"}
As both servers have different Debian, PHP and curl versions, I try to compile curl 7.51 from sources on the new server. A simple compiling works, then I have new version of curl installed. But I still do not have a new curl module for php. When I try to include libcurl.so in php, it complains
PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) '/usr/local/lib/libcurl.so' in Unknown on line 0
There are some differences in the enabled features in curl on both servers. I want to enable some of the features while compiling, but I do not get this new version to work with php. And it does not seem to enable those features on compiling anyway, I run
./configure --enable-debug --with-gssapi
but after make && make install those features are still not enabled in the new version.
- How do I get a new compiled version of a module that I can include in php?
- How do I get a new curl module for php with some features enabled?
On the old server there is Debian Wheezy installed:
PHP 5.4.39-0+deb7u2
curl 7.26.0 (x86_64-pc-linux-gnu) libcurl/7.26.0 OpenSSL/1.0.1e zlib/1.2.7 libidn/1.25 libssh2/1.4.2 librtmp/2.3 Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3 pop3s rtmp rtsp scp sftp smtp smtps telnet tftp Features: Debug GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP
On the new server, there is Debian Jessie installed:
PHP 5.6.27+dfsg-0+deb8u1
curl 7.38.0 (x86_64-pc-linux-gnu) libcurl/7.38.0 OpenSSL/1.0.1t zlib/1.2.8 libidn/1.29 libssh2/1.4.3 librtmp/2.3 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smtp smtps telnet tftp Features: AsynchDNS IDN IPv6 Largefile GSS-API SPNEGO NTLM NTLM_WB SSL libz TLS-SRP
Thanks a lot,
Jaroslaw