Change PHP settings for my hosting account

Generic selectors
Exact matches only
Search in title
Search in content
Filter by Categories
Account Management Help
add photos, video and audio
Add-on features and social media
Advanced
Advanced campaign settings
All about analytics
All about images
Basic steps
Calendar
Configure the Web Application Firewall (WAF)
Connect my Calendar and Online Storage to Workspace
contact support
copy files to my site
Create my email address
Customize campaign
Discover domains
discover linux hosting with cPanel
Discover Microsoft 365
Discover Online Storage
Discover Workspace Email
edit content
Email Marketing demo
expand your site with sections and pages
Explore email add-ons
Explore my account
Find server and port settings (IMAP/POP)
fine tune my website
get social
Get started with SSL certificates
Get the most out of Microsoft 365
help my site get found and monitor my metrics
Hosting & Servers
keep my account secure
Keep my email secure
know your privacy rights
Legacy
Manage your SSL certificate
Managed WordPress
Manual email configuration
Migrate and export my emails
My email account isn’t working (troubleshooting)
nameservers and DNS
online store
organize
parking, forwarding and monetizing
privacy and protection
publish my site
Quick Shopping Cart
Renew my products and services
renewals
Security
Set up a campaign
Set up email on my devices
set up my payment methods
Set up my Workspace Email account
start with the basics
Stay productive anywhere with Office apps
Streamline email tasks to help my business
transfer between accounts
transfer between registrars
Troubleshoot email and email setup
Troubleshooting
troubleshooting
Uncategorized
Upgrade and renewal options for email
Web & Classic Hosting
Website backups
Website Builder 7
Website Builder version 6
Website Security and Backups
Websites
work with databases
work with delegates
working with blogs

If the default PHP settings for your hosting account don’t meet the requirements of your website or application, follow these steps to change your PHP settings.

  1. Read our article about the filename for PHP initialization files and determine what this filename is for your hosting account. For example, if you have Windows Hosting with Plesk, this filename is .user.ini.
  2. Look for that filename in the root directory of your account. That’s the file you need to edit in the next step.If you can’t find that file in the root directory, use a text editor (for example, in cPanel use File Manager) to create the file and then save it in the root directory. Be sure you name the file as specified in our article.
  3. Edit the file: Linux Hosting | Windows Hosting | Web Hosting | Managed WordPress | VPS
memory_limit = 128M 
max_input_vars = 2000
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 120

Note: For specific info on these PHP settings, see the PHP documentation for core php.ini directives.

  1. Take the necessary steps for the changes to take effect.
  2. Use a phpinfo file to confirm the changes are complete.