Title: php.ini file issue
Last modified: August 31, 2016

---

# php.ini file issue

 *  [sharid](https://wordpress.org/support/users/sharid/)
 * (@sharid)
 * [10 years ago](https://wordpress.org/support/topic/phpini-file-issue/)
 * Hi
 * I have a php.ini file issue whereby it runs out of memory and can’t load a theme
   larger than 2mg.
 * I have read quite a lot on the subject and watched a few youtube videos on how
   to resolve the issue. My problem is not that I don’t know how to update the php.
   ini file its partially how to find it. However this is not a straight forward
   issue, I have created an info.php file which shows me the path.
 * The path I am give for the php.ini file is
 * C:\Program Files (x86)\PHP\v5.6\php.ini
 * when I follow this path I can only go as far as
 * C:\Program Files (x86)
 * as there is no folder called \PHP\v5.6\php.ini I have tried to use the search
   option to look for the file/folder but still nothing. I have unchecked the box
   so no files/folders are hidden but still I get nothing. I created a PHP folder,
   then a v5.6 folder and placed the amended php.ini file in there, but I still 
   get the memory issue.
 * Also when I did a search for it on my pc and typed in the path after creating
   the folders still nothing came up.
 * The path C:\Program Files (x86)\PHP\v5.6\php.ini is shown via the info.php file,
   Which I uploaded into the wp-admin folder.
 * My WordPress was installed straight via CPanel I did not use a FTP Suffer to 
   upload the files, so not sure why it is checking my C Drive.
 * Also I uploaded an amended php.ini file to my wp-admin folder as the youtube 
   videos and some of the post here advised and I still get the problem. I have 
   followed the instructions correctly but can’t seem to fix this or locate the 
   file via the path given to me by info.php
 * I have fixed a php.ini file before when i was using xampp which worked fine, 
   so i know i am doing the right think. i just cant sort this one.
 * i have spoken to mu hosing company and they are having alook, can anyone help
   as i have neen stuck on this for a few day now.
 * Thanks

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/phpini-file-issue/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/phpini-file-issue/page/2/?output_format=md)

 *  [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * (@kmessinger)
 * [10 years ago](https://wordpress.org/support/topic/phpini-file-issue/#post-7397366)
 * The file should be in the root directory of the server. Where WordPress is installed.
 *  Thread Starter [sharid](https://wordpress.org/support/users/sharid/)
 * (@sharid)
 * [10 years ago](https://wordpress.org/support/topic/phpini-file-issue/#post-7397367)
 * sorry do you mean wp-admin folder, if so i have already put one there and the
   info.php is still directing me to my C Drive.
 * Could you give a bit for info
 *  [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * (@kmessinger)
 * [10 years ago](https://wordpress.org/support/topic/phpini-file-issue/#post-7397371)
 * Are you running a Windows server?
 *  Thread Starter [sharid](https://wordpress.org/support/users/sharid/)
 * (@sharid)
 * [10 years ago](https://wordpress.org/support/topic/phpini-file-issue/#post-7397373)
 * How would I check? can i do this in my Cpanal as it too late to ring the company
   now,
 * I’m on windows if that helps. lol have a laugh on my expence
 *  Thread Starter [sharid](https://wordpress.org/support/users/sharid/)
 * (@sharid)
 * [10 years ago](https://wordpress.org/support/topic/phpini-file-issue/#post-7397374)
 * Does this help, its from the info.php file
 * System Windows NT WEB217 6.3 build 9600 (Windows Server 2012 R2 Standard Edition)
   i586
 * Build Date Mar 31 2016 14:48:04
 * Compiler MSVC11 (Visual C++ 2012)
 * Architecture x86
    Configure Command
 * Server API CGI/FastCGI
 * Virtual Directory Support disabled
 * Configuration File (php.ini) Path C:\Windows
 * Loaded Configuration File C:\Program Files (x86)\PHP\v5.6\php.ini
 *  [MarkRH](https://wordpress.org/support/users/markrh/)
 * (@markrh)
 * [10 years ago](https://wordpress.org/support/topic/phpini-file-issue/#post-7397384)
 * Might go into Windows Folder Options – View and make sure that show hidden system
   files and folders is checked incase the \PHP\ folder is hidden for some reason.
 *  [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * (@kmessinger)
 * [10 years ago](https://wordpress.org/support/topic/phpini-file-issue/#post-7397388)
 * See if you have a phpConfig or a phpVariables icon on your cPanel. If so use 
   that to increase memory. If not use the file manager that is on cPanel. Create
   a new file named php.ini in the root directory (sometimes called public_html).
   Add this to the file, `memory_limit = 64M ;` and save.
 * Also there are other ways in WordPress. Add this, `define('WP_MEMORY_LIMIT', '
   64M');` to your wp-config.php file.
 * None of this might work if your host does not allow it. You will have to ask 
   them to increase the memory limit.
 *  Thread Starter [sharid](https://wordpress.org/support/users/sharid/)
 * (@sharid)
 * [10 years ago](https://wordpress.org/support/topic/phpini-file-issue/#post-7397532)
 * Hi
 * I am still getting this problem, even after following the advice give.
 * **The uploaded file exceeds the upload_max_filesize directive in php.ini. **
 * I even asked my server company to reinstall my wordpress today, which they have.
   I told them of above problem. I recreated an **info.php** file and it keeps pointing
   to this path for the **php.ini** file
 * **Loaded Configuration FileC:\Program Files (x86)\PHP\v5.6\php.ini **
 * Can someone explain to me why it is doing this as I have installed a **php.ini
   file in the route directory**
 * When I follow this path in my C drive there is no **\PHP\V5.6\php.ini** folders
   or files **and no they are not hidden.
    
   
    Can someone explain why my wordpress
   is looking for the file in my C drive when there is one in the route directory.
 *  [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * (@kmessinger)
 * [10 years ago](https://wordpress.org/support/topic/phpini-file-issue/#post-7397533)
 * > When I follow this path in my C drive there is no \PHP\V5.6\php.ini folders
   > or files and no they are not hidden.
 *  Are you looking at your computer for the c drive or the server?
 *  Thread Starter [sharid](https://wordpress.org/support/users/sharid/)
 * (@sharid)
 * [10 years ago](https://wordpress.org/support/topic/phpini-file-issue/#post-7397534)
 * looking for it on my computer
 *  [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * (@kmessinger)
 * [10 years ago](https://wordpress.org/support/topic/phpini-file-issue/#post-7397538)
 * The php.ini file is on the server and you may not have access to it.
 * > is one in the route directory
 *  Here you are talking about the server correct?
 * Did you ask your host to increase the memory size in the php.ini file?
 *  Thread Starter [sharid](https://wordpress.org/support/users/sharid/)
 * (@sharid)
 * [10 years ago](https://wordpress.org/support/topic/phpini-file-issue/#post-7397540)
 * yes I asked them to increase the memory,
 * I could not see a php.ini in the Route Directory so i put one in there myself
   with extra memory.
 * why is it looking into the C drive for the file
 *  Thread Starter [sharid](https://wordpress.org/support/users/sharid/)
 * (@sharid)
 * [10 years ago](https://wordpress.org/support/topic/phpini-file-issue/#post-7397541)
 * Even though the route directry php.ini file has increased memory and i have created
   a php.ini with extra memory for this path
    ** Loaded Configuration FileC:\Program
   Files (x86)\PHP\v5.6\php.ini
 * my **info.php ** file is still showing this
    upload_max_filesize 2M 2M upload_tmp_dir
   C:\Windows\temp C:\Windows\temp
 *  [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * (@kmessinger)
 * [10 years ago](https://wordpress.org/support/topic/phpini-file-issue/#post-7397543)
 * This, `Loaded Configuration FileC:\Program Files (x86)\PHP\v5.6\php.ini` is on
   the Windows Server. and you probably can’t override it.
 * Ask your host to put you on a Linux server.
 *  [MarkRH](https://wordpress.org/support/users/markrh/)
 * (@markrh)
 * [10 years ago](https://wordpress.org/support/topic/phpini-file-issue/#post-7397547)
 * Ok, I thought this was on your local Windows PC. They need to configure the server
   to allow you to load your own PHP.INI in your blog’s directory or they need to
   modify the server’s PHP.INI themselves.

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/phpini-file-issue/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/phpini-file-issue/page/2/?output_format=md)

The topic ‘php.ini file issue’ is closed to new replies.

## Tags

 * [php.ini](https://wordpress.org/support/topic-tag/php-ini/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 16 replies
 * 4 participants
 * Last reply from: [macmikeal](https://wordpress.org/support/users/macmikeal/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/phpini-file-issue/page/2/#post-8707796)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
