Статті

Changing Managed Hosting PHP Settings and Versions

On ruachost.com, you can adjust PHP settings and switch PHP versions depending on your hosting...

Changing the PHP version for a specific directory

By default, when you set the PHP version in cPanel using the PHP Selector, that version applies...

Custom PHP settings per directory with .user.ini files

On ruachost.com, you can override PHP configuration settings on a per‑directory basis using...

Custom php.ini files

A php.ini file contains directives that control many aspects of PHP’s behavior. On ruachost.com,...

Determining if APC is installed on a server

The Alternative PHP Cache (APC) is a PHP extension that provides opcode caching, improving...

Determining if a PHP function is available

Sometimes you need to check whether a specific PHP function is enabled on your hosting account....

Enabling PHP opcode caching

Opcode caching improves PHP performance by storing precompiled script bytecode in memory. This...

Fixing the '500 Internal Server Error' message while running PHP

A 500 Internal Server Error indicates that something went wrong on the server while executing a...

Fixing the 'Unable to allocate memory for pool' PHP error message

When running PHP applications, you may encounter the error: Unable to allocate memory for...

Fixing the "String could not be parsed as XML" PHP error message

When working with XML data in PHP, you may encounter the error: Fatal error: Uncaught...

Hardening PHP 7 and below using cPanel

If your application is still running on PHP 7.0 or earlier, it is important to harden your...

Installing and configuring PEAR packages

The PHP Extension and Application Repository (PEAR) provides reusable PHP libraries that simplify...

Installing composer

Composer is a dependency manager for PHP that allows you to install and manage libraries and...

Optimizing Symfony using APC

The Alternative PHP Cache (APC) is a PHP extension that provides opcode caching and object...

PHP

PHP (PHP: Hypertext Preprocessor) is a widely used, open‑source server‑side scripting language...

PHP script basics

PHP is a server‑side scripting language that allows you to create dynamic web pages. On...

Resolving common PHP upgrade issues

When upgrading PHP versions on ruachost.com, you may encounter compatibility problems with...

Resolving the 'Allowed memory size exhausted' PHP error message

When running PHP applications such as WordPress, Drupal, or custom scripts, you may encounter the...

Running PHP Scripts from Cron Jobs

Cron jobs allow you to schedule tasks to run automatically at specific intervals. On...

Sending E‑Mail Using PHPMailer

PHPMailer is a popular PHP library that makes it easier to send e‑mail messages with advanced...

Sending e-mail messages using PHP

PHP provides several methods for sending e‑mail messages from scripts. On ruachost.com, you can...

Setting the PHP Include Path

The PHP include path tells PHP where to look for files when using functions like include() and...

Setting up custom .htaccess files for PHP settings

The .htaccess file is a configuration file used by Apache web servers to override default...

Specifying the MySQL character set in PHP

When connecting to a MySQL database, it is important to specify the correct character set to...

Using PHP sessions

PHP sessions allow you to store and manage information about visitors as they navigate your...

Using a custom php.ini file for cPanel cron jobs

On ruachost.com, PHP scripts run under different environments depending on how they are executed....

Using the Exif extension in PHP

The Exif (Exchangeable Image File Format) extension in PHP allows developers to read metadata...

Using the internationalization (intl) extension in PHP

The internationalization (intl) extension in PHP provides tools for formatting and processing...

Using the ionCube Loader with different PHP versions

The ionCube Loader is a PHP extension that decodes and executes encoded PHP files at runtime....

Using the ionCube PHP Loader

The ionCube PHP Loader is a PHP extension that decodes and executes files encoded with the...

Viewing PHP settings with the phpinfo() function

The phpinfo() function is a built‑in PHP command that outputs detailed information about the PHP...

ionCube PHP Loader unavailable on PHP 8.0

The ionCube PHP Loader is a PHP extension that decodes and executes encoded files at runtime....

Powered by WHMCompleteSolution