Message boards : Server programs : Problems with Apache2.4 and Boinc Server
Message board moderation
Author | Message |
---|---|
Send message Joined: 19 Nov 16 Posts: 63 |
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 |
Send message Joined: 19 Nov 16 Posts: 63 |
Seems the inc dir had incorrect permissions. Set it to 775 and it works now. Is this a problem with the server build scripts? |
Send message Joined: 19 Nov 16 Posts: 63 |
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 =( |
Send message Joined: 4 Jul 12 Posts: 321 |
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. |
Send message Joined: 19 Nov 16 Posts: 63 |
yes that seemed to be the issue. All fixed now thanks! |
Copyright © 2024 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.