The best way to find this is:
Create a PHP (.php) file and add the following code:
<?php phpinfo(); ?>
and open it in a browser. It will show the file which is actually being read!
Updates by the OP:
- The previously accepted answer is likely to be faster and more convenient for you, but it is not always correct. See comments on that answer.
- Please also note the more convenient alternative
<?php echo php_ini_loaded_file(); ?>
mentioned in this answer.
Related Posts:
- PHP and mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
- WordPress can’t find temporary folder, but folder it’s looking at has correct permissions
- WordPress sites being filled with random PHP files
- How to remove all plugins, posts, pages, and inactive themes in one line with wp-cli? WordPress bloatware removal
- memcache vs memcached?
- how to properly mount external server directory for wordpress uploads
- PHP E_WARNING being shown despite php.ini [closed]
- WordPress upload file size error even after raising php limits
- PHP Parse error on WP-CLI, not on web server
- Unexpected token ILLEGAL, even on clean install – jquery-issue?
- Infinite Loop in WordPress Installation
- php_gd2 extension not loading on Windows
- How to configure both webserver and appserver for WordPress CMS?
- WordPress cloning issue
- How to edit content in WordPress and the Polylang – plugin? – with demosite
- Maximum file Upload
- How come there is no error if I upgrade WordPress core after locking .htaccess permissions to 644?
- How does WordPress rewrite URLS using its PHP scripts
- How to fix UpdraftPlus’s memory issue?
- Strange special character/Latin characters
- My WordPress is giving me an 403 error when saving post/draft with specific words
- How do I prevent a folder from reappearing in my home directory?
- Is it a good idea to edit WordPress within Eclipse? [closed]
- magic-quotes – breaks admin totally
- WordPress article with 50 000 words loading slow – 100% cpu
- how to put shortcode to the top of the page – theme 2014
- Communcation with wordrpess and linux server [closed]
- kali php problem [closed]
- How can I sort du -h output by size
- Can scp copy directories recursively?
- What exactly do the colors in htop status bars mean?
- How to run a server on port 80 as a normal user on Linux?
- Anyone else experiencing high rates of Linux server crashes during a leap second day?
- What permissions should my website files/folders have on a Linux webserver?
- Why is my crontab not working, and how can I troubleshoot it?
- Showing total progress in rsync: is it possible?
- Copying a large directory tree locally? cp or rsync?
- What are the functional differences between .profile .bash_profile and .bashrc
- Can I automatically add a new host to known_hosts?
- How to bind MySQL server to more than one IP address?
- Can I nohup/screen an already-started process?
- Check if port is open or closed on a Linux server?
- Why is “chmod -R 777 /” destructive?
- Moving an already-running process to Screen
- Why does my hostname appear with the address 127.0.1.1 rather than 127.0.0.1 in /etc/hosts?
- How can I run Debian stable but install some packages from testing?
- Linux command to inspect TXT records of a domain [closed]
- Environment variables of a running process on Unix?
- When does `cron.daily` run?
- What’s the best way of handling permissions for Apache 2’s user www-data in /var/www?
- Permission denied (publickey). SSH from local Ubuntu to Amazon EC2 server
- How to run a command multiple times, using bash shell?
- df in linux not showing correct free space after file removal
- In my /etc/hosts/ file on Linux/OSX, how do I do a wildcard subdomain?
- How to check if a library is installed?
- Setting the hostname: FQDN or short name?
- Shell command to monitor changes in a file
- When does /tmp get cleared?
- Meaning of the buffers/cache line in the output of free
- Is it normal to get hundreds of break-in attempts per day?
- How to setup passwordless `sudo` on Linux?
- LVM dangers and caveats
- How to reconnect to a disconnected ssh session
- How to cd into a directory with this name “-2” (starting with the hyphen)?
- What does a + mean at the end of the permissions from ls -l?
- how to disable SSH login with password for some users?
- Should I quit using Ifconfig?
- How to know from which yum repository a package has been installed?
- Difference in sites-available vs sites-enabled vs conf.d directories (Nginx)?
- How do I prevent accidental rm -rf /*?
- How do I verify the speed of my NIC?
- SSL Certificate Location on UNIX/Linux
- How do I sleep for a millisecond in bash or ksh
- Is it possible to detach a process from its terminal? (Or, “I should have used screen!”) [duplicate]
- What is “-bash: !”: event not found”
- Disk full, du tells different. How to further investigate?
- What does Virtual memory size in top mean?
- What does ‘set -e’ do, and why might it be considered dangerous?
- Filename length limits on linux?
- tar – Remove leading directory components on extraction
- What version of RHEL am I using?
- What’s the best way to check if a volume is mounted in a Bash script?
- Keeping a linux process running after I logout
- How do I find the UUID of a filesystem
- Force dig to resolve without using cache
- Find out symbolic link target via command line
- What useful things can one add to one’s .bashrc? [closed]
- Meaning of directories on Unix and Unix like systems
- How do you make it obvious you are on a production system?
- How to add a timestamp to bash script log?
- best way to clear all iptables rules
- How to handle security updates within Docker containers?
- Job scheduling using crontab, what will happen when computer is shutdown during that time?
- How can I verify if TLS 1.2 is supported on a remote web server from the RHEL/CentOS shell?
- How can I port forward with iptables?
- How to list Apache enabled modules?
- How to remove empty/blank lines from a file in Unix (including spaces)?
- How to forcibly close a socket in TIME_WAIT?
- How to check if an RSA public / private key pair match
- Mount CIFS Host is down