You can get started with your new Wordpress site in a few clicks.
- Add a VPS profile
- Provision a server, selecting the version of PHP you want installed (7.2, 7.3, or 7.4) and the database type you want installed (MySQL 5.7/8 or MariaDB) - typically, the version of PHP you'll want to install depends on the PHP versions that any WordPress plug-ins you might want to use support.
- After your server is provisioned, create a Wordpress site
- After the WordPress site is successfully installed, navigate to your Wordpress site's URL and complete the setup process
Advanced setup configurations
Sometimes, you may need to add a bit more juice to WordPress by editing PHP configurations. For example, PHP defaults uploads at a maximum of 2 mb. That is to encourage better performance with smaller files sizes; however, often times you may want to download and install a plugin that exceeds this limit.
Edit PHP configurations
- In Cleaver, navigate to the server where you want to edit PHP configs
- Select Services
- Select wrench icon next to the PHP version you wish to edit
- Edit the settings to your specifications and select update when finished
This action will update the settings in the php.ini file.
Increase file upload example
To increase the upload limits, you will likely want to increase the max_input_time, upload_max_filesize, and memory_limit variables. Such as:
- max_input_time = 900
- upload_max_filesize = 128m
- memory_limit = 256m
After updating these configurations, the next thing to do is match nginx file upload limits.
In the server's services tab -
- Add client_max_body_size 128m;
- Save file
- Restart nginx
This then should allow you to upload larger file sizes to your WordPress site. If you are curious as to if the configs were updated and to what other configs you might want to alter for your WordPress site, Wordpress has a section that displays current configs located in the WordPress admin dashboard > tools > site health > info > server tab.