No https registered stream in PHP (help needed)

Status
Not open for further replies.

bitsandnumbers

Dabbler
Joined
Apr 8, 2013
Messages
39
Hi,

I have php installed in a jail with nginx as a web server. I also have owncloud installed (I followed this thread to setup everything: http://forums.freenas.org/threads/howto-owncloud-with-nginx-and-mysql-in-plugin-jail.9985/).

I want to install third-party applications on OwnCloud, but some apps mirror this error in owncloud.log and won't install:
> Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?

So I tried to set an https stream, which seems to be missing (as shown in my phpinfo()):
> Registered PHP Streams: php, file, glob, data, http, ftp, compress.zlib, zip, phar

But I can't figure out how... I searched google for hours, tried to recompile php with openssl support with this command: > make configure, but as I found that there was no such option I did not compile.

My openssl.so extension is correctly setup in the php config files, it just seems that php does not take ssl into account at all in the first place.

I assume I may have to recompile php, but don't know how to make it with ssl support. Also, I'm afraid that a deinstall/reinstall will make me loose all my php configs...

If someone know what's going on. I know it must be a simple trick, but I cannot figure it out and other forums doesn't help.

BTW, I ask in the Freenas forum since the setup must be specific to freebsd, and I'm running everything in a Freenas jail. If you think this is not appropriate, tell me. But any help would be greatly appreciated!
 
D

dlavigne

Guest
You need to install a php ssl port. Which version of PHP is installed? (pkg_info |grep php)
 

bitsandnumbers

Dabbler
Joined
Apr 8, 2013
Messages
39
Hi dlavigne,

Here is the output for pkg_info |grep php:

pkg_info: the package info for package 'gobject-introspection-1.34.2' is corrupt
php5-5.4.13 PHP Scripting Language
php5-ctype-5.4.13 The ctype shared extension for php
php5-curl-5.4.13 The curl shared extension for php
php5-dom-5.4.13 The dom shared extension for php
php5-extensions-1.7 A "meta-port" to install PHP extensions
php5-fileinfo-5.4.13 The fileinfo shared extension for php
php5-filter-5.4.13 The filter shared extension for php
php5-gd-5.4.13 The gd shared extension for php
php5-hash-5.4.13 The hash shared extension for php
php5-iconv-5.4.13 The iconv shared extension for php
php5-imap-5.4.13 The imap shared extension for php
php5-json-5.4.13 The json shared extension for php
php5-ldap-5.4.13 The ldap shared extension for php
php5-mbstring-5.4.13 The mbstring shared extension for php
php5-mysql-5.4.13 The mysql shared extension for php
php5-mysqli-5.4.13 The mysqli shared extension for php
php5-openssl-5.4.16 The openssl shared extension for php
php5-pdo-5.4.13 The pdo shared extension for php
php5-pdo_mysql-5.4.13 The pdo_mysql shared extension for php
php5-pdo_sqlite-5.4.13 The pdo_sqlite shared extension for php
php5-phar-5.4.13 The phar shared extension for php
php5-posix-5.4.13 The posix shared extension for php
php5-session-5.4.13 The session shared extension for php
php5-simplexml-5.4.13 The simplexml shared extension for php
php5-sqlite3-5.4.13 The sqlite3 shared extension for php
php5-tokenizer-5.4.13 The tokenizer shared extension for php
php5-xml-5.4.13 The xml shared extension for php
php5-xmlreader-5.4.13 The xmlreader shared extension for php
php5-xmlwriter-5.4.13 The xmlwriter shared extension for php
php5-zip-5.4.13 The zip shared extension for php
php5-zlib-5.4.13 The zlib shared extension for php

So there is a port of php with SSL ? What is its name ? And if I desinstall my installed version to install it, will it preserve my configs ?

Thanks for your answer :)
 

bitsandnumbers

Dabbler
Joined
Apr 8, 2013
Messages
39
As per this line:
php5-openssl-5.4.16 The openssl shared extension for php

It seems to be already installed. Or am I missing something ?
 
D

dlavigne

Guest
Sorry, I missed that :smile:

You don't have to reinstall/recompile the PHP stuff as you appear to have the necessary PHP bits.

Taking a look at the defaults for nginx though shows that SSL is off by default. Does this fix the issue?

cd /usr/ports/www/nginx
make deinstall
make config (make sure SSL is selected)
make install
 
Status
Not open for further replies.
Top