Hola, te describo el servidor:
-
Ionos VPS Cloud M: 2 GB RAM, 2vCores, 80 GB SSD
- Plesk Obsidian 18.0.43
- Ubuntu 20.04.4 LTS
- PHP 7.4.29
- Base de Datos MariaDB 10.3.34
-
Apache
-
Prestashop:
- Prestashop 1.7.8.5
- Instalado NUEVO como Aplicación directamente desde Plesk.
El servidor es totalmente administrado por mí, puedo acceder por SSH y puedo configurar los parámetros de PHP, de Plesk, de Ubuntu, etc.
Esta es la Configuración de PHP que tengo aplicada: /var/www/vhosts/system/tengoqueprobarlo.com/etc/php.ini
Aquí he cambiado estos parámetros para que no se me quede sin memoria y que no se supere el tiempo de espera del servidor, cuando importo unos cuantos miles de productos:
memory_limit = 1024M
max_execution_time = 3000
max_input_time = "-1"
post_max_size = 20M
upload_max_filesize = 1024M
; ATTENTION!
;
; DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
; SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.
[PHP]
SMTP = localhost
allow_url_fopen = On
allow_url_include = Off
auto_append_file =
auto_globals_jit = On
auto_prepend_file =
bcmath.scale = 0
cli_server.color = On
default_charset = "UTF-8"
default_mimetype = "text/html"
default_socket_timeout = 60
disable_classes =
disable_functions = "opcache_get_status"
display_errors = Off
display_startup_errors = Off
doc_root =
enable_dl = Off
engine = On
error_reporting = 22519
expose_php = On
file_uploads = On
ignore_repeated_errors = Off
ignore_repeated_source = Off
implicit_flush = Off
ldap.max_links = -1
log_errors = On
log_errors_max_len = 1024
mail.add_x_header = Off
max_execution_time = 3000
max_file_uploads = 20
max_input_time = "-1"
max_input_vars = 10000
memory_limit = 1024M
mysqli.allow_persistent = On
mysqli.default_host =
mysqli.default_port = 3306
mysqli.default_pw =
mysqli.default_socket =
mysqli.default_user =
mysqli.max_links = -1
mysqli.max_persistent = -1
mysqli.reconnect = Off
mysqlnd.collect_memory_statistics = Off
mysqlnd.collect_statistics = On
odbc.allow_persistent = On
odbc.check_persistent = On
odbc.defaultbinmode = 1
odbc.defaultlrl = 4096
odbc.max_links = -1
odbc.max_persistent = -1
open_basedir = "/var/www/vhosts/tengoqueprobarlo.com/:/tmp/"
output_buffering = 4096
pdo_mysql.default_socket =
pgsql.allow_persistent = On
pgsql.auto_reset_persistent = Off
pgsql.ignore_notice = 0
pgsql.log_notice = 0
pgsql.max_links = -1
pgsql.max_persistent = -1
post_max_size = 20M
precision = 14
register_argc_argv = Off
register_globals = disabled
report_memleaks = On
request_order = "GP"
serialize_precision = -1
session.auto_start = 0
session.cache_expire = 180
session.cache_limiter = nocache
session.cookie_domain =
session.cookie_httponly =
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_samesite =
session.gc_divisor = 1000
session.gc_maxlifetime = 1440
session.gc_probability = 0
session.name = PHPSESSID
session.referer_check =
session.save_handler = files
session.save_path = "/var/lib/php/sessions"
session.serialize_handler = php
session.sid_bits_per_character = 5
session.sid_length = 26
session.trans_sid_tags = "a=href,area=href,frame=src,form="
session.use_cookies = 1
session.use_only_cookies = 1
session.use_strict_mode = 0
session.use_trans_sid = 0
short_open_tag = Off
smtp_port = 25
soap.wsdl_cache_dir = "/tmp"
soap.wsdl_cache_enabled = 1
soap.wsdl_cache_limit = 5
soap.wsdl_cache_ttl = 86400
tidy.clean_output = Off
unserialize_callback_func =
upload_max_filesize = 1024M
user_dir =
variables_order = "GPCS"
zend.assertions = -1
zend.enable_gc = On
zend.exception_ignore_args = On
zlib.output_compression = Off
Y esta la Configuración de Nginx: /etc/nginx/nginx.conf
Aquí añadí estos parámetros porque me salía un error: 502 Bad Gateway Upstream sent too big header
proxy_buffers 8 16k;
proxy_buffer_size 32k;
fastcgi_buffers 8 16k;
fastcgi_buffer_size 32k;
#user nginx;
worker_processes 1;
#error_log /var/log/nginx/error.log;
#error_log /var/log/nginx/error.log notice;
#error_log /var/log/nginx/error.log info;
#pid /var/run/nginx.pid;
include /etc/nginx/modules.conf.d/*.conf;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
#access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#tcp_nodelay on;
#gzip on;
#gzip_disable "MSIE [1-6]\.(?!.*SV1)";
server_tokens off;
include /etc/nginx/conf.d/*.conf;
proxy_buffers 8 16k;
proxy_buffer_size 32k;
fastcgi_buffers 8 16k;
fastcgi_buffer_size 32k;
}
# override global parameters e.g. worker_rlimit_nofile
include /etc/nginx/*global_params;
Muchas gracias por tu ayuda.