Fueling Your Coding Mojo

Buckle up, fellow PHP enthusiast! We're loading up the rocket fuel for your coding adventures...

Popular Searches:

drupal - Can't get max_post_size php variable set in lunar pages

I'm having trouble setting the `max_post_size` PHP variable in Lunar Pages for my Drupal website. I have already tried making changes in the php.ini file, but it doesn't seem to have any effect. I need some guidance on how to properly set this variable in Lunar Pages. Any help would be greatly appreciated!

All Replies


I had a similar issue with the `max_post_size` PHP variable in Lunar Pages when I was using Drupal for my website. After trying various solutions, I found that making the changes directly in the php.ini file did not work for me either.

What ended up resolving the problem was contacting Lunar Pages' support team. They were very helpful and quickly pointed me in the right direction. Lunar Pages has a customized version of Apache running, which means you need to make the changes to the .htaccess file instead of the php.ini.

To do this, simply access your Drupal website's root directory, locate the .htaccess file, and open it for editing. Look for the following line: `php_value post_max_size`. Uncomment it by removing the "#" symbol at the beginning, and specify your desired value for the `max_post_size` variable, for example: `php_value post_max_size 64M`.

Save the changes to the .htaccess file and restart your website. This should effectively increase the max post size for your Drupal website on Lunar Pages.

Remember, if you're not comfortable making these changes yourself, it's always best to reach out to the Lunar Pages support team for assistance. They are knowledgeable and quite responsive in my experience.

I hope this solution works for you as well. Let me know if you have any further questions or if you need any additional help!


I faced a similar problem with the `max_post_size` PHP variable on Lunar Pages while setting up my Drupal website. Despite modifying the php.ini file and attempting various alternative solutions, I couldn't get it to work.

After struggling for quite some time, I stumbled upon a different approach that finally resolved the issue for me. In my case, Lunar Pages had a customized setup where the `max_post_size` variable was controlled through a user.ini file instead of the php.ini.

To resolve this, navigate to your Drupal site's root directory and search for a file named user.ini. If you can't find it, you may need to create a new file and name it "user.ini". Open the file in a text editor and add the following line: `max_post_size = 64M` (or your desired value).

Save the user.ini file and ensure it is uploaded to the server. After making this change, restart your website by either logging out and then logging back in or by restarting the webserver.

By following these steps, I successfully managed to modify the `max_post_size` PHP variable for my Drupal site on Lunar Pages. Hopefully, this method works for you too!

If you encounter any issues or have further questions, feel free to ask. I'm here to help!

New to LearnPHP.org Community?

Join the community