Gentoo Archives: gentoo-user

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

Replies

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