Ask Sawal

Discussion Forum
Notification Icon1
Write Answer Icon
Add Question Icon

Where php.ini in wordpress?

2 Answer(s) Available
Answer # 1 #

The php.ini file is created when php is installed on the server. I believe that wordpress installation requires php to be installed on the server. So your webhost typically installs it on their server and then sells you the hosting space. Then you install your wordpress on it.

Hence, it follows clearly from this that the php.ini file will not be present in the wp-admin folder.

So you need to look for it either at your root folder (but most likely it won't be there if you're on a shared webhosting plan). Then you need to create a file as such:

create a new file in the location = /public_html/your_domain/any_name.php

Put the following code inside the file:

Now try to access the file through your browser as follows:

[2]
Edit
Query
Report
LCD Tighe
Development Team Lead
Answer # 2 #
  • C:\Windows\php. ini.
  • C:\php\php. ini.
[1]
Edit
Query
Report
Kymsleen Mukerjee
Resource Recovery Engineer