I have completed a fresh install of CentOS7 and Bugzilla 5.0.4. I have run the testserver.pl with the following results:
TEST-OK Webserver is running under group id in $webservergroup.
TEST-OK Got padlock picture.
TEST-OK Webserver is executing CGIs via mod_cgi.
TEST-OK Webserver is preventing fetch of http://172.16.0.245/localconfig.
TEST-OK GD version 2.69, libgd version 2.0.34; Major versions match.
TEST-OK GD library generated a good PNG image.
TEST-OK Chart library generated a good PNG image.
TEST-OK Template::Plugin::GD is installed.
I have also ran the checksetup.pl with no errors. However when I attempt to access the bugzilla site I get the following:
First error: file error - cache failed to write index.html.tmpl: Error in tempfile() using template data/template/template/en/default/XXXXXXXXXX: Could not create temp file data/template/template/en/default/OvmmwPIyw0: Permission denied at lib/x86_64-linux-thread-multi/Template/Document.pm line 301.
Second error: file error - cache failed to write code-error.html.tmpl: Error in tempfile() using template data/template/template/en/default/global/XXXXXXXXXX: Could not create temp file data/template/template/en/default/global/s_gykLuXVQ: Permission denied at lib/x86_64-linux-thread-multi/Template/Document.pm line 301.
On Tuesday, December 25, 2018 at 12:16:20 AM UTC-8, Thorsten Schöning wrote:
> Guten Tag [hidden email],
> am Montag, 24. Dezember 2018 um 19:54 schrieben Sie:
> > First error: file error - cache failed to write index.html.tmpl:
> > Error in tempfile() using template
> > data/template/template/en/default/XXXXXXXXXX: Could not create temp
> > file data/template/template/en/default/OvmmwPIyw0: Permission denied
> Something is wrong in your setup, first of all running checksetup.pl
> would normally set permissions as needed by Bugzilla to work
> properly. This is obviously not the case in your setup, so you either
> didn't run checksetup.pl in the correct directory or such or id didn't
> work properly for some reason, which needs to be debugged further.
> Additionally, you error message is most likely part of pre-compiling
> templates, whcih is exactly what is done by checksetup.pl normally for
> performance reasons, so that it doesn't need to be done during
> requests. This is another hint for that you didn't run checksetup.pl
> in the correct location. So have a look at the mentioned directory and
> check if they are any files and subdirs in theat folder already. If
> there aren't, that's wrong, if there are, have a look at the
> permissions and such.
> > at lib/x86_64-linux-thread-multi/Template/Document.pm line 301.
> You should prefer using the package manager instead of
> install-module.pl whenever possible.
> Mit freundlichen Grüßen,
> Thorsten Schöning
> Thorsten Schöning E-Mail: [hidden email] > AM-SoFT IT-Systeme http://www.AM-SoFT.de/ >
> Telefon...........05151- 9468- 55
> Fax...............05151- 9468- 88
> Mobil..............0178-8 9468- 04
> AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
> AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow
It was SELINUX stopping it. Everything is good now once I modified some rules.