Problems with Apache2.4 and Boinc Server

Message boards : Server programs : Problems with Apache2.4 and Boinc Server
Message board moderation

To post messages, you must log in.

AuthorMessage
Seth

Send message
Joined: 19 Nov 16
Posts: 44
Australia
Message 74570 - Posted: 4 Dec 2016, 11:52:52 UTC

Hi Team,
I've built a fresh VM with Ubuntu16.10 server. I've managed to get BOINC built for server. My Ubuntu server uses apache2.4.

When using make_project I've copied the geterated project httpd conf in /etc/apache2/apache2.conf.

There is a note saying the httpd.conf for a project that make_project generates must be alterd to be compatible with apache2.4. I made the changes as described, you can see the snippit for PHP script execution below.

# NOTE: Allow access and allow PHP script execution
<Directory "/home/seth/projects/dltest1/html">
Options Indexes MultiViews
AllowOverride AuthConfig
Require all granted
#Order allow,deny
#Allow from all
</Directory>

No when I try to access my projects page via http://192.168.1.9/dltest1 I get a blank page.

Checking the apache error.log I get the following:

[Sun Dec 04 22:29:37.806949 2016] [:error] [pid 3811] [client 192.168.1.3:51920] PHP Warning: require_once(../inc/util.inc): failed to open stream: Permission denied in /home/seth/projects/dltest1/html/user/index.php on line 25
[Sun Dec 04 22:29:37.806984 2016] [:error] [pid 3811] [client 192.168.1.3:51920] PHP Fatal error: require_once(): Failed opening required '../inc/util.inc' (include_path='.:/usr/share/php') in /home/seth/projects/dltest1/html/user/index.php on line 25

What am I missing here?

Cheers
Seth
ID: 74570 · Report as offensive
Seth

Send message
Joined: 19 Nov 16
Posts: 44
Australia
Message 74571 - Posted: 4 Dec 2016, 12:44:01 UTC - in response to Message 74570.  

Seems the inc dir had incorrect permissions. Set it to 775 and it works now.

Is this a problem with the server build scripts?
ID: 74571 · Report as offensive
Seth

Send message
Joined: 19 Nov 16
Posts: 44
Australia
Message 74572 - Posted: 4 Dec 2016, 12:52:03 UTC - in response to Message 74571.  

One step forward, two step back. Now when clciking on server status i get a lot of:


Warning: mkdir(): Permission denied in /home/seth/projects/dltest1/html/inc/cache.inc on line 38

Warning: chmod(): No such file or directory in /home/seth/projects/dltest1/html/inc/cache.inc on line 39

Warning: mkdir(): Permission denied in /home/seth/projects/dltest1/html/inc/cache.inc on line 38

Warning: chmod(): No such file or directory in /home/seth/projects/dltest1/html/inc/cache.inc on line 39


=(
ID: 74572 · Report as offensive
ChristianB
Volunteer moderator
Volunteer developer
Volunteer tester

Send message
Joined: 4 Jul 12
Posts: 305
Germany
Message 74573 - Posted: 4 Dec 2016, 13:44:13 UTC

Check if the directories have the permissions as described here: http://boinc.berkeley.edu/trac/wiki/ServerIntro and you apache user is part of the boincadm group.

There's also a script in tools/check_project that should do that for you.
ID: 74573 · Report as offensive
Seth

Send message
Joined: 19 Nov 16
Posts: 44
Australia
Message 74595 - Posted: 5 Dec 2016, 23:00:51 UTC - in response to Message 74573.  

yes that seemed to be the issue. All fixed now thanks!
ID: 74595 · Report as offensive

Message boards : Server programs : Problems with Apache2.4 and Boinc Server

Copyright © 2017 University of California. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.