PHP

You are here:
Estimated reading time: < 1 min

List Compiled PHP Modules from Command Line

Single PHP Version:

php -m

Multiple PHP Versions:

/opt/cpanel/ea-php73/root/usr/bin/php-cgi -m

Source

CORS Issue

header('Access-Control-Allow-Origin: *');
header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept");
header('Access-Control-Allow-Methods: GET, POST, PUT, DELETE');

Source

Increase default Apache/PHP Limits

Add these lines to .htaccess

php_value upload_max_filesize 90M
php_value post_max_size 90M
php_value memory_limit 200M

Manual Symlink

symlink('/var/www/app.fullconnect.com.mx/cochi-crm/storage/app/public', '/var/www/app.fullconnect.com.mx/cochi-crm/public/storage');

Source

How to install all required PHP extensions for Laravel?

sudo apt install openssl php-common php-curl php-json php-mbstring php-mysql php-xml php-zip

Source

Was this article helpful?
Dislike 0
Views: 55