Executing curlexec() function in php script under apache cause "segmentation fault", when trying to access https pages, and php sources are displayed in browser.
In order for curl functions in php to work with https , mod_ssl and certificates required to be loaded by apache.
For IP based VDSes - Install OpenSSL Value App.
For name based VDS environment follow next steps:
Make a hardlink/copy of libssl.so with next command: ln/cp ~pvds_username/ftp/usr/lib/apache/libssl.so ~vds_username/ftp/usr/lib/apache/libssl.so
Acquire and install SSL certificates at ~vds_username/etc/http/conf/ , so the resulting directory structure will look as following: ~vds_username/etc/httpd/conf/ssl.crt/server.crt ~vds_username/etc/httpd/conf/ssl.key/server.key ~vds_username/etc/httpd/conf/ssl.csr/server.csr
Restart apache by "/etc/rc.d/init.d/httpd restart" or via VDS Control Panel.
Note: The certificates could be generated with OpenSSL, and don't have to include correct information.