I am at a bit of a loss. I have seemingly walked through the guide and got all the plugins and dependencies completed. initialized the db and configured my RT_SiteConfig.pm file fine, but when I apply the suggested .conf file to the /ect/httpd/conf.d directory. I was still greeted with the generic CentOS webpage saying apache was working. I then realized I forgot to put in my server name in the first line, but after doing so and restarting httpd; I am greeted with a generic error. I posted it below. I donāt really have any experience with linux and so this is quite the learning curve. Any and all insight is greatly appreciated!
[EDIT]
Though I am getting the errorā¦ When I run /opt/rt5/sbin/rt-server --port 8080 I am not getting any errors when making changes.
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log."
here is my current conf file
<VirtualHost **<SERVERNAME>**>
### Optional apache logs for RT
# Ensure that your log rotation scripts know about these files
# ErrorLog /opt/rt5/var/log/apache2.error
# TransferLog /opt/rt5/var/log/apache2.access
# LogLevel debug
AddDefaultCharset UTF-8
ScriptAlias / /opt/rt5/sbin/rt-server.fcgi/
DocumentRoot "/opt/rt5/share/html"
<Location />
Require all granted
Options +ExecCGI
AddHandler fcgid-script fcgi
</Location>
</VirtualHost>
I have gone ahead and made the change so that instead of ; it is now *:80 as shown in the link. I had also placed ServerName below as well.
[Updated Conf]
<VirtualHost *:80>
ServerName <**ServerName**>
Unfortunately the error still persists. I did follow the path you showed, but I donāt have /var/log/apache2/error.log. I do have /var/log/httpd/error.log which I think is a weird quirk of my server. I cant use the apachectl -M command to list modules. I got to run httpd -M. The error I am seeing in the log is posted below. Did I happen to miss installing a plugin?
I have gone ahead and created the following config and restarted the httpd service. I am seeing these entries.
Config in RT_SiteConfig.pm #Logging Information
Set( $LogToFile, ādebugā);
Set( $LogToFileNamed, ācchs-rt.logā);
Set( $LogDir, ā/Opt/rt5/var/log/ā);
No file is created in /opt/rt5/var/log
/var/log/httpd/error.log
[Mon Dec 16 21:44:38.393887 2024] [core:notice] [pid 37014:tid 37014] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Mon Dec 16 21:44:38.394771 2024] [suexec:notice] [pid 37014:tid 37014] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
AH00558: httpd: Could not reliably determine the serverās fully qualified domain name, using fe80::c0e7:7fcf:4359:d6cf%ens192. Set the āServerNameā directive globally to suppress this message
[Mon Dec 16 21:44:38.419890 2024] [lbmethod_heartbeat:notice] [pid 37014:tid 37014] AH02282: No slotmem from mod_heartmonitor
[Mon Dec 16 21:44:38.429610 2024] [mpm_event:notice] [pid 37014:tid 37014] AH00489: Apache/2.4.62 (CentOS Stream) mod_fcgid/2.3.9 mod_perl/2.0.12 Perl/v5.32.1 configured ā resuming normal operations
[Mon Dec 16 21:44:38.429640 2024] [core:notice] [pid 37014:tid 37014] AH00094: Command line: ā/usr/sbin/httpd -D FOREGROUNDā
Log file ā/Opt/rt5/var/log/cchs-rt.logā couldnāt be written or created.
RT canāt run. at /opt/rt5/sbin/ā¦/lib/RT.pm line 343.
[Mon Dec 16 21:44:41.050599 2024] [fcgid:warn] [pid 37023:tid 37178] (104)Connection reset by peer: [client 192.168.57.21:50601] mod_fcgid: error reading data from FastCGI server
[Mon Dec 16 21:44:41.050646 2024] [core:error] [pid 37023:tid 37178] [client 192.168.57.21:50601] End of script output before headers: rt-server.fcgi
Log file ā/Opt/rt5/var/log/cchs-rt.logā couldnāt be written or created.
RT canāt run. at /opt/rt5/sbin/ā¦/lib/RT.pm line 343.
[Mon Dec 16 21:44:41.440207 2024] [fcgid:warn] [pid 37022:tid 37129] (104)Connection reset by peer: [client 192.168.57.21:50602] mod_fcgid: error reading data from FastCGI server, referer: http://cchs-rt.cchd.local/
[Mon Dec 16 21:44:41.440258 2024] [core:error] [pid 37022:tid 37129] [client 192.168.57.21:50602] End of script output before headers: rt-server.fcgi, referer: http://cchs-rt.cchd.local/
I have taken a look at the permissions and have ensured that they were updated from root to apache. After restarting the service I am still greeted with the same error. Is there another account I should have applied permissions to this for?
I have gone ahead and navigated back to the directory and ran the command and though it completes with no errors the issue persists. Could you let me know where the makefile is located and what I should look for? I apologize for asking you to walk me through it. I am just a little lacking on experience.
The Makefile is where you extracted the source files before installing RT (see README - RT 5.0.7 Documentation - Best Practical). Itās where you executed ./configure... ; make testdeps... ; etc.
I usually leave these files in /usr/local/src so I can check the original parameters I added to ./configure.
I have run the command and no issues present upon completion.
Steps taken:
Navigated to /ect/SELinux/Config
Changed line from SELINUX=enforcing TO SELINUX=disabled
Rebooted my Server
The logs I am getting are as follows:
/var/log/rt5/cchs-rt.log
[35040] [Tue Dec 17 05:08:24 2024] [debug]: 11. (/usr/local/src/rt-5.0.7/sbin/ā¦/lib/RT/Handle.pm:1776)
[35040] [Tue Dec 17 05:08:24 2024] [debug]: 12. (/usr/local/src/rt-5.0.7/sbin/ā¦/lib/RT/Handle.pm:1776)
[35040] [Tue Dec 17 05:08:24 2024] [debug]: 13. (/usr/local/src/rt-5.0.7/sbin/ā¦/lib/RT/Handle.pm:1776)
[35040] [Tue Dec 17 05:08:24 2024] [debug]: 14. (/usr/local/src/rt-5.0.7/sbin/ā¦/lib/RT/Handle.pm:1776)
[35040] [Tue Dec 17 05:08:24 2024] [debug]: 15. (/usr/local/src/rt-5.0.7/sbin/ā¦/lib/RT/Handle.pm:1776)
[35040] [Tue Dec 17 05:08:24 2024] [debug]: 16. (/usr/local/src/rt-5.0.7/sbin/ā¦/lib/RT/Handle.pm:1776)
[35040] [Tue Dec 17 05:08:24 2024] [debug]: 17. (/usr/local/src/rt-5.0.7/sbin/ā¦/lib/RT/Handle.pm:1776)
[35040] [Tue Dec 17 05:08:24 2024] [debug]: done. (/usr/local/src/rt-5.0.7/sbin/ā¦/lib/RT/Handle.pm:1797)
[35040] [Tue Dec 17 05:08:24 2024] [debug]: Creating attributesā¦ (/usr/local/src/rt-5.0.7/sbin/ā¦/lib/RT/Handle.pm:1875)
[35040] [Tue Dec 17 05:08:24 2024] [debug]: 4. (/usr/local/src/rt-5.0.7/sbin/ā¦/lib/RT/Handle.pm:1942)
[35040] [Tue Dec 17 05:08:24 2024] [debug]: 5. (/usr/local/src/rt-5.0.7/sbin/ā¦/lib/RT/Handle.pm:1942)
[35040] [Tue Dec 17 05:08:24 2024] [debug]: 6. (/usr/local/src/rt-5.0.7/sbin/ā¦/lib/RT/Handle.pm:1942)
[35040] [Tue Dec 17 05:08:24 2024] [debug]: 7. (/usr/local/src/rt-5.0.7/sbin/ā¦/lib/RT/Handle.pm:1942)
[35040] [Tue Dec 17 05:08:24 2024] [debug]: 8. (/usr/local/src/rt-5.0.7/sbin/ā¦/lib/RT/Handle.pm:1942)
[35040] [Tue Dec 17 05:08:24 2024] [debug]: done. (/usr/local/src/rt-5.0.7/sbin/ā¦/lib/RT/Handle.pm:1945)
[35040] [Tue Dec 17 05:08:24 2024] [debug]: Running final actionsā¦ (/usr/local/src/rt-5.0.7/sbin/ā¦/lib/RT/Handle.pm:1948)
[35040] [Tue Dec 17 05:08:24 2024] [debug]: done. (/usr/local/src/rt-5.0.7/sbin/ā¦/lib/RT/Handle.pm:1955)
[35040] [Tue Dec 17 05:08:24 2024] [debug]: Done setting up database content. (/usr/local/src/rt-5.0.7/sbin/ā¦/lib/RT/Handle.pm:1967)
/var/log/httpd/error.log [Tue Dec 17 13:11:38.739373 2024] [core:notice] [pid 4688:tid 4688] AH00094: Command line: ā/usr/sbin/httpd -D FOREGROUNDā Log file ā/Opt/rt5/var/log/cchs-rt.logā couldnāt be written or created.
RT canāt run. at /opt/rt5/sbin/ā¦/lib/RT.pm line 343.* [Tue Dec 17 13:12:23.236137 2024] [fcgid:warn] [pid 4695:tid 4793] (104)Connection reset by peer: [client 192.168.254.136:53116] mod_fcgid: error reading data from FastCGI server [Tue Dec 17 13:12:23.236191 2024] [core:error] [pid 4695:tid 4793] [client 192.168.254.136:53116] End of script output before headers: rt-server.fcgi Log file ā/Opt/rt5/var/log/cchs-rt.logā couldnāt be written or created.
RT canāt run. at /opt/rt5/sbin/ā¦/lib/RT.pm line 343.* [Tue Dec 17 13:12:23.819587 2024] [fcgid:warn] [pid 4697:tid 4806] (104)Connection reset by peer: [client 192.168.254.136:53117] mod_fcgid: error reading data from FastCGI server, referer: http://cchs-rt.cchd.local/ [Tue Dec 17 13:12:23.819638 2024] [core:error] [pid 4697:tid 4806] [client 192.168.254.136:53117] End of script output before headers: rt-server.fcgi, referer: http://cchs-rt.cchd.local/
Will dig into this line: Log file ā/Opt/rt5/var/log/cchs-rt.logā couldnāt be written or created.
So it seems as though in the make fixperms command it applies the apache user permissions to /opt/rt5/val/mason_data & session_data directories and the log directory is not present to receive the permissions.
I could not make heads or tails of where to add the directory to get permissions in the .configure file, so I just navigated to the directory and applied the apache user to the file permissions similar to the other two directories. I am getting the following logs in /var/log/httpd/error.log though the permissions error is no longer apparent.
[Tue Dec 17 14:36:42.443288 2024] [suexec:notice] [pid 7143:tid 7143] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
AH00558: httpd: Could not reliably determine the serverās fully qualified domain name, using fe80::c0e7:7fcf:4359:d6cf%ens192. Set the āServerNameā directive globally to suppress this message
[Tue Dec 17 14:36:42.469189 2024] [lbmethod_heartbeat:notice] [pid 7143:tid 7143] AH02282: No slotmem from mod_heartmonitor
[Tue Dec 17 14:36:42.480499 2024] [mpm_event:notice] [pid 7143:tid 7143] AH00489: Apache/2.4.62 (CentOS Stream) mod_fcgid/2.3.9 mod_perl/2.0.12 Perl/v5.32.1 configured ā resuming normal operations
[Tue Dec 17 14:36:42.480530 2024] [core:notice] [pid 7143:tid 7143] AH00094: Command line: ā/usr/sbin/httpd -D FOREGROUNDā
quite literally /usr/local/src/rt-5.0.7/makefile.in. I have made the follow changes and ran the make fixdeps, but its not applying the permissions (I manually undid my change and confirmed the error is appeared once more).
# Make upgrade scripts executable if they are in the source.
#
( cd etc/upgrade && find . -type f -not -name '*.in' -perm @FINDPERM@0111 -print ) | while read file ; do \
chmod a+x "$(DESTDIR)$(RT_ETC_PATH)/upgrade/$$file" ; \
done
# Make the web ui readable by all.
chmod -R u+rwX,go-w,go+rX $(DESTDIR)$(MASON_HTML_PATH) \
$(DESTDIR)$(MASON_LOCAL_HTML_PATH) \
$(DESTDIR)$(RT_LEXICON_PATH) \
$(DESTDIR)$(LOCAL_LEXICON_PATH) \
$(DESTDIR)$(RT_STATIC_PATH) \
$(DESTDIR)$(LOCAL_STATIC_PATH)
chown -R $(LIBS_OWNER) $(DESTDIR)$(MASON_HTML_PATH) \
$(DESTDIR)$(MASON_LOCAL_HTML_PATH) \
$(DESTDIR)$(RT_LEXICON_PATH) \
$(DESTDIR)$(LOCAL_LEXICON_PATH) \
$(DESTDIR)$(RT_STATIC_PATH) \
$(DESTDIR)$(LOCAL_STATIC_PATH)
chgrp -R $(LIBS_GROUP) $(DESTDIR)$(MASON_HTML_PATH) \
$(DESTDIR)$(MASON_LOCAL_HTML_PATH) \
$(DESTDIR)$(RT_LEXICON_PATH) \
$(DESTDIR)$(LOCAL_LEXICON_PATH) \
$(DESTDIR)$(RT_STATIC_PATH) \
$(DESTDIR)$(LOCAL_STATIC_PATH)
# Make the web ui's data dir writable
chmod 0770 $(DESTDIR)$(MASON_DATA_PATH) \
$(DESTDIR)$(MASON_SESSION_PATH)
**$(DESTDIR)$(LOG_PATH)**
chown -R $(WEB_USER) $(DESTDIR)$(MASON_DATA_PATH) \
$(DESTDIR)$(MASON_SESSION_PATH)
**$(DESTDIR)$(LOG_PATH)**
chgrp -R $(WEB_GROUP) $(DESTDIR)$(MASON_DATA_PATH) \
$(DESTDIR)$(MASON_SESSION_PATH)
**$(DESTDIR)$(LOG_PATH)**