Gentoo Archives: gentoo-user

From: John Covici <covici@××××××××××.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:37:46
Message-Id: m3d1bntln6.wl-covici@ccs.covici.com
In Reply to: Re: [gentoo-user] trying to find the cause of an http 500 error by Rasmus Thomsen
1 On Fri, 05 May 2017 10:25:21 -0400,
2 Rasmus Thomsen wrote:
3 >
4 > [1 <text/plain; UTF-8 (base64)>]
5 > [2 <text/html; UTF-8 (base64)>]
6 > Hi,
7 >
8 > Nextcloud/Owncloud both provide a script to set the correct permissions:
9 >
10 > https://docs.nextcloud.com/server/9/admin_manual/installation/installation_wizard.html#strong-perms-label
11 >
12 > Just set the correct user (most likely apache)/path
13 >
14 > Regards,
15 > Rasmus
16 >
17 > -------- Original Message --------
18 > On 5 May 2017, 16:16, Mick < michaelkintzios@×××××.com> wrote:
19 >
20 > On Friday 05 May 2017 08:31:56 John Covici wrote:
21 > > On Fri, 05 May 2017 07:24:02 -0400,
22 > >
23 > > Michael Orlitzky wrote:
24 > > > On 05/05/2017 07:13 AM, John Covici wrote:
25 > > > > The php log is not mentioned in the .htaccess file of owncloud. But
26 > > > > regardless of owncloud, php fatal errors are not logged anywhere under
27 > > > > apache, even though I have log_errors and a log file name.
28 > > >
29 > > > Apache doesn't know anything about what happens in the PHP code, so the
30 > > > errors should be logged in that separate PHP error log, if anywhere.
31 > > >
32 > > > As a temporary measure, you can try enabling "display_errors" and
33 > > > "display_startup_errors" in your (Apache) php.ini. That should convince
34 > > > PHP to spit out the error into your browser when you visit the page,
35 > > > rather than (or in addition to) logging it.
36 > >
37 > > If I put those on, I don't even get the 500, I get nothing at all
38 > > instead! Very odd, indeed. I just get a blank window when I use my
39 > > php fatal error creator.
40 > > But if I change it to http, I get the fatal error.
41 > >
42 > >
43 > > For owncloud, changing to http yields the same result. However, when
44 > > I finally changed the display_startup_errors to On, I get the
45 > > following fatal error:
46 > > [05-May-2017 11:44:21 UTC] PHP Fatal error: Maximum execution time of
47 > > 30 seconds exceeded in
48 > > /var/www/covici.com/htdocs-secure/owncloud/lib/base.php on line 542
49 > > [05-May-2017 11:44:21 UTC] PHP Stack trace:
50 > > [05-May-2017 11:44:21 UTC] PHP 1. {main}()
51 > > /var/www/covici.com/htdocs-secure/owncloud/index.php:0
52 > > [05-May-2017 11:44:21 UTC] PHP 2. require_once()
53 > > /var/www/covici.com/htdocs-secure/owncloud/index.php:37
54 > > [05-May-2017 11:44:21 UTC] PHP 3. OC::init()
55 > > /var/www/covici.com/htdocs-secure/owncloud/lib/base.php:967
56 > > [05-May-2017 11:44:21 UTC] PHP 4. set_time_limit()
57 > > /var/www/covici.com/htdocs-secure/owncloud/lib/base.php:542
58 > >
59 > >
60 > > Any insights would be appreciated.
61 >
62 > Have you looked at the lines mentioned above in base.php and index.php?
63 >
64 > It may be an issue of correct owneship/access rights and the lines in those
65 > files may give you a hint. Some files may need to be owned by the owncloud
66 > user or the webserver user accounts.
67 > --
68 > Regards,
69 > Mick
70 >
71
72
73 I have the script mentioned above. I would think if the permissions
74 were wrong, it would not get into the file at all.
75
76 --
77 Your life is like a penny. You're going to lose it. The question is:
78 How do
79 you spend it?
80
81 John Covici
82 covici@××××××××××.com

Replies

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