![]() PHP can generate a page called phpInfo that enables you to check all your server configuration settings without having to navigate the php.ini file. Then you can return to the MAMP control panel and click on Start Servers. When you’re done, save the changes to php.ini and close the file. In any case, you can set whatever values that you want for either directive, as long as they follow the guidelines we outlined earlier. After all, it’s rare that you’ll find yourself in a situation where you need to upload files of that size to a WordPress website. In most cases, you don’t need to go higher than 10 to 20 MB for either setting. Now repeat the same process for post_max_size and upload_max_filesize, using a higher value for the former. You can also go higher if your computer has the resources for it, which shouldn’t be a problem with modern devices. Both 128 and 256 MB give your WordPress installation more than enough resources to execute any scripts or upload the files that you’ll need to use. Notice that the number is followed by a single “M” instead of an “MB”. To locate that directive, use your text editor’s search functionality and modify the value after the = sign. Here’s what that value looks like in our php.ini file: We recommend setting a memory limit of 128 or 256 MB. Go ahead and open it using your favorite text editor, and you’ll see something like this:Īs we explained in the last section, you need to look for the following three directives: Next, you can return to the conf directory and access the folder that correlates to that version. To double-check which version of PHP you’re using, open the MAMP control panel, go to MAMP > Preferences > PHP, and then look at the version number next to “Standard Version”:Ĭhecking which PHP version you’re using in MAMP. By default, your MAMP installation should use the latest PHP version, and you’ll want to access the folder that corresponds to it. If you navigate to the conf directory, you’ll notice that it includes several folders for different PHP versions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |