Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] trying to find the cause of an http 500 error
Date: Fri, 05 May 2017 14:16:43
Message-Id: 5246126.rz2TDgvf8F@dell_xps
In Reply to: Re: [gentoo-user] trying to find the cause of an http 500 error by John Covici
1 On Friday 05 May 2017 08:31:56 John Covici wrote:
2 > On Fri, 05 May 2017 07:24:02 -0400,
3 >
4 > Michael Orlitzky wrote:
5 > > On 05/05/2017 07:13 AM, John Covici wrote:
6 > > > The php log is not mentioned in the .htaccess file of owncloud. But
7 > > > regardless of owncloud, php fatal errors are not logged anywhere under
8 > > > apache, even though I have log_errors and a log file name.
9 > >
10 > > Apache doesn't know anything about what happens in the PHP code, so the
11 > > errors should be logged in that separate PHP error log, if anywhere.
12 > >
13 > > As a temporary measure, you can try enabling "display_errors" and
14 > > "display_startup_errors" in your (Apache) php.ini. That should convince
15 > > PHP to spit out the error into your browser when you visit the page,
16 > > rather than (or in addition to) logging it.
17 >
18 > If I put those on, I don't even get the 500, I get nothing at all
19 > instead! Very odd, indeed. I just get a blank window when I use my
20 > php fatal error creator.
21 > But if I change it to http, I get the fatal error.
22 >
23 >
24 > For owncloud, changing to http yields the same result. However, when
25 > I finally changed the display_startup_errors to On, I get the
26 > following fatal error:
27 > [05-May-2017 11:44:21 UTC] PHP Fatal error: Maximum execution time of
28 > 30 seconds exceeded in
29 > /var/www/covici.com/htdocs-secure/owncloud/lib/base.php on line 542
30 > [05-May-2017 11:44:21 UTC] PHP Stack trace:
31 > [05-May-2017 11:44:21 UTC] PHP 1. {main}()
32 > /var/www/covici.com/htdocs-secure/owncloud/index.php:0
33 > [05-May-2017 11:44:21 UTC] PHP 2. require_once()
34 > /var/www/covici.com/htdocs-secure/owncloud/index.php:37
35 > [05-May-2017 11:44:21 UTC] PHP 3. OC::init()
36 > /var/www/covici.com/htdocs-secure/owncloud/lib/base.php:967
37 > [05-May-2017 11:44:21 UTC] PHP 4. set_time_limit()
38 > /var/www/covici.com/htdocs-secure/owncloud/lib/base.php:542
39 >
40 >
41 > Any insights would be appreciated.
42
43 Have you looked at the lines mentioned above in base.php and index.php?
44
45 It may be an issue of correct owneship/access rights and the lines in those
46 files may give you a hint. Some files may need to be owned by the owncloud
47 user or the webserver user accounts.
48 --
49 Regards,
50 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] trying to find the cause of an http 500 error Rasmus Thomsen <Rasmus.thomsen@××××××××××.com>
Re: [gentoo-user] trying to find the cause of an http 500 error John Covici <covici@××××××××××.com>