yajra / homestead-oracle

Laravel local development environment with Oracle XE 11g
31 stars 12 forks source link

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

Open tobysommer opened 6 years ago

tobysommer commented 6 years ago

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():

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 commented 6 years ago

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