Find limit. On the keyboard, click: return to command\/ When you enter memory_limit, you will be redirected to the memory limit section. Now, click Insert on the keyboard and enter the required memory limit. After entering the desired number, click ESC on the keyboard to exit insertion mode. On the keyboard, click: return to the commands section. Then enter x, and click enter on the keyboard. This will save all changes. Finally, enter service httpd restart to restart the system and perform the changes. 3 In addition to using htaccess to increase PHP’s memory limit, the above mentioned methods. You can also increase the PHP memory limit in the htaccess file. As you can see. The htaccess file needs to be changed slightly. You can find the file in the root directory. In other words, the method of accessing the host is not important. Whether it is cPanel or FTP. You just need to access the htaccess file The htaccess file is dotfile. By default, some hosting providers hide the file. Male FTP to access this file, FileZilla must be configured to display hidden files. To do this, click the server tab and select force hidden file display. The best way is to the file to your computer. Then edit and upload to the host again. Therefore, the first step is to the file. Open the htaccess file and find php_value memory_limit512m. If not found in the file. Can be added to the htaccess file. As you know, the memory limit here is set to 512MB. You can change this number to the desired amount. Changes. Please check whether it is saved in the htaccess file. Upload the file to the host again. After uploading the file, refresh the root directory. Then refresh the site and verify that the error has been fixed. 4. in cPanel, another method to increase PHP memory limit is cPanel. In this method, there are two main ways to change PHP memory. The first method is to log in to cPanel and go to the software section. Click Select PHP version. Then click switch to PHP options. Finally, click memory_limit to increase the PHP memory limit. The second method is to go from the cPanel to the software part. Then click multiphp ini editor. Scroll down on the open page to find memory_limit. Here, you can easily change the PHP memory limit. 5. in Plesk, first introduce the Plesk that increases the PHP memory limit. What is presk? Plesk is the managed control panel. Plesk is available on both windows and Linux. You can control the activity of the server through the graphical interface of Plesk. New site creation, resellers, e-mail accounts, and DNS entries are only part of the functionality provided by Plesk. To use Plesk to increase the PHP memory limit of a website, you must first log in. Like cPanel, you will receive a user name and password when you purchase WordPress hosting. Log in to the Plesk hosting panel with the given user name and password. After logging in to Plesk, to increase the PHP memory limit, please follow the following path. Plesk> domain >example. Com>php settings >memory_limit, and then change the memory_limit. As you can see, this method is only effective if you want to increase the PHP memory limit for a specific web site. However, to increase the PHP memory limit of the server, you must follow the following path: P
Oh.