Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Almalinux 9 compatible? #1494

Open
ribo72 opened this issue Oct 9, 2024 · 14 comments
Open

Almalinux 9 compatible? #1494

ribo72 opened this issue Oct 9, 2024 · 14 comments

Comments

@ribo72
Copy link

ribo72 commented Oct 9, 2024

Hello, i use almalinux 9 with cpanel. Is engintron is compatible to install it?

@fevangelou
Copy link
Member

Yes it is.

@ribo72
Copy link
Author

ribo72 commented Nov 19, 2024

I installed engintron and it worked. But suddenly last night stopped to work. Also as i saw, last night the system core libraries or services have been updated in cpanel. I think that also Kernel have been updated.
After that when i have engintron enable i get that

`

Service Name nginx
failed
The service “nginx” appears to be down.
The system failed to connect to this service’s TCP/IP port.
Service check failed to completeUnable to connect to port 80 on 127.0.0.1: Connection refused: Died
1
myserver systemd[1]: Starting The nginx HTTP and reverse proxy server...
myserver nginx[12899]: nginx: [emerg] "set" directive is not allowed here in /etc/nginx/nginx.conf:
90myserver nginx[12899]: nginx: configuration file /etc/nginx/nginx.conf test failed
myserver systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
myserver systemd[1]: nginx.service: Failed with result 'exit-code'.
myserver systemd[1]: Failed to start The nginx HTTP and reverse proxy server.

Service Name nginx
Service Status failed ⛔
Notification The service “nginx” appears to be down.
Service Check Method The system failed to connect to this service’s TCP/IP port.
Reason Service check failed to complete
Unable to connect to port 80 on 127.0.0.1: Connection refused: Died
Number of Restart Attempts 1
Startup Log myserver systemd[1]: Starting The nginx HTTP and reverse proxy server...
myserver nginx[12899]: nginx: [emerg] "set" directive is not allowed here in /etc/nginx/nginx.conf:90
myserver nginx[12899]: nginx: configuration file /etc/nginx/nginx.conf test failed
myserver systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
myserver systemd[1]: nginx.service: Failed with result 'exit-code'.
myserver systemd[1]: Failed to start The nginx HTTP and reverse proxy server.`

@fevangelou
Copy link
Member

Run "nginx -v" to get the exact version of Nginx and share it back.

Perhaps you're loading Nginx off another repo.

@fevangelou fevangelou reopened this Nov 19, 2024
@fevangelou
Copy link
Member

If that's the case, try this approach: #1483 (comment)

@alowelter
Copy link

alowelter commented Nov 19, 2024

Some servers i had same error:

# nginx -v
nginx version: nginx/1.20.1

# nginx -t
nginx: [emerg] unknown directive "http2" in /etc/nginx/conf.d/default_https.conf:15
nginx: configuration file /etc/nginx/nginx.conf test failed

# nginx -V 2>&1 | grep -- '--with-http_v2_module'
configure arguments: --prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib64/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/lib/nginx/tmp/client_body --http-proxy-temp-path=/var/lib/nginx/tmp/proxy --http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi --http-uwsgi-temp-path=/var/lib/nginx/tmp/uwsgi --http-scgi-temp-path=/var/lib/nginx/tmp/scgi --pid-path=/run/nginx.pid --lock-path=/run/lock/subsys/nginx --user=nginx --group=nginx --with-compat --with-debug --with-file-aio --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_degradation_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module=dynamic --with-http_mp4_module --with-http_perl_module=dynamic --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-http_xslt_module=dynamic --with-mail=dynamic --with-mail_ssl_module --with-pcre --with-pcre-jit --with-stream=dynamic --with-stream_ssl_module --with-stream_ssl_preread_module --with-threads --with-cc-opt='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' --with-ld-opt='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,-E'

Some wrong but i can´t see what...

@fevangelou
Copy link
Member

These are older Nginx versions (the current one is past v1.27). So you're force loading Nginx from some repo.

Try the priority solution above and re-install Engintron.

@alowelter
Copy link

SOLVED!!!

sudo dnf module enable nginx:1.24

sudo dnf remove nginx

sudo dnf install nginx

@ribo72
Copy link
Author

ribo72 commented Nov 19, 2024

SOLVED!!!

sudo dnf module enable nginx:1.24

sudo dnf remove nginx

sudo dnf install nginx

I made that, after i update-reinstall engintron and it worked.
Before i had nginx version: nginx/1.20.1
and after the nginx commands i have nginx version: nginx/1.26.2
Am i ok or must i make and anything else to have v1.27?

@alowelter
Copy link

The Almalinux repositories do not yet have version 1.27 of nginx
but with these commands that you have already executed, as soon as the repositories are updated, your nginx will be too.

@ribo72
Copy link
Author

ribo72 commented Nov 19, 2024

Thank you

@fevangelou
Copy link
Member

Engintron uses the OFFICIAL Nginx repos, not those coming from the OS ;)

@alowelter
Copy link

@fevangelou

Looking inside engintron.sh, I noticed a simple:
dnf -y install nginx

After seeing this, I tried changing the DNF module version to install a more recent version of Nginx.

It worked, but I can't say, "this is the only solution." :)

@fevangelou
Copy link
Member

The install command though comes AFTER the official repo is setup.

@alowelter
Copy link

Thank you for the clarification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants