Guides tagged “php”
Step-by-step MdmHost guides about php, sorted A-Z.
69 guides · page 3 of 4
Increase PHP upload size, memory and execution time for WordPress
Raise PHP limits for WordPress in cPanel: upload_max_filesize, post_max_size, memory_limit, max_execution_time and max_input_vars, and check they took effect.
Install a LAMP stack by hand (Apache, MariaDB, PHP) on AlmaLinux or Ubuntu
Build a LAMP server without a control panel: install Apache, MariaDB and PHP on AlmaLinux 9 or Ubuntu 24.04, create a virtual host, secure it and add free SSL.
Install and enable PHP extensions in Plesk (admin)
Enable bundled PHP extensions per PHP version in Plesk, install extra ones such as Redis, Imagick or ionCube with PECL or packages, and verify they load.
Install and secure Memcached on Ubuntu or AlmaLinux
Install the Memcached object cache and its PHP extension on Ubuntu or AlmaLinux, bind it to localhost, size its memory, connect WordPress or apps and verify it works.
Install multiple PHP versions on Ubuntu and Debian
Add Ondřej Surý's PHP repository, install PHP 8.2, 8.3 and 8.4 side by side with PHP-FPM, and switch the command-line PHP version with update-alternatives.
Install multiple PHP versions on Ubuntu with the ondrej PPA
Add the ondrej/php PPA on Ubuntu, install PHP 7.4 to 8.4 side by side with FPM, choose the CLI default, assign versions per site in Apache or Nginx, and keep them updated.
Install PHP 8.x on AlmaLinux and Rocky Linux with Remi
Enable EPEL and the Remi repository on AlmaLinux or Rocky Linux 8 and 9, choose a PHP module stream, install PHP-FPM with common extensions, and run extra PHP versions side by side.
Install PHP extensions on cPanel (EasyApache 4 and PECL)
Add PHP extensions such as intl, imagick or redis on a cPanel server with EasyApache 4 packages or the WHM PECL installer, then confirm them with php -m.
Install WordPress on a LEMP stack (Nginx, MariaDB, PHP)
Build a LEMP stack on Ubuntu or Debian, create the database, configure wp-config.php and Nginx for PHP-FPM, then finish the WordPress installer over HTTPS.
LiteSpeed LSAPI for PHP explained
How LiteSpeed's LSAPI PHP handler works, why it is faster than CGI and suPHP, how it relates to PHP-FPM and CloudLinux limits, and what to do about PHP errors.
Manage multiple PHP versions on Ubuntu with PHP-FPM
Install several PHP-FPM versions on one Ubuntu server, set the CLI default, and point each Nginx site at the PHP version it needs.
Manage PHP dependencies with Composer in Plesk
Use the Plesk PHP Composer extension to install and update packages from composer.json, choose the PHP version, set environment variables, and run Composer over SSH.
MIME types and Apache handlers in cPanel: serve files correctly
Fix files that download instead of opening, or show as text, by adding MIME types and Apache handlers in cPanel, and learn the safe way to run PHP in .html files.
Read the error log and raw access logs in cPanel
Find the cause of website errors with cPanel's Errors tool, PHP error_log files and Raw Access logs, and learn how to read common log lines.
Run cron jobs with the right PHP version on CloudLinux
Make cPanel cron jobs use the same PHP version as your website on CloudLinux: correct binary paths, wget versus PHP CLI, logging output and fixing cron errors.
Run PHP and WordPress with Caddy and PHP-FPM
Serve PHP sites and WordPress from Caddy using the php_fastcgi directive and PHP-FPM, with working permalinks, larger upload limits and wp-config.php kept private.
Run PHP-FPM with Apache using proxy_fcgi and mpm_event
Move Apache from mod_php and the prefork MPM to PHP-FPM with mpm_event and proxy_fcgi. Use less memory, serve more visitors and pick a PHP version per virtual host.
Select PHP Version in cPanel: enable extensions and PHP options (CloudLinux)
Use the CloudLinux Select PHP Version tool in cPanel to choose the account PHP version, enable extensions such as ionCube, intl or imagick, and change PHP options.
Set up scheduled tasks (cron jobs) in Plesk
Create scheduled tasks in Plesk to run a command, fetch a URL or run a PHP script on a schedule, with notifications, logging and common cron mistakes explained.
Speed up WordPress on MdmHost hosting
A practical checklist to make WordPress load fast on LiteSpeed hosting: caching, PHP version, images, plugins, database clean-up and measuring results.
Browse by topic
- Getting startedYour first hour with a new server: access, logins and basics.69 guides
- cPanelFiles, databases, email, domains and every cPanel tool, step by step.37 guides
- WHM & resellingWHM, packages, reseller accounts, WHMReseller and running a hosting brand.49 guides
- WordPressInstall, secure, speed up, migrate and fix WordPress sites.40 guides
- Email & webmailMailboxes, webmail, forwarders, spam filters and email delivery.37 guides
- DomainsRegistering, transferring and managing domains and nameservers.20 guides
- SSL certificatesFree AutoSSL, Let's Encrypt, paid certificates and HTTPS.19 guides
- CloudLinuxCloudLinux setup and use: LVE limits, CloudLinux Manager, CageFS and PHP/Node.js selectors.31 guides
- LiteSpeedLiteSpeed Web Server, LSCache and the LiteSpeed Cache plugin: install, settings and tuning.30 guides
- Imunify360Malware scanning, firewall and proactive defence with Imunify360.23 guides
- SoftaculousInstall, update, clone and back up apps with Softaculous.23 guides
- WP SquaredcPanel's WordPress platform: sites, plugins, staging and backups.9 guides
- SitePadBuild and publish websites with the SitePad builder.9 guides
- SitejetDesign, edit and publish sites with the Sitejet builder.9 guides
- WHMResellerAlpha and master resellers with WHMReseller: install, setup and use.12 guides
- VirtFusionInstall, set up and manage VirtFusion: hypervisors, packages, servers and WHMCS integration.7 guides
- VirtualizorManage your VPS with Virtualizor: power, OS reinstall, VNC, IPs and backups.30 guides
- PleskWebsites, email, databases and settings in the Plesk panel.52 guides
- DirectAdminUsers, domains, email and reseller tools in DirectAdmin.40 guides
- WHMCSBilling, automation, products and client management with WHMCS.51 guides
- Control panelscPanel & WHM, Plesk, DirectAdmin and other panels on your VPS.106 guides
- SecurityKeys, passwords, firewalls and keeping a server patched.115 guides
- Networking & DNSIP addresses, reverse DNS, ports and traffic.34 guides
- Websites & appsWeb servers, WordPress, PHP, Node.js, SSL and app hosting.52 guides
- DatabasesMySQL, MariaDB, PostgreSQL, Redis and MongoDB on a VPS.64 guides
- Billing & accountInvoices, renewals, the client area and your account.9 guides
- TroubleshootingWhen something is not working: checks and fixes.68 guides
- Linux VPSSSH, packages, services and everyday Linux administration.70 guides
- Windows VPS & RDPRemote Desktop, Windows Server settings and Admin RDP tips.58 guides
- Docker & DevOpsContainers, Git deploys, automation, monitoring and backups.58 guides
Still stuck?
Ask MdmHost AI for a quick answer, or open a ticket and our team will take a look. We are here 24/7.
