Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Where is etc in a Code Igniter / Vagrant enviornment?

Posted on 2016-07-24
4
Medium Priority
?
78 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 84

Accepted Solution

by:
Dave Baldwin earned 1000 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 1000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article discusses how to implement server side field validation and display customized error messages to the client.
It’s a season to be thankful, and we’re thankful for users like you who engage on site, solve technology problems, and network with others in the industry. What tech are we most thankful for? Keep reading.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

916 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