Digital Masters Magazine

Home of Digital Masters

  • Design
  • Photo
  • Video
  • Web
  • Code
  • UX
  • Mobile
Home Tips Tip of the Day How to Find the Location of php.ini on a Web Server
How to Find the Location of php.ini on a Web Server

September 14, 2012 By Digital Masters Leave a Comment

How to Find the Location of php.ini on a Web Server

When running Apache with PHP on a Unix/Linux server, you can find the location of the php.ini file easily. Open a terminal window and type:

php -i | grep php.ini

The server will respond with something like this:

Configuration File (php.ini) Path => /some/path/directory
Loaded Configuration File => /some/path/directory/php.ini

The php.ini file includes the active configuration of the PHP interpreter. To ensure that this file cannot be misused, you should set user privileges on it to 640:

cd /some/path/directory/
sudo chmod 640 php.ini

Filed Under: Tip of the Day, Web, Webmasters' Insights Tagged With: Apache, PHP

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Treat yourself to the best of our content

Sharing is caring

Tweets by 4digitalmasters
Speed is everything: shiny car engine rendering

$#! No ISO and no upgrade pathways? How to force your PC to upgrade Windows 10 to Windows 11

Photo by Warren Wong on Unsplash

The tech revolt. Say goodbye to your favorite search engine that’s been wasting your precious clicks on silly captchas

Change language settings in Adobe Photoshop 2020

How to change the language of Adobe Photoshop

Apple MacBook Pro (16-Inch, 16GB RAM, 1TB Storage) - Space Gray

The new 16-inch MacBook Pro: Faster, slightly heavier but still ultra-light and #WorthTheWait

iPhone XS

The iPhone XS +++ An Insider Report +++ new 5.8-inch and 6.5-inch OLED iPhones +++ Codename D32 & D33

Apple MacBook Pro (16-Inch, 16GB RAM, 1TB Storage) - Space Gray

Apple’s new 16-inch MacBook Pro sports even cooler looks than its predecessor. It is also truly different.

iPhone XS

If you are playing with the idea of buying a new iPhone, now is the time to wait. All signs are pointing to the launch of a new iPhone. On September 12th, Apple has scheduled a media event. If history is any indication, a new product launch is imminent. The iPhone maker has already released […]

What’s up

ActionScript Adobe Adobe CC All-in-One WP Migration Angular 2 Apache Apple assistive technology CNAME crawl DNG Dreamweaver Event Viewer Google Google Analytics GPU HTML HTTP INTC Intel iOS iPhone JavaScript Microsoft Windows 10 OpenSSH OS X PayPal performance Photoshop PHP product key Qualcomm RAW redirects RSS SEO speed SSD Tim Cook TypeScript Wall Street Windows Windows 10 Windows 10 free upgrade WordPress

Categories

  • Home
  • Subscribe
  • Advertise
  • Privacy Policy
  • Legal
  • Contact Us

Copyright © 2023 ·Streamline Pro Theme · Genesis Framework by StudioPress · WordPress · Log in