Skip to content

designvoid/Vagrant-PHP-Oracle-oci8

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This Package is looking for a new home. If you are interested please get in contact with me at jose at ditecnologia dot com to transfer the repo.

PHP development Environment With Oracle instaclient and oci8

My personal Vagrant environtment, forked from - [https://github.com/JeffreyWay/Vagrant-Setup](JeffreyWay - Vagrant-Setup) with some stuff of my own.

Server Info

Server ip: 192.168.40.100
MySQL User: root
MySQL Password: root
SSH user: vagrant
SSH Password: vagrant

What comes in the server

PHP 5.5
MySQL 5.5
Node JS
Gulp
Grunt
Bower
Mailcatcher
Oracle Instaclient 12.1
oci8

How to use it

1. Download the repo.
2. Place the files in the directory of your choice.
3. Navigate in your console to that folder
4. Run vagrant up
5. ssh into the machine
6. run sudo nano /etc/environment
7. add the following to the file
	# Oracle Instant Client
	LD_LIBRARY_PATH="/usr/lib/oracle/12.1/client64/lib/"
	TNS_ADMIN="/usr/lib/oracle/12.1/client64/network/admin"
            C_INCLUDE_PATH="/usr/include/oracle/12.1/client64/"	
        ORACLE_BASE="/usr/lib/oracle/12.1/client64"
	ORACLE_HOME=$ORACLE_BASE'
8. Save and source the file
9. run pecl install oci8
10. Once it ask you for location of the instaclient just hit enter
11. add the following to /etc/php5/apache2/php.ini and /etc/php5/cli/php.ini
	extension=oci8.so
12. Restart apache.	
13. You should be good to go.

Where to put the websites?

You can place each website in the websites directory with their own folder, if you want to create virtual hosts for them, you have to do it manually in the server accesing via vagrant ssh.

What about Mailcatcher?

Once provisioned, the server will start mailchacter with the ip 192.168.40.100, to access the web interface, navigate to http://192.168.40.100:1080, configure your app to send email using SMTP to the ip 192.168.40.100 and port 1025, no user, no password and no encription.

Thanks goes to the following references:

About

[LOOKING FOR A NEW HOME]

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 62.1%
  • Shell 37.7%
  • HTML 0.2%