PHP Configuration Fix

Current Settings

SettingCurrent ValueRecommendedStatus
memory_limit128M512M✗ Too Low
max_execution_time30120✗ Too Low
post_max_size80M64M✓ OK
upload_max_filesize20M64M✗ Too Low

How to Fix

Option 1: Using .htaccess (Recommended for shared hosting)

Create or edit .htaccess file in your web root:

php_value memory_limit 512M
php_value max_execution_time 120
php_value post_max_size 64M
php_value upload_max_filesize 64M

Option 2: Using ini_set() in code (Already done)

The code already tries to set these values:

ini_set('memory_limit', '512M');
set_time_limit(120);

✓ This is already in php/members.php and php/models/Member.php

Option 3: Edit php.ini (For full control)

Find your php.ini file location:

php -i | grep php.ini

Or check: /opt/cpanel/ea-php74/root/etc/php.ini

Edit these lines in php.ini:

memory_limit = 512M
max_execution_time = 120
post_max_size = 64M
upload_max_filesize = 64M

Then restart Apache/PHP-FPM

For XAMPP Users

  1. Open XAMPP Control Panel
  2. Click 'Config' next to Apache
  3. Select 'PHP (php.ini)'
  4. Find and change these lines:
  5. memory_limit = 512M
    max_execution_time = 120
    
  6. Save and restart Apache

Quick Test

After making changes, run the diagnostic again:

Run Diagnostic

Attempting to Set Limits Now

SettingResultNew Value
memory_limit✓ Set512M
max_execution_time✓ Set120