Article ID: 4374, created on Mar 24, 2008, last review on May 9, 2014

  • Applies to:
  • Sphera



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:
  1.  Make a hardlink/copy of with next command:              ln/cp ~pvds_username/ftp/usr/lib/apache/ ~vds_username/ftp/usr/lib/apache/
  2.  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
  3.  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.


5f478287f7e74fe9b07217d8131cd741 6311ae17c1ee52b36e68aaf4ad066387

Email subscription for changes to this article
Save as PDF