• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 103
  • Last Modified:

Where is etc in a Code Igniter / Vagrant enviornment?

When I run my phpinfo() command in a Code Igniter app that's running in a Vagrant environment, it says that the loaded php.ini file is located:


I'm looking all over for my etc directory and I can't find it.

Any idea on where I should be looking? I've got my View options set to show all hidden files, folders and drives and I'm still stuck.

Any ideas?
  • 2
2 Solutions
Dave BaldwinFixer of ProblemsCommented:
That would be off the root of a Linux volume.  I though you were on Windows?
brucegustPHP DeveloperAuthor Commented:
I am on Windows. I don't know if the fact that I'm on a Vagrant environment that's, from what I gather, a clone of the working environment that the app is hosted on, makes any difference.

I don't know, Dave. I was stoked to get to a place where I could see the php configuration data, but now I'm just as frustrated when it's telling me that my php.ini is in a directory that I can't find.

I did see this: http://learn-live.blogspot.com/2008/04/that-windows-has-etc-directory.html, but there was not php.ini file in there.
Marco GasiFreelancerCommented:
Are you using Vargrant with VirtualBox?
Marco GasiFreelancerCommented:
If this is the case, tke a look at this: https://www.vagrantup.com/docs/getting-started/
They say tht once you run these commands in the command line:
$ vagrant init hashicorp/precise64
$ vagrant up

Open in new window

you will have a fully running virtual machine in VirtualBox running Ubuntu 12.04 LTS 64-bit.
So the php.ini shluld be find within the etc/ directory you find in the oot of the Ubuntu system in the virtual machine.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now