refs #1134 use php-fpm opengnsys
parent
edd1bb7b0a
commit
992a52edbd
|
@ -18,7 +18,7 @@ server {
|
|||
# Bloque para manejar las solicitudes a index.php
|
||||
location ~ ^/index.php(/|$) {
|
||||
include fastcgi_params;
|
||||
fastcgi_pass unix:/run/php/php__PHPVERSION__-fpm.sock; # Asegúrate de que esto sea correcto
|
||||
fastcgi_pass unix:/run/php/php__PHPVERSION__-fpm-opengnsys.sock; # Asegúrate de que esto sea correcto
|
||||
fastcgi_split_path_info ^(.+\.php)(/.*)$;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
|
|
|
@ -713,6 +713,10 @@ def modify_php_fpm_config():
|
|||
new_fpm_conf_path = f"/etc/php/{php_version}/fpm/pool.d/opengnsys.conf"
|
||||
socket_path = f"/run/php/php{php_version}-fpm-opengnsys.sock"
|
||||
|
||||
if os.path.exists(new_fpm_conf_path):
|
||||
logger.info(f"Archivo {new_fpm_conf_path} ya existe. No se realizarán modificaciones.")
|
||||
return
|
||||
|
||||
try:
|
||||
# Copiar www.conf a ogboot.conf
|
||||
subprocess.run(["cp", php_fpm_conf_path, new_fpm_conf_path], check=True)
|
||||
|
|
Loading…
Reference in New Issue