diff --git a/etc/nginxServer.conf.tmpl b/etc/nginxServer.conf.tmpl index 9cfc144..2daead0 100644 --- a/etc/nginxServer.conf.tmpl +++ b/etc/nginxServer.conf.tmpl @@ -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; diff --git a/installer/ogboot_installer.py b/installer/ogboot_installer.py index 4c190d1..c926043 100755 --- a/installer/ogboot_installer.py +++ b/installer/ogboot_installer.py @@ -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)