Installation issues on Red Hat EL 9.4

Adam Lewis Posted in Technical Support 2 days ago

Hi. I'm brand new here. I've spun up my own RHEL 9.4 Server. I've installed all the prereqs and get to the validation page which looks pretty good except it for the complains about correct ownership and CONFIGURATION DIRECTORY IS NOT WRITEABLE. I had this working on Ubuntu. My webserver ID on RHEL is apache, and it owns the directory. Is my issue the validation is looking for www-data as the owner?

Replies
us Adam Lewis Replied 4 hours ago

Yes, user and group is apache in php-fpm.d/www.conf

us OFN Admin Replied 21 hours ago

Does the www.conf for php-fpm reflect apache as user and group?

us Adam Lewis Replied 22 hours ago

PHP 8.0.30 with php-fpm

us OFN Admin Replied 24 hours ago

On apache2 are you using mod php8,3 or php8.3-fpm? (if not what version of PHP is your RHEL server running)

Also curious if this may work for you: sudo chown -R apache:apache /var/www/

us Adam Lewis Replied 1 day ago

verifyperms.php comes back with positive results:

My webserver is running under the user apache (default for RHEL)

id apache
uid=48(apache) gid=48(apache) groups=48(apache)

https://realgenx.onprem.radiogenx.com/verifyperms.php
The owner-id of your webserver process is: 48
....
Scanning: /var/www/html/realgenx
No permission problems found.

https://realgenx.onprem.radiogenx.com/verifyperms.php?path=../rgx_community_data
The owner-id of your webserver process is: 48
....
Scanning: /var/www/html/rgxcommunitydata
No permission problems found.

I still feel like the validation page is unhappy that the webserver is running under the id apache and not www-data. Wondering if www-data is hardcoded into a config file somewhere?

German Michael Zülsdorff Replied 1 day ago

There's a llttle utility named verifyperms.php which comes bundled with the
System Info component to assist you solving issues like that

us Adam Lewis Replied 2 days ago

Good suggestion OFN but that search didn't return anything. It looks like the process name is httpd and the user is apache. here are a few httpd running as root though.

ps aux | grep httpd
root 49649 0.0 0.3 22096 14996 ? Ss 10:52 0:00 /usr/sbin/httpd -DFOREGROUND
apache 49650 0.0 0.1 23972 7848 ? S 10:52 0:00 /usr/sbin/httpd -DFOREGROUND
apache 49651 0.0 0.3 1573280 14152 ? Sl 10:52 0:02 /usr/sbin/httpd -DFOREGROUND
apache 49652 0.0 0.3 1442144 15832 ? Sl 10:52 0:01 /usr/sbin/httpd -DFOREGROUND
apache 49653 0.0 0.3 1442144 16052 ? Sl 10:52 0:01 /usr/sbin/httpd -DFOREGROUND
apache 49830 0.0 0.3 1442144 15076 ? Sl 10:52 0:01 /usr/sbin/httpd -DFOREGROUND
root 50399 0.0 0.0 221796 2304 pts/0 S+ 17:12 0:00 grep --color=auto httpd

us OFN Admin Replied 2 days ago

Believe apache2 default user on RHEL is httpd. What does ps aux | grep apache2 say?

Indonesian Arsalan Shah Replied 2 days ago

Not used RHEL so not sure. I am not sure what is apache user on RHEL and you have any open base directory issues or not.

Better use Ubuntu