pecl install mcrypt
configure: error: mcrypt.h not found. Please reinstall libmcrypt
ERROR: `/tmp/pear/temp/mcrypt/configure --with-php-config=/usr/bin/php-config --with-mcrypt' failed
apt install libmcrypt-dev
pecl install mcrypt
configure: error: mcrypt.h not found. Please reinstall libmcrypt
ERROR: `/tmp/pear/temp/mcrypt/configure --with-php-config=/usr/bin/php-config --with-mcrypt' failed
apt install libmcrypt-dev
a2enmod ssl
In case of php-fpm try: fastcgi_param HTTPS on;
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
supervisorctl stop all
upstream _php {
server unix:/var/run/php-fpm/php-fpm.sock;
}
server {
server_name 192.168.1.100;
root /path/to/root;
index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
location / { deny all; }
location = / { }
location = /index.php { fastcgi_pass _php; }
location /phpmyadmin/ { }
location ~ ^/phpmyadmin/.*\.php$ { fastcgi_pass _php; }
}
/etc/php/7.4/fpm/pool.d/user.conf
php_admin_value[session.save_handler] = redis
php_admin_value[session.save_path] = "tcp://127.0.0.1:6379?persistent=1&weight=1&database=2"
File not found.
Make sure SCRIPT_FILENAME same location like root:
server {
server_name 192.168.1.100;
location / {
root /var/www/html;
location ~* \.php$ {
fastcgi_pass unix:/var/run/php/php.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
}
}
}
vi /etc/php-fpm.d/www.conf
php_admin_value[error_reporting] = E_ALL & ~E_NOTICE & ~E_WARNING & ~E_STRICT & ~E_DEPRECATED
/usr/sbin/php-fpm --daemonize --fpm-config /etc/php/fpm/php-fpm.conf
php-fpm -t
php-fpm -tt
Apache Require IP address
Require ip 10.1.2.3
Require ip 10.1.2.1 10.1.2.2
Require ip 10.1.0.0/24
sdiff <(mysql -B -e "show tables;" -D a_database) <(mysql -B -e "show tables;" -D b_database)
skip same record from first col:
sdiff <(mysql -B -e "show tables;" -D a_database) <(mysql -B -e "show tables;" -D b_database) | grep '[<>]'
disable_functions = proc_open,phpinfo,show_source,system,shell_exec,passthru,exec,popen
bind-address=127.0.0.1