Solved

Where is etc in a Code Igniter / Vagrant enviornment?

Posted on 2016-07-24
4
58 Views
1 Endorsement
Last Modified: 2016-07-26
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:

/etc/php.ini

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?
1
Comment
Question by:brucegust
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 250 total points
ID: 41726834
That would be off the root of a Linux volume.  I though you were on Windows?
1
 

Author Comment

by:brucegust
ID: 41726847
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.
1
 
LVL 31

Expert Comment

by:Marco Gasi
ID: 41727103
Are you using Vargrant with VirtualBox?
0
 
LVL 31

Assisted Solution

by:Marco Gasi
Marco Gasi earned 250 total points
ID: 41727157
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.
2

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question