$ sudo dnf install httpd httpd-tools
$ sudo systemctl start httpd
$ sudo systemctl enable httpd
$ sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
$ sudo dnf install -y https://rpms.remirepo.net/enterprise/remi-release-8.rpm
$ sudo dnf module list php
$ sudo dnf module reset php
$ sudo dnf module enable php:remi-8.1
$ sudo dnf install php php-opcache php-gd php-curl php-mysqlnd php-mbstring php-xml php-pear php-fpm php-mysql php-pdo php-json php-zip php-common php-cli php-xmlrpc php-xml php-tidy php-soap php-bcmath php-devel
$ sudo systemctl start php-fpm
$ sudo systemctl enable php-fpm
$ sudo setsebool -P httpd_execmem 1
$ sudo dnf install mysql-server
$ sudo systemctl start mysqld
$ sudo systemctl enable mysqld
$ mysql -u root -h localhost -p
mysql> CREATE USER 'usrjoomla'@'localhost' IDENTIFIED BY 'pAss1@7k(90432';
mysql> CREATE DATABASE joomla_db;
mysql> GRANT ALL PRIVILEGES ON joomla_db.* TO 'usrjoomla'@'localhost';
mysql> exit
$ wget https://downloads.joomla.org/us/cms/joomla4/4-2-5/Joomla_4-2-5-Stable-Full_Package.tar.gz
$ sudo mkdir -p /var/www/html/joomla
$ sudo tar -xvf Joomla_4-2-5-Stable-Full_Package.tar.gz -C /var/www/html/joomla
$ sudo chown -R apache:apache /var/www/html/joomla/
$ sudo chmod -R 755 /var/www/html/joomla/
$ sudo nano /etc/httpd/conf.d/joomla.conf
<VirtualHost *:80>
ServerAdmin admin@vmlocal.local
DocumentRoot /var/www/html/joomla/
ServerName vmlocal.local
ServerAlias vmlocal.local
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/html/joomla/>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
$ sudo apachectl -t
$ sudo semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/html/joomla(/.*)?"
$ sudo semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/joomla/installation/configuration.php-dist'
$ sudo semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/joomla/installation'
$ sudo restorecon -Rv /var/www/html/joomla
$ sudo restorecon -v /var/www/html/joomla/installation/configuration.php-dist
$ sudo restorecon -Rv /var/www/html/joomla/installation
$ sudo chown -R apache:apache /var/www/html/joomla
$ sudo systemctl restart httpd
Open http://vmlocal.local
Setup Joomla
su1234
pAss1@7k(90432
Open Administrator
XML updates show needed updates or no updates needed.
Shows these errors:
Warning
Update: Could not open update site #1 "Joomla! Core", URL: https://update.joomla.org/core/list.xml
Update: Could not open update site #2 "Accredited Joomla! Translations", URL: https://update.joomla.org/language/translationlist_4.xml
Update: Could not open update site #3 "Joomla! Update Component", URL: https://update.joomla.org/core/extensions/com_joomlaupdate.xml
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: RedHatEnterprise
Description: Red Hat Enterprise Linux release 8.7 (Ootpa)
Release: 8.7
Codename: Ootpa
PHP: 8.1
MYSQL Ver 8.0.30 for Linux on x86_64
Server version: Apache/2.4.37 (Red Hat Enterprise Linux)
I have tested this implementation on Debian 11.5 with PHP 8.1 and mysql 8.0.31 and it does not have this error looking for the XML file.
Labels |
Removed:
?
|
Labels |
Added:
No Code Attached Yet
|
brianteeman you might think that, but if you review this post and comparisons, there is a pretty good case the Joomla is not performing the get/post the same way on these new Red Hats and Rocky spins. https://forum.joomla.org/viewtopic.php?f=811&t=997748
What happens when you do a plain curl call to the update server XMLs?
SELinux on both Red Hat and Rocky are blocking updates. I set to Permissive via # setenforce 0 and now the updates are working. I am not sure where to allow this yet while keeping SELinux enforced, but I am working on it. The help page https://www.linuxshelltips.com/install-joomla-rhel/ did not have the SELinux settings for these updates.
So false alarm no bug just a setting in SELinux:
~]# setsebool -P 'httpd_can_network_connect' on
closing thanks
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-11-18 00:23:47 |
Closed_By | ⇒ | zero-24 |
Exactly what I said.
This is a server configuration issue. Not a joomla issue