Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCI doesn't work with current homestead / fresh install #14

Open
tobysommer opened this issue Dec 22, 2017 · 1 comment
Open

OCI doesn't work with current homestead / fresh install #14

tobysommer opened this issue Dec 22, 2017 · 1 comment

Comments

@tobysommer
Copy link

tobysommer commented Dec 22, 2017

Hi there,

First of all, I want to say thanks for your effort :)

I need to connect to a remote Oracle DB, so I tried out your Homestead version. I followed the instructions and updated the config/Homestead.yaml-file (= changing the provider to vmware_fusion & changing the tld to .test). After running vagrant up, it finished with the following warnings:

default: /tmp/vagrant-shell: line 5: /etc/php/mods-available/oci8.ini: No such file or directory
default: WARNING: Module oci8 ini file doesn't exist under /etc/php/7.0/mods-available
default: WARNING: Module oci8 ini file doesn't exist under /etc/php/7.0/mods-available

Therefore, I changed the scripts/install-oci8.sh:

-       echo 'extension=oci8.so' > /etc/php/mods-available/oci8.ini
+       echo 'extension=oci8.so' > /etc/php/7.0/mods-available/oci8.ini

Now comes the fun part ;) I checked phpinfo():

  • @ webbrowser: PHP 7.0.26-1+ubuntu16.04.1+deb.sury.org+1
  • oci8-section was missing!
  • PHP @ CLI: PHP 7.2.0-1+ubuntu16.04.1+deb.sury.org+1 (cli)
  • php -m | grep 'oci8' returns nothing
  • as soon as I try to connect to an Oracle DB, I get the Call to undefined function Yajra\Pdo\oci_connect()-exception.
  • changing PHP's CLI version throws the following warning:
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20160303/oci8.so' - /usr/lib/php/20160303/oci8.so: cannot open shared object file: No such file or directory in Unknown on line 0

Also:
After running vagrant provision, it exits out with the following statement:

    default: Job for nginx.service failed. See "systemctl status nginx.service" and "journalctl -xe" for details.
    default: Job for php7.0-fpm.service failed. See "systemctl status php7.0-fpm.service" and "journalctl -xe" for details.
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

Meh :(

Do you have any tips on how to proceed?

Thanks in advance and happy holidays :)

@tobysommer
Copy link
Author

I also tried the 7.1 version (changes from PR #13), but it still doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant