Solved

Where is etc in a Code Igniter / Vagrant enviornment?

Posted on 2016-07-24
4
42 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
  • 2
4 Comments
 
LVL 82

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 30

Expert Comment

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

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Consider the following scenario: You are working on a website and make something great - something that lets the server work with information submitted by your users. This could be anything, from a simple guestbook to a e-Money solution. But what…
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now